摘要:
#!/bin/bash# Check if user is root cur_dir=$(pwd) host=$(hostname) if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this script, plea 阅读全文
posted @ 2018-09-28 10:09
日出东方-
阅读(311)
评论(0)
推荐(0)
摘要:
#!/bin/bash#Function: Install redis#Author: DengYong#Date: 20151126 cd /root/packagewget http://download.redis.io/releases/redis-3.0.3.tar.gztar fxz r 阅读全文
posted @ 2018-09-28 10:06
日出东方-
阅读(250)
评论(0)
推荐(0)
摘要:
常用脚本 1)备份数据库 #!/bin/bash#每周一全量备份数据库 #DB1mysqldump -hip eduyun -u用户 -p密码 >eduyun`date +%Y-%m-%d-%H:%M:%S`.sqlmysqldump -hip eduyuntk -u用户 -p密码 >eduyunt 阅读全文
posted @ 2018-09-28 10:05
日出东方-
阅读(133)
评论(0)
推荐(0)
摘要:
3)安装lnmp脚本只供参考需修改相应参数 #!/bin/bash#Function: Install LNMP#Author: wang#Date: 20170809 nginx_install(){useradd www -u 509 -s /bin/bash -mmkdir -p /opt/s 阅读全文
posted @ 2018-09-28 09:57
日出东方-
阅读(228)
评论(0)
推荐(0)