摘要: #!/bin/bash # tftp install # 20180711 # 仅测试过操作系统 ubuntu 16.04 download_url='http://img.fe.okjiaoyu.cn' packet_name='tftpd-hpa_5.2.deb' tftp_md5='6a0a441bddac2117171a1c52180a96af' ap_url='http://img... 阅读全文
posted @ 2018-10-11 17:57 lixinliang 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash # 20180819 #云盒服务检查脚本 result_num=0 nginx_ssl="/xdfapp/server/nginx/conf/ssl" gru_ssl="/xdfapp/apps/gru-absolute/conf/spearssl" local_ip=`ip a |grep "scope global" |grep "enp2s0" |awk '{pr... 阅读全文
posted @ 2018-08-25 18:00 lixinliang 阅读(221) 评论(0) 推荐(0) 编辑
摘要: [root@localhost test]# pwd /data/soft/test [root@localhost test]# ls 10.txt 1.txt 2.tx 2.txt 3.txt 4.txt 5.txt 6.txt 7.txt 8.txt 9.txt 脚本内容: dir="/data/soft/test/*" for i in $dir;do b=... 阅读全文
posted @ 2018-07-13 15:51 lixinliang 阅读(170) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash function change_ap { ( s=`stty -g`; str=$"\n" sstr=$(echo -e $str) stty raw -echo; sleep 2; echo "xxxx"; sleep 2; echo "xxxxx"; sleep 2; echo "system-view"; sleep ... 阅读全文
posted @ 2018-07-12 10:53 lixinliang 阅读(2020) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash Ip_addr=`cat /etc/dnsrecord.txt |awk '{print $1}' |head -1` Check_dns_url(){ grep $1 /etc/dnsrecord.txt >/dev/null if [ $? -ne 0 ];then echo "${Ip_addr} $1 " >> /etc/dnsrecord.t... 阅读全文
posted @ 2018-07-11 09:41 lixinliang 阅读(423) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash function cache(){ for i in `curl xxx.fe.xxx.cn/uplist.txt`;do url=`echo $i|awk -F"#" '{print $1}'` md5=`echo $i|awk -F"#" '{print $2}'` file_name=`echo $url|awk -F'\/' '{print $NF}'... 阅读全文
posted @ 2018-07-02 10:51 lixinliang 阅读(854) 评论(0) 推荐(0) 编辑
摘要: 领导给小白两条线,分别是电源线和网线,去吧,机房上架一台防火墙。。。 额, 然后小白抱着防火墙就去了。。。 阅读全文
posted @ 2018-04-03 16:08 lixinliang 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 因为意外导致某个MySQL的从服务器宕机,且不可修复,因为是业务数据库,不能停机和锁表进行从库的搭建,所以考虑了使用xtrabackup 进行在线主从搭建。 一、数据库环境 注意: 主从搭建主库一定要开binlog 日志; log-bin=mysql-bin 否则无法进行 数据库 数据库版本 外网I 阅读全文
posted @ 2018-03-29 21:11 lixinliang 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 刚上班发现有些服务跑不起来,进入服务器查看原因: 第一部分: 一,#top 因为是刚被我kill 掉一次,kill 掉等会还会自启动,之前yam 进程占cpu 是200% 二,# vim /etc/rc.local 看下加入开机自启的内容,将它删掉保存。 三,查找yam 进程的位置,修改它的权限。 阅读全文
posted @ 2018-03-19 12:54 lixinliang 阅读(504) 评论(0) 推荐(0) 编辑
摘要: 一,项目需求 因开发人员在登录后台时需要反复认证,tomcat反复切换,所以给运维组提出需求,解决session共享问题。 二,解决方法 环境:基于Centos6.8 Jdk 版本 java version "1.7.0_99" Tomcat版本号:Server number: 7.0.82.0 R 阅读全文
posted @ 2018-03-17 17:26 lixinliang 阅读(5015) 评论(4) 推荐(0) 编辑