keepalived 做主备,检查80端口
keepalived 的配置文件,主和备一样,只有priority 150 的值不同! Configuration File for keepalivedglobal_defs { notification_email { acassen@firewall.loc failover@firewall.loc sysadmin@firewall.loc } ...
vsftpd 500 OOPS: vsftpd: refusing to run with
当我们限定了用户不能跳出其主目录之后,使用该用户登录FTP时往往会遇到这个错误:ls: 登录失败: 500 OOPS: vsftpd: refusing to run with writable root inside chroot()从2.3.5之后,vsftpd增强了安全检查,如果用户被限定在了其主目录下,则该用户的主目录不能再具有写权限了!如果检查发现还有写权限,就会报该错...
keepalived 脚本
#!/bin/bash # description: Config realserver lo and apply noarpVIP=( 192.168.1.132 ) /etc/rc.d/init.d/functions case "$1" instart) ...
mysql 报错Starting MySQL.The server quit without
当mysql_install_db --defaults-file=/usr/local/mysql/etc/my.cnf 完成。且正确mysql.server start 启动时 报 Starting MySQL.The server quit without updating PID file (/usr/local/mysql/var/mysql.pid)mysql.err 日志为空,无内容--------------------------------------------将 /etc/my.cnf 文...
red hat 把yum源改成centos的Yum源
1. cd /etc/yum.repos.d/2. wget http://mirrors.163.com/.help/CentOS6-Base-163.repo3. sed -i "s/\$releasever/6/"CentOS6-Base-163.repo4. yum makecache
java 静态 构造 单例设计模式 匿名内部类 异常处理 手动异常
静态代码块: 给类初始化点击(此处)折叠或打开static{ System.out.println("a");}构造代码块: 给对象初始化点击(此处)折叠或打开{...
java中的关键字
java中的关键字关键字定义:被Java语言赋予了特殊含义的单词关键字特点:关键字中所有字母都为小写用于定义数据类型的关键字class定义类interface...