现在位置 >首页 > shell
linux系统安全shell第二版已关闭评论
2011年05月13日 shell ⁄ 被围观 10,275 次+
本脚本是第二次更新,已经大量应用在某大型媒体网站体系中,加入了之前没有想到的一些安全设置。使用方法将其复制,保存为一个shell文件,比如security.sh.将其上传到linux服务器上,执行sh security.sh,就可以使用该脚本了! 原文出自:晓辉的博客:http://www.freebsdsystem.org/linux_security_shell_v2/ #!/bin/sh    # desc: setup linux system security    # author:coralzd    # powered by www.freebsdsystem.org    # version 0.1.2 written by 2011.05.03    #account setup       passwd -l xfs   ...
阅读全文

nginx管理脚本已关闭评论
2011年04月27日 shell ⁄ 被围观 9,816 次+
nginx管理脚本用于nginx启动、停止、重新启动,并添加为linux服务,像启动linux下的服务一样方便 使用方法:将脚本放至/etc/init.d/目录下并执行 ll /etc/init.d/nginx chkconfig --add nginx chkconfig --list | grep nginx service nginx restart 文章底部附脚本下载地址!(注意脚本中的变量NGINX_HOME,修改为自己环境中的nginx安装目录) #!/bin/bash    #    # nginx.sh  This shell this use to  crontal nginx.      #    # chkconfig:   345 85 15    #    # description: this shell this use ...
阅读全文