2018年1月2日

摘要: [program:check_server_state]directory=/sunlight/shellcommand=/usr/bin/sh check_server_state.shautostart=truestartsecs=10autorestart=truestartretries=3 阅读全文
posted @ 2018-01-02 13:44 天涯飞鸿 阅读(458) 评论(0) 推荐(0) 编辑

2017年12月29日

摘要: 大部分运营商架构中,应用节点不能直接访问互联网,给应用程序开发和运行带来困难, 现找到一种解决办法,使用管理节点做代理,其他应用节点通过管理节点访问互联网; 1. 安装 squid 安装包位置: 192.168.88.46:/usr/local/sunlight/squid-3.5.27-144.1 阅读全文
posted @ 2017-12-29 00:26 天涯飞鸿 阅读(749) 评论(0) 推荐(0) 编辑

2017年12月28日

摘要: 1. 亚特兰蒂斯/武汉电信均发现php-fpm日志报错: [25-Apr-2017 11:52:24] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it[02-Aug-2017 15 阅读全文
posted @ 2017-12-28 23:03 天涯飞鸿 阅读(147) 评论(0) 推荐(0) 编辑

2017年12月25日

摘要: vi /usr/local/sunlight/wsrep_notify_cmd.sh chown mysql:mysql /usr/local/sunlight/wsrep_notify_cmd.sh chmod 700 /usr/local/sunlight/wsrep_notify_cmd.sh 阅读全文
posted @ 2017-12-25 16:17 天涯飞鸿 阅读(866) 评论(0) 推荐(0) 编辑
摘要: while read line do ...... ssh ... done < $file 使用上面包含ssh命令的while循环,ssh命令将$file内容全部吞噬,导致只处理完一行即退出; 解决方法: ssh增加"-n"参数; while read line do ...... ssh -n 阅读全文
posted @ 2017-12-25 16:12 天涯飞鸿 阅读(199) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash apps=("192.168.0.96" "192.168.0.98" "192.168.0.168") if [ $# -lt 1 ];then echo " [ Error ] The paramters passed to this shell is empty!" e 阅读全文
posted @ 2017-12-25 16:06 天涯飞鸿 阅读(239) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash #亚特兰蒂斯-同步目录#定时任务ini_file="/usr/local/sunlight/conf/rsync-file.ini"target_ip="10.108.144.2"pk_file="/usr/local/sunlight/sshkeys/init.pk" if 阅读全文
posted @ 2017-12-25 16:05 天涯飞鸿 阅读(1091) 评论(0) 推荐(0) 编辑
摘要: 1. 系统安装: 0). 采用LVM方式挂载磁盘; 1). 采用btrfs文件系统格式,在磁盘空间不足时,变成只读,导致EPG服务宕掉; 2). 磁盘挂载点: /var/www/ (ext4) /var/weedfs (ext4) /var/lib/mysql (ext4) /var/log (ex 阅读全文
posted @ 2017-12-25 10:57 天涯飞鸿 阅读(174) 评论(0) 推荐(0) 编辑

2017年12月24日

摘要: [maxscale]threads=4 ##### Write Service, need to set address[server1]type=serveraddress=172.16.50.36port=3306protocol=MySQLBackendsunlight_weight=1 ## 阅读全文
posted @ 2017-12-24 10:54 天涯飞鸿 阅读(290) 评论(0) 推荐(0) 编辑
摘要: ## These groups are read by MariaDB server.# Use it for options that only the server (but not clients) should see## See the examples of server my.cnf 阅读全文
posted @ 2017-12-24 10:48 天涯飞鸿 阅读(278) 评论(0) 推荐(0) 编辑

导航