
1 wjkk 2013-03-14 09:18:05 +08:00 请 执行下这个命令,输出什么 ps -aux | grep nginx |
2 tarsier 2013-03-14 09:27:05 +08:00 80端口被占用了,lsof查一下看看究竟啥程序用了80端口 |
3 glancesx 2013-03-14 09:36:36 +08:00 把openresty配置文件里的端口改成非80,简单满足你的需求了. |
5 manoon 2013-03-14 12:50:24 +08:00 via Android pkill nginx first nginx -s start |
6 skyangel3 2013-03-14 12:53:10 +08:00 我猜90%被apache占了, 好像现在apt-get install php5 会自动下载apache |
7 barbery OP @wjkk 出现下面内容 root@ubuntu:/home/barbery# ps -aux | grep nginx Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html root 2581 0.0 0.0 4388 832 pts/0 S+ 16:26 0:00 grep --color=auto nginx |
9 barbery OP @manoon @wjkk @tarsier root@ubuntu:/home/barbery# lsof -i :80 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME ubuntu-ge 2250 barbery 7u IPv4 12610 0t0 TCP ubuntu.local:59328->mistletoe.canonical.com:http (CLOSE_WAIT) 这个怎么解决呀 |
11 emptyhua 2013-03-14 16:47:41 +08:00 把openresty生成的nginx.pid删除之后试下 |
12 barbery OP @tarsier 不行耶。。。还是提示“nginx is already running”, 不过现在打lsof -i:80 和 lsof -i:8080 都没有内容显示了。。。 root@ubuntu:/home/barbery# ./openresty.server usage: ./openresty.server {check|start|term|stop|reload|restart|upgrade} root@ubuntu:/home/barbery# ./openresty.server start Nging is already running? root@ubuntu:/home/barbery# lsof -i :80 root@ubuntu:/home/barbery# |