多实例,双主互备,双向接管,互相监测,不同业务的双主 keepalived的默认日志在/var/log/message,指定文件接收message,在sysconfig/keepalived中增加一行KEEPALIVED_OPTIONS为什么要指定日志文件呢,因为在message中还有很多其它的日志 ...
分类:
其他好文 时间:
2018-08-25 23:29:50
阅读次数:
391
过滤出来需要的开机自启动项:chkconfig --list|grep 3:on|grep -v "crond|sshd|network|rsyslog|sysstat" 关闭不需要的自启动项:chkconfig --list|grep 3:on|grep -v "crond|sshd|networ ...
分类:
系统相关 时间:
2018-08-23 14:11:39
阅读次数:
247
一、添加开机自启服务 在centos7中添加开机自启服务非常方便,只需要两条命令(以Jenkins为例): systemctlenablejenkins.service #设置jenkins服务为自启动服务 sysstemctl start jenkins.service #启动jenkins服务 ...
分类:
其他好文 时间:
2018-08-22 22:50:41
阅读次数:
241
百度搜索mysql,进入https://dev.mysql.com/downloads/mysql/找到自己需要版本的mysql的Linux压缩包; 复制出这个压缩包的下载地址(尽量先点击下载,然后在下载的界面复制出资源的链接) 在服务器的合适位置创建一个存放mysql的目录(个人习惯 /usr/l ...
分类:
数据库 时间:
2018-08-20 19:03:35
阅读次数:
219
GitLab Linux安装GitLab 安装GitLab的依赖包 sudo yum install -y curl policycoreutils-python openssh-server cronie 在系统防火墙中打开HTTP和SSH访问 sudo lokkit -s http -s ssh ...
分类:
其他好文 时间:
2018-08-20 16:33:29
阅读次数:
232
1.查看iptables状态 service iptables status 2.开启/关闭iptables service iptables start service iptables stop 3.查看iptables是否开机启动 chkconfig iptables --list 4.设置i ...
分类:
其他好文 时间:
2018-08-20 15:39:06
阅读次数:
118
拷贝收藏私用,别无他意,原博客地址:https://www.cnblogs.com/zuidongfeng/p/8032505.html 1、安装redis 第一步:下载redis安装包 wget http://download.redis.io/releases/redis-4.0.11.tar. ...
分类:
其他好文 时间:
2018-08-14 21:56:07
阅读次数:
173
ssh服务: 类似于TeamView,进行远程控制 客户端安装:openssh-clients(xshell、putty、secureCRT、VNC) 服务器安装:openssh-server 网络配置文件: /etc/sysconfig/network-scripts/ifcfg-eth0 ssh ...
分类:
其他好文 时间:
2018-08-12 15:36:58
阅读次数:
161