文件存储方案对比和一些文章

文件存储方案对比 https://blog.csdn.net/dingjs520/article/details/78655556 http://blog.csdn.net/aixiaoyang168/article/details/78788703 推荐,还有里面的k8s和harbor http://chuansong.me/n/2160994247026 k8s与springboot的结合和功能替代 不用zool和eureka http://blog.51cto.com/lazypaul/1912400 ceph安 [阅读全文]

文件存储方案对比和一些文章

文件存储方案对比 https://blog.csdn.net/dingjs520/article/details/78655556 http://blog.csdn.net/aixiaoyang168/article/details/78788703 推荐,还有里面的k8s和harbor http://chuansong.me/n/2160994247026 k8s与springboot的结合和功能替代 不用zool和eureka http://blog.51cto.com/lazypaul/1912400 ceph安 [阅读全文]

杀木马进程脚本

杀杀CPU进程 [root@AY131022082002587681Z yedaxing]# cat killmuma.sh #!/bin/bash ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head >/root/cpu.txt a=`sed -n 1p /root/cpu.txt |awk '{print $3}'` cpup=`echo $a |awk '{print int($0)}'` pid=`sed -n 1p /root/cpu.txt |awk '{print $2}'` echo $cpup if [[ "${cpup}" -gt 80 ]]; then echo "cpu超过80%,执行kil [阅读全文]

杀木马进程脚本

杀杀CPU进程 [root@AY131022082002587681Z yedaxing]# cat killmuma.sh #!/bin/bash ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head >/root/cpu.txt a=`sed -n 1p /root/cpu.txt |awk '{print $3}'` cpup=`echo $a |awk '{print int($0)}'` pid=`sed -n 1p /root/cpu.txt |awk '{print $2}'` echo $cpup if [[ "${cpup}" -gt 80 ]]; then echo "cpu超过80%,执行kil [阅读全文]

某项目部署文档

1.安装数据库 useradd -M -s /sbin/nologin mysql cat /etc/passwd |grep mysql cat /etc/group |grep mysql tar xf mysql-5.6.45-linux-glibc2.12-x86_64.tar.gz mv mysql-5.6.45-linux-glibc2.12-x86_64 /usr/local/mysql mkdir -p /usr/local/mysql/data chown -R mysql:mysql /usr/local/mysql/ cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysqld vi /etc/init.d/mysqld 改两行 basedir=/usr/local/mysql datadir=/usr/local/mysql/data chmod +x /etc/init.d/mysqld cd /usr/local/mysql/scripts/ /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data cp /usr/local/mysql/support-files/my-default.cnf /etc/my.cnf vim /etc/profile export PATH=$PATH:/usr/local/mysql/bin source /etc/profile 生效配置 env 查看变量 [阅读全文]

检查微服务接口的python脚本

https://www.cnblogs.com/yourstars/p/8196054.html https://www.cnblogs.com/yoyoketang/p/8035428.html 准备工作,安装库 apt install <a href="http://yw8.tech/tag/python/" title="查看与 python 相关的文章" target="_blank">python</a>-pip 2版本的 apt install python3-pip pip3 install requests #!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 18-8-8 上午9:00 # @Author : [阅读全文]

检查微服务接口的python脚本

https://www.cnblogs.com/yourstars/p/8196054.html https://www.cnblogs.com/yoyoketang/p/8035428.html 准备工作,安装库 apt install <a href="http://yw8.tech/tag/python/" title="查看与 python 相关的文章" target="_blank">python</a>-pip 2版本的 apt install python3-pip pip3 install requests #!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 18-8-8 上午9:00 # @Author : [阅读全文]

检测REDIS健康的脚本

#!/usr/bin/env <a href="http://yw8.tech/tag/python/" title="查看与 python 相关的文章" target="_blank">python</a> # -*-coding:utf-8-*- import redis def __init__(): host = '17.2.32.181' port = 6379 try: r = redis.Redis(host,port) value = r.randomkey() print value with open('/opt/181redis.txt', 'w') as f: f.write(value) return value except Exception as e: print e with open('/opt/181redis.txt', 'w') as f: f.write(str(e)) [阅读全文]

检测REDIS健康的脚本

#!/usr/bin/env <a href="http://yw8.tech/tag/python/" title="查看与 python 相关的文章" target="_blank">python</a> # -*-coding:utf-8-*- import redis def __init__(): host = '17.2.32.181' port = 6379 try: r = redis.Redis(host,port) value = r.randomkey() print value with open('/opt/181redis.txt', 'w') as f: f.write(value) return value except Exception as e: print e with open('/opt/181redis.txt', 'w') as f: f.write(str(e)) [阅读全文]