Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
不检查 /etc/apache2 或使用 curl 进行测试,怎么可能以简单用户(非 ROOT)的身份检查 apache2 正在运行的端口?
您可以安装nmap并扫描开放端口:
nmap localhost
如果您有许多服务,您可以使用 grepapache2或http这样:
apache2
http
nmap localhost | grep http 80/tcp open http