wanggongzhen 2015-05-07
nginx运行在38989端口
1. netstat -anp | grep 38989
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:38989 0.0.0.0:* LISTEN 81287/nginx -s start
程序PID为: 81287
2. 查看/proc
ll /proc/81287
lrwxrwxrwx 1 admin admin 0 May 6 15:51 cwd -> /apsarapangu/disk1/yuezi/apps/tengine-2.1.0/sbin
lrwxrwxrwx 1 admin admin 0 May 6 15:51 exe -> /apsarapangu/disk1/yuezi/apps/tengine-2.1.0/sbin/nginx
这里可以看到程序路径了
--end
2、在设置好端口后就可输入命令连接:adb connect 192.168.2.36:5555,后面的:5555可以不用输入,例如我设置的:6666端口,则通过如下指令连接:。映像名称 PID 会话名