摘要: 首先假如服务器上已经有一个 数据库mysql5.6.29,端口是3306。 接下来在安装一个mysql数据库,端口是3307的。 一:创建mysql编译目录 mkdir /usr/local/mysql3307 mkdir /usr/local/mysql3307/data mkdir /var/l 阅读全文
posted @ 2018-12-02 10:33 lixinliang 阅读(1687) 评论(0) 推荐(0)
摘要: 安装mysql,安装前准备 如果mysql用户不存在,那么添加mysql用户 groupadd mysql useradd -g mysql mysql mysql编译安装 tar -zxvf mysql-5.1.73.tar.gz cd mysql-5.1.73 yum install ncurses ncurses-devel ./configure '--prefix=/usr/l... 阅读全文
posted @ 2018-12-02 10:09 lixinliang 阅读(2096) 评论(0) 推荐(0)
摘要: #!/bin/sh #二代云盒-混合网 device_version=`cat /xdfapp/data/version/device` ocb_device=`cat /proc/cpuinfo |grep "J3160" |wc -l` nginx_dir="/xdfapp/backups/se 阅读全文
posted @ 2018-10-11 17:58 lixinliang 阅读(636) 评论(0) 推荐(0)
摘要: #!/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 阅读(199) 评论(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 阅读(245) 评论(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 阅读(182) 评论(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 阅读(2076) 评论(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 阅读(431) 评论(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 阅读(862) 评论(0) 推荐(0)
摘要: 领导给小白两条线,分别是电源线和网线,去吧,机房上架一台防火墙。。。 额, 然后小白抱着防火墙就去了。。。 阅读全文
posted @ 2018-04-03 16:08 lixinliang 阅读(462) 评论(0) 推荐(0)