VPS侦探论坛

 找回密码
 注册
查看: 3009|回复: 3

请教军哥,阿里云重启后,网站访问不了,可以ping的通,ftp也正常

[复制链接]
发表于 2018-10-15 19:50:50 | 显示全部楼层 |阅读模式

[root@iZj6c1zqtzv2vyd9q7pc8rZ ~]# chkconfig --list
aegis         
0:off
1:off
2:on
3:on
4:on
5:on
6:off
agentwatch     
0:off
1:off
2:on
3:on
4:on
5:on
6:off
aliyun-util   
0:off
1:off
2:on
3:on
4:on
5:on
6:off
atd            
0:off
1:off
2:off
3:on
4:on
5:on
6:off
auditd         
0:off
1:off
2:on
3:on
4:on
5:on
6:off
blk-availability
0:off
1:on
2:on
3:on
4:on
5:on
6:off
cloud-config   
0:off
1:off
2:on
3:off
4:on
5:on
6:off
cloud-final   
0:off
1:off
2:on
3:off
4:on
5:on
6:off
cloud-init     
0:off
1:off
2:on
3:off
4:on
5:on
6:off
cloud-init-local
0:off
1:off
2:on
3:off
4:on
5:on
6:off
cloud-init-upgrade
0:off
1:off
2:on
3:off
4:on
5:on
6:off
cups           
0:off
1:off
2:on
3:on
4:on
5:on
6:off
ip6tables      
0:off
1:off
2:on
3:on
4:on
5:on
6:off
iptables      
0:off
1:off
2:on
3:on
4:on
5:on
6:off
iscsi         
0:off
1:off
2:off
3:on
4:on
5:on
6:off
iscsid         
0:off
1:off
2:off
3:on
4:on
5:on
6:off
lvm2-monitor   
0:off
1:on
2:on
3:on
4:on
5:on
6:off
mdmonitor      
0:off
1:off
2:on
3:on
4:on
5:on
6:off
messagebus     
0:off
1:off
2:on
3:on
4:on
5:on
6:off
multipathd     
0:off
1:off
2:off
3:off
4:off
5:off
6:off
mysql         
0:off
1:off
2:on
3:on
4:on
5:on
6:off
netconsole     
0:off
1:off
2:off
3:off
4:off
5:off
6:off
netfs         
0:off
1:off
2:off
3:on
4:on
5:on
6:off
network        
0:off
1:off
2:on
3:on
4:on
5:on
6:off
nfs-rdma      
0:off
1:off
2:off
3:off
4:off
5:off
6:off
nginx         
0:off
1:off
2:on
3:on
4:on
5:on
6:off
nscd           
0:off
1:off
2:off
3:off
4:off
5:off
6:off
ntpd           
0:off
1:off
2:on
3:on
4:on
5:on
6:off
ntpdate        
0:off
1:off
2:off
3:off
4:off
5:off
6:off
php-fpm        
0:off
1:off
2:on
3:on
4:on
5:on
6:off
portreserve   
0:off
1:off
2:on
3:on
4:on
5:on
6:off
pureftpd      
0:off
1:off
2:on
3:on
4:on
5:on
6:off
rdisc         
0:off
1:off
2:off
3:off
4:off
5:off
6:off
rdma           
0:off
1:off
2:off
3:off
4:off
5:off
6:off
restorecond   
0:off
1:off
2:off
3:off
4:off
5:off
6:off
rsyslog        
0:off
1:off
2:on
3:on
4:on
5:on
6:off
saslauthd      
0:off
1:off
2:off
3:off
4:off
5:off
6:off
sshd           
0:off
1:off
2:on
3:on
4:on
5:on
6:off
udev-post      
0:off
1:on
2:on
3:on
4:on
5:on
6:off

[ 本帖最后由 langqing 于 2018-10-15 19:52 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2018-10-15 21:16:37 | 显示全部楼层


# /usr/local/nginx/sbin/nginx -t
nginx: [emerg] "location" directive is not allowed here in /usr/local/nginx/conf/vhost/enable-php-pathinfo.conf:2
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-10-15 21:43:10 | 显示全部楼层

查到了,似乎是enable-php-pathinfo.conf出了问题,请问怎么恢复。
Starting nginx... nginx: [emerg] "location" directive is not allowed here in /usr/local/nginx/conf/vhost/enable-php-pathinfo.conf:2
failed
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-10-16 08:28:43 | 显示全部楼层

回复 3# 的帖子




只要没动过 enable-php-pathinfo.conf 肯定不是 enable-php-pathinfo.conf 的问题,你自己看看你新建的虚拟主机 enable-php-pathinfo.conf 前后的配置
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-23 13:28 , Processed in 0.026285 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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