- 论坛徽章:
- 0
|
本帖最后由 wang390750 于 2013-12-27 13:47 编辑
- [root@tukj ~]# netstat -ntpl
- Active Internet connections (only servers)
- Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
- tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1338/mysqld
- tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1908/nginx
- tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 1820/pure-ftpd (SER
- tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 13674/sshd
- tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1635/sendmail
- tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 6878/zabbix_agentd
- tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 10602/zabbix_server
- tcp 0 0 :::8080 :::* LISTEN 1931/httpd
- tcp 0 0 :::21 :::* LISTEN 1820/pure-ftpd (SER
- tcp 0 0 :::22 :::* LISTEN 13674/sshd
- tcp 0 0 :::88 :::* LISTEN 12379/httpd
- tcp 0 0 :::5666 :::* LISTEN 29096/xinetd
复制代码 (匹配httpd服务的端口号)输出格式如下:- {
- "data":[
- {
- "{#WEBPORT}":"8080"},
- {
- "{#WEBPORT}":"88"}]}
复制代码 |
|