摘要:添加入战规则,允许程序和服务 "filezilla" 被连接只允许21端口通过防火墙是不够的.
阅读全文
摘要:Server setup 0)yum -y install xinetd vi /etc/xinetd.d/rsync and ensure following: disable = no 1)vi /etc/rsyncd.conf -------------- uid = nobody ...
阅读全文
摘要:vi /etc/sysconfig/hostnamerebootcp /usr/share/zoneinfo/Asia/Shanghai /etc/localtimentpdate time.nist.gov rpm -ivh http://dl.fedoraproject.org/pub/epel...
阅读全文
摘要:1)主文件 location / { root /opt/webroot; index index.html index.htm index.php if (!-e $request_filename){ rewrite^/(.*)/yiiGuestBook/index.phplast; }} location ~ \.php$ { root /opt/webroot/; fastcgi_pass 127.0.0.1:9001; fastcgi_index index.php; fastcgi_param YII_ENVIRONMENT "STAGING"...
阅读全文
摘要:比如添加www和ssh端口/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT /sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT 然后/etc/rc.d/init.d/iptables saveservice iptables restart----------查看内容/etc/init.d/iptables statuscat /etc/sysconfig/iptables 可以查看 防火墙 iptables 配置文件内容 ------------iptables -F# 允许包从22端口
阅读全文