摘要:
#!/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 阅读全文
摘要:
#!/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 阅读全文
摘要:
常用脚本 1)备份数据库 #!/bin/bash#每周一全量备份数据库 #DB1mysqldump -hip eduyun -u用户 -p密码 >eduyun`date +%Y-%m-%d-%H:%M:%S`.sqlmysqldump -hip eduyuntk -u用户 -p密码 >eduyunt 阅读全文
摘要:
3)安装lnmp脚本只供参考需修改相应参数 #!/bin/bash#Function: Install LNMP#Author: wang#Date: 20170809 nginx_install(){useradd www -u 509 -s /bin/bash -mmkdir -p /opt/s 阅读全文