开心园地

导航

随笔分类 -  Network

在windows2012&2008中设置防火墙允许filezilla的passive模式
摘要:添加入战规则,允许程序和服务 "filezilla" 被连接只允许21端口通过防火墙是不够的. 阅读全文

posted @ 2014-03-10 13:41 开心园地 阅读(423) 评论(0) 推荐(0)

rsync 的安装
摘要:Server setup 0)yum -y install xinetd vi /etc/xinetd.d/rsync and ensure following: disable = no 1)vi /etc/rsyncd.conf -------------- uid = nobody ... 阅读全文

posted @ 2014-02-27 13:52 开心园地 阅读(202) 评论(0) 推荐(0)

LINUX server common setup for ChinaCache ...
摘要:vi /etc/sysconfig/hostnamerebootcp /usr/share/zoneinfo/Asia/Shanghai /etc/localtimentpdate time.nist.gov rpm -ivh http://dl.fedoraproject.org/pub/epel... 阅读全文

posted @ 2012-12-07 15:31 开心园地 阅读(238) 评论(0) 推荐(0)

YII 在 nginx1.3.x版本下的安装配置
摘要: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"... 阅读全文

posted @ 2012-11-07 16:57 开心园地 阅读(488) 评论(0) 推荐(0)

CentOS 防火墙设置
摘要:比如添加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端口 阅读全文

posted @ 2012-10-31 15:51 开心园地 阅读(164) 评论(0) 推荐(0)