XEN VPS Centos 6.X 安装LNMP 重启VPS后无法访问
每次重启VPS后都无法访问,重装两次了还是一样。论坛的各种方法都试了 还是无解重启后无法访问是因为 LNMP 服务没启动,需要 SSH 命令 lnmp restart 后就正常了。
搞两天了,搞的心理发毛。。新手能力有限 只好 来请教军哥
# iptables -F
#/usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
这是重启VPS后打不开 IP访问不了探针 等问题的情况下执行 lnmp
restart 后可以打开 IP 探针等情况下的服务器状态。
如果需要打不开的 信息,请回复 我怎么操作 谢谢
# ifconfig
eth0 Link encap:EthernetHWaddr CE:A6:DE:FB:7F:09
inet addr:104.223.183.80Bcast:104.223.183.127Mask:255.255.255.192
inet6 addr: fe80::cca6:deff:fefb:7f09/64 Scope:Link
UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
RX packets:84540 errors:0 dropped:0 overruns:0 frame:0
TX packets:636 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4013628 (3.8 MiB)TX bytes:195304 (190.7 KiB)
Interrupt:23
lo Link encap:Local Loopback
inet addr:127.0.0.1Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNINGMTU:16436Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b)TX bytes:0 (0.0 b)
# sudo netstat -ap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address Stat e PID/Program name
tcp 0 0 *:mysql *:* LIST EN 4813/mysqld
tcp 0 0 *:http *:* LIST EN 4313/nginx
tcp 0 0 *:ftp *:* LIST EN 1514/pure-ftpd (SER
tcp 0 0 *:ssh *:* LIST EN 967/sshd
tcp 0 0 localhost:ipp *:* LIST EN 919/cupsd
tcp 0 52 104.223.183.80:ssh 142-6-32-55.static:datalens ESTA BLISHED 1570/sshd
tcp 0 0 104.223.183.80:http 222.243.210.:unbind-cluster ESTABLISH ED 4318/nginx
tcp 0 0 *:ftp *:* LISTEN 1514/pure-ftpd (SER
tcp 0 0 *:ssh *:* LISTEN 967/sshd
tcp 0 0 localhost:ipp *:* LISTEN 919/cupsd
udp 0 0 *:ipp *:* 919/cupsd
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix2 [ ACC ] STREAM LISTENING 130124813/mysqld /tmp/mys ql.sock
unix2 [ ACC ] STREAM LISTENING 130364836/php-fpm /tmp/php -cgi.sock
unix4 [ ] DGRAM 7965 801/rsyslogd /dev/log
unix2 [ ACC ] STREAM LISTENING 6790 1/init @/com/ub untu/upstart
unix2 [ ] DGRAM 6934 335/udevd @/org/ke rnel/udev/udevd
unix2 [ ACC ] STREAM LISTENING 8045 850/dbus-daemon /var/run /dbus/system_bus_socket
unix2 [ ACC ] STREAM LISTENING 8156 919/cupsd /var/run /cups/cups.sock
unix2 [ ] DGRAM 139785112/sudo
unix3 [ ] STREAM CONNECTED 130354836/php-fpm
unix3 [ ] STREAM CONNECTED 130344836/php-fpm
unix3 [ ] STREAM CONNECTED 126644313/nginx
unix3 [ ] STREAM CONNECTED 126634313/nginx
unix3 [ ] STREAM CONNECTED 126624313/nginx
unix3 [ ] STREAM CONNECTED 126614313/nginx
unix3 [ ] STREAM CONNECTED 126604313/nginx
unix3 [ ] STREAM CONNECTED 126594313/nginx
unix3 [ ] STREAM CONNECTED 126584313/nginx
unix3 [ ] STREAM CONNECTED 126574313/nginx
unix2 [ ] DGRAM 9579 1570/sshd
unix2 [ ] DGRAM 8994 1514/pure-ftpd (SER
unix3 [ ] STREAM CONNECTED 8069 850/dbus-daemon /var/run /dbus/system_bus_socket
unix3 [ ] STREAM CONNECTED 8068 1/init
unix3 [ ] STREAM CONNECTED 8057 850/dbus-daemon
unix3 [ ] STREAM CONNECTED 8056 850/dbus-daemon
unix3 [ ] DGRAM 6951 335/udevd
unix3 [ ] DGRAM 6950 335/udevd
# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful 可能再重新
chkconfig --add nginx
chkconfig nginx on
chkconfig --add mysql
chkconfig mysql on
chkconfig --add php-fpm
chkconfig php-fpm on
加一下启动项重启看看试试
不行的话,编辑/etc/rc.d/rc.local
加上 /bin/lnmp restart 重启试试
回复 3# 的帖子
军哥你好,通过添加重启后 启动 lnmp 命令行解决了 我上面的问题。、
新的问题是 安装 FTP 后,通过 IP/ftp 访问时404 卸载 重启访问 还是一样,卸载了 重装 还是一样。
opy configure files...
Add pureftpd service at system startup...
iptables: Index of insertion too big.
iptables: Index of insertion too big.
iptables: Index of insertion too big.
iptables: Saving firewall rules to /etc/sysconfig/iptables:
Starting pureftpd...
Starting Pure-FTPd...done
+----------------------------------------------------------------------+
| Install Pure-FTPd completed,enjoy it!
| =>use command: lnmp ftp {add|list|del} to manage FTP users.
+----------------------------------------------------------------------+
| For more information please visit http://www.lnmp.org
+----------------------------------------------------------------------+
#
这是成功的吧?
回复 4# 的帖子
1.3本来就没web管理,安装教程和更新日志都有说明,上面安装完的提示上也有说明
页:
[1]