摘要: 今天打算在容器里安装ssh服务,正当我打算systemctl start sshd时, Failed to get D-Bus connection: Operation not permitted 纳尼???不让操作??? 突然想起来我之前总结的Docker篇之docker容器里有介绍过, --p 阅读全文
posted @ 2020-10-31 17:06 开心burukku 阅读(2655) 评论(0) 推荐(0) 编辑
摘要: autoindex on; #开启目录树功能 autoindex_exact_size off; #关闭详细大小设置,用kb M G为单位表示 autoindex_localtime on; #显示时间为服务器端的修改时间 可以这样 location ~ /file { #root /file; a 阅读全文
posted @ 2020-10-19 12:05 开心burukku 阅读(882) 评论(0) 推荐(0) 编辑
摘要: 首先修改/etc/sysctl.conf fs.inotify.max_queued_events = 16384 fs.inotify.max_user_instances = 1024 fs.inotify.max_user_watches = 1048576 sysctl -p 下载inoti 阅读全文
posted @ 2020-10-13 18:19 开心burukku 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 名称IP 发起端 192.168.200.114 同步源 192.168.200.115 发起端配置 首先安装Rsync,一般来说系统都已经默认安装 yum -y install rsync rpm -q rsync 修改配置文件 vim /etc/rsyncd.conf # /etc/rsyncd 阅读全文
posted @ 2020-10-13 18:14 开心burukku 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 首先报警媒介类型中的脚本参数,权限需所有读写 {ALERT.SENDTO} {ALERT.SUBJECT} {ALERT.MESSAGE} 然后是动作中的操作模板,操作细节都需要选择用户 标题:故障{TRIGGER.STATUS}, 服务器:{HOSTNAME1}发生:{TRIGGER.NAME}故 阅读全文
posted @ 2020-10-13 15:42 开心burukku 阅读(857) 评论(0) 推荐(0) 编辑
摘要: 名称IP Master 192.168.200. 114 Slave 192.168.200. 115 Atlas 192.168.200. 116 所有机器关闭防火墙及selinux systemctl stop firewalld iptables -F setenforce 0 所有机器安装M 阅读全文
posted @ 2020-10-13 14:57 开心burukku 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 主机IP Master 192.168.100.23 Slave 192.168.100.26 Mycat 192.168.100.27 准备工作 所有主机关闭防火墙和selinux systemctl stop firewalld setenforce 0 mycat需要java7以上版本,这里j 阅读全文
posted @ 2020-10-13 11:24 开心burukku 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 安装依赖包 [root@gitlab ~]# yum -y install curl openssh-server openssl-clients postfix cronie policycoreutils-python 准备工作 [root@gitlab ~]# systemctl stop f 阅读全文
posted @ 2020-10-09 18:25 开心burukku 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 前言 首先我们说一下整体思路,如图 每个NGINX都有个自己的IP地址,但是让他俩来共同轮流使用一个VIP,以便主(MASTER)宕机后备(BACKUP)来接替VIP来继续提供服务。这里我们用四台虚拟机,来分别代表NGINX1、NGINX2、WEB1、WEB2,WEB3忽略就好。 准备工作 关闭所有 阅读全文
posted @ 2020-10-09 18:02 开心burukku 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 首先查看一下当初安装nginx时添加的模块 [root@client1 nginx-1.15.9]# nginx -V nginx version: nginx/1.15.9 built by gcc 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) configure 阅读全文
posted @ 2020-10-09 17:58 开心burukku 阅读(498) 评论(0) 推荐(0) 编辑