相关疑难解决方法(0)

如何知道什么程序正在侦听给定端口?

我怀疑某个程序正在侦听8000我机器上的端口。

当我运行以下命令时,出现此错误:

> python -m SimpleHTTPServer
# Lots of python error
socket.error: [Errno 98] Address already in use
Run Code Online (Sandbox Code Playgroud)

如果我使用另一个端口(8000是默认端口),则 Web 服务器运行良好。

如果我从命令行运行wget localhost:8000,它会返回404 Not Found.

我可以做什么(或有哪些工具可用)来查找正在侦听端口的程序8000,以及该程序的配置位置?

networking webserver sockets

455
推荐指数
6
解决办法
79万
查看次数

nginx 无法在 Ubuntu 15.10 服务器上安装

我正在尝试在我新安装的带有 Mate 桌面的 Ubuntu Server 15.10 上安装 nginx。

我做了一个快速更新:

sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

现在尝试安装nginx:

sudo apt-get install nginx
Run Code Online (Sandbox Code Playgroud)

这是我得到的:

server@Node1:~/nod$ sudo apt-get install nginx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nginx is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nginx-core …
Run Code Online (Sandbox Code Playgroud)

server apt nginx

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

apt ×1

networking ×1

nginx ×1

server ×1

sockets ×1

webserver ×1