摘要:
CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service systemctl disable firewalld.service systemctl mask firewalld.service 2、安装iptables防火墙 yum install iptable... 阅读全文
posted @ 2017-06-07 15:57
cnbing
阅读(9650)
评论(1)
推荐(0)
摘要:
参考以下内容: 阅读全文
posted @ 2017-06-07 15:23
cnbing
阅读(943)
评论(0)
推荐(0)
摘要:
# id www id: www:无此用户 # groupadd www # useradd -g www -s /sbin/nologin www # id www uid=501(www) gid=501(www) 组=501(www) 阅读全文
posted @ 2017-06-07 15:17
cnbing
阅读(12537)
评论(0)
推荐(0)
摘要:
例如,要把域名 test.com,重定向到 www.test.com,则需要修改 Apache 中站点的配置文件,添加 301 重定向的配置。 最主要就是以下配置: 添加好 Apache 的配置后,重启 Apache 生效,然后访问 test.com,就会 301 跳转到 www.test.com 阅读全文
posted @ 2017-06-07 15:08
cnbing
阅读(3538)
评论(0)
推荐(0)

浙公网安备 33010602011771号