摘要:大部分运营商架构中,应用节点不能直接访问互联网,给应用程序开发和运行带来困难, 现找到一种解决办法,使用管理节点做代理,其他应用节点通过管理节点访问互联网; 1. 安装 squid 安装包位置: 192.168.88.46:/usr/local/sunlight/squid-3.5.27-144.1
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:while read line do ...... ssh ... done < $file 使用上面包含ssh命令的while循环,ssh命令将$file内容全部吞噬,导致只处理完一行即退出; 解决方法: ssh增加"-n"参数; while read line do ...... ssh -n
阅读全文
摘要:#!/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
阅读全文
摘要:#!/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
阅读全文
摘要:1. 系统安装: 0). 采用LVM方式挂载磁盘; 1). 采用btrfs文件系统格式,在磁盘空间不足时,变成只读,导致EPG服务宕掉; 2). 磁盘挂载点: /var/www/ (ext4) /var/weedfs (ext4) /var/lib/mysql (ext4) /var/log (ex
阅读全文
摘要:[maxscale]threads=4 ##### Write Service, need to set address[server1]type=serveraddress=172.16.50.36port=3306protocol=MySQLBackendsunlight_weight=1 ##
阅读全文
摘要:## 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
阅读全文
摘要:使用curl命令,将备份好的图片全部重新导入到seaweedfs,图片全部以存储在seaweedfs中的fid命令, fid中间有一个逗号,使用curl命令时报错: curl: (26) couldn't open file "6" curl命令: curl -X PUT -F "fileUploa
阅读全文
摘要:1. 系统安装完成后,需要检查sweed运行状况;curl 127.0.0.1:/9333/dir/status?pretty=y2. Cboss访问sweed,需要在第一台主节点防火墙打开外网权限,否则cboos图片上传会出问题;3. 查看当前一级目录文件大小 du -h --max-depth=
阅读全文
摘要:Linux 的字符串截取很有用。有八种方法。假设有变量 var=http://www.aaa.com/123.htm.1. # 号截取,删除左边字符,保留右边字符。 代码如下: echo ${var#*//}其中 var 是变量名,# 号是运算符,*// 表示从左边开始删除第一个 // 号及左边的所
阅读全文