1
msg7086 2014 年 8 月 15 日
先看看你80端口上跑了什么东西……
|
2
Nickyu OP @msg7086 /Users/Nick/Desktop/Screen Shot 2014-08-15 at 3.20.04 PM.png
只有这个,但是kill掉后重启还是这样啊 |
3
582033 2014 年 8 月 15 日
还好我看懂了already in use...
|
4
Nickyu OP @msg7086 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
com.apple 244 Nick 17u IPv4 0xcae88a86e6df724d 0t0 TCP 192.168.1.102:53372->203.208.41.131:http (ESTABLISHED) com.apple 244 Nick 20u IPv4 0xcae88a86e6df724d 0t0 TCP 192.168.1.102:53372->203.208.41.131:http (ESTABLISHED) nginx 11536 root 6u IPv4 0xcae88a86ed3ae24d 0t0 TCP *:http (LISTEN) nginx 11537 nobody 6u IPv4 0xcae88a86ed3ae24d 0t0 TCP *:http (LISTEN) |
6
phperstar 2014 年 8 月 15 日
先ps aux 看一下有没有未结束的进程,然后 pgrep php-cgi | xargs kill -s 9 ,最后重启
|
7
Nickyu OP @582033 没看到啊,我用这个命令看的时候terminal是这么显示的
Nicks-MacBook-Pro:~ Nick$ sudo lsof -i:80 Password: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME nginx 11536 root 6u IPv4 0xcae88a86ed3ae24d 0t0 TCP *:http (LISTEN) nginx 11537 nobody 6u IPv4 0xcae88a86ed3ae24d 0t0 TCP *:http (LISTEN) |
8
582033 2014 年 8 月 15 日
你怎么重启的? `sudo nginx` ?
|
10
47jm9ozp 2014 年 8 月 15 日
mac下使用80端口似乎需要sudo
|
11
Nickyu OP @ooxxcc 我加了,不加不行的,然后就这样了,Nicks-MacBook-Pro:~ Nick$ sudo -s reopen
/bin/bash: reopen: command not found Nicks-MacBook-Pro:~ Nick$ sudo nginx -s reopen nginx: [alert] kill(11536, 30) failed (3: No such process) 搞不懂啊 |
12
47jm9ozp 2014 年 8 月 15 日
sudo nginx
|
14
Nickyu OP @ooxxcc 没用,返回的是failed 48:already in use,好像是nginx自己占用端口,但是kill 掉80端口重启nginx还是这样
|
16
47jm9ozp 2014 年 8 月 15 日
@Nickyu nginx默认的配置文件应该是 http://localhost:8080/,我这边测试可以
试试sudo killall nginx ; sudo nginx -c /xxx/xxx/nginx.conf nginx version: nginx/1.6.1 Usage: nginx [-?hvVtq] [-s signal] [-c filename] [-p prefix] [-g directives] Options: -?,-h : this help ... -s signal : send signal to a master process: stop, quit, reopen, reload -p prefix : set prefix path (default: /usr/local/Cellar/nginx/1.6.1/) -c filename : set configuration file (default: /usr/local/etc/nginx/nginx.conf) |
17
zts1993 2014 年 8 月 15 日 via Android
80端口被占用了?如果centos的话记得卸载Apache
|
18
syaokun219 2014 年 8 月 15 日 via iPhone
感觉像是一个很普通的问题
|
19
itfanr 2014 年 12 月 14 日
请问楼主后来解决了吗?
|