我想看看我的机器上打开了哪些端口,例如我的机器正在侦听哪些端口。例如,如果我安装了 Web 服务器,则使用端口 80,等等。
有没有这方面的命令?
我在托管上使用虚拟服务器。有 Ubuntu 12.04 LTS。我正在建立矿池网站和地层挖掘。我可以port 3333
通过服务器上的minrd连接到层,但不能像我一样从外部 cpu 矿机连接。这是我在尝试此命令时得到的列表netstat -ntlp | grep LISTEN
:
root@vm9807:~# netstat -ntlp | grep LISTEN
tcp 0 0 0.0.0.0:3334 0.0.0.0:* LISTEN 1757/python
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 1219/master
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 987/mysqld
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 1219/master
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 1121/memcached
tcp 0 0 0.0.0.0:8332 0.0.0.0:* LISTEN 1721/python
tcp 0 0 0.0.0.0:8333 0.0.0.0:* LISTEN 1757/python
tcp 0 0 0.0.0.0:32333 0.0.0.0:* LISTEN 1686/betacoind
tcp 0 0 …
Run Code Online (Sandbox Code Playgroud)