VPS侦探论坛

 找回密码
 注册
查看: 4110|回复: 2

lnmp 1.2 安装成功后,做了一下系统安全设置,重启 502了

[复制链接]
发表于 2015-6-18 21:11:32 | 显示全部楼层 |阅读模式

如题,lnmp 1.2 成功安装,做了一下 阿里云 centOS 6.5-32 的系统安全设置,重启 lnmp restart ,就直接502,再也好不了,奇怪!

具体安全设置这几项:
----- 1 ---
vi /etc/ssh/sshd_config   Port 10022
/etc/init.d/sshd restart

---- 2 ----
chmod 750 /usr/bin/*cc*
chmod 750 /usr/bin/*++*
chmod 750 /usr/bin/*ld*
chmod 750 /usr/bin/*as*
chmod 700 /usr/bin/who
chmod 700 /usr/bin/w  
chmod 700 /usr/bin/locate
chmod 700 /usr/bin/whereis
chmod 700 /bin/vi
chmod 700 /usr/bin/vim
chmod 700 /usr/bin/gcc
chmod 700 /usr/bin/make
chmod 700 /bin/rpm
chmod 700 /usr/bin/yum
chmod 700 /bin/cat  
chmod 700 /usr/bin/less
chmod 700 /usr/bin/tail
chmod 700 /usr/bin/head

---- 3  ------
vi /etc/login.defs
PASS_MIN_LEN 8

------ 4  ------
userdel news
userdel lp
userdel sync
userdel shutdown
userdel uucp
userdel games
userdel halt

----- 5  ----
/etc
mv redhat-release redhat-release.bak
mv issue issue.bak



最后  lnmp restart ,重启后网站全部 502,重启linux也没用
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-6-19 00:01:59 | 显示全部楼层


汗死,原来是开启 opcache 的原因,删除 opcache 就好了。这是为什么呢?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2015-6-19 08:46:14 | 显示全部楼层

回复 2# 的帖子


信息有限没法说,可以开慢日志看看
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-27 23:31 , Processed in 0.024765 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表