您好,欢迎访问宜昌市隼壹珍商贸有限公司
400 890 5375要查看 Nginx 是否已启动,可使用以下步骤:通过 systemctl 命令检查状态:systemctl status nginx检查配置并查看 Nginx 是否正在运行:nginx -t检查 Nginx 是否监听端口 80:netstat -plnt | grep nginx
如何查看 Nginx 是否已启动?
要查看 Nginx 是否已启动,请按照以下步骤操作:
使用 systemctl 命令
在终端中运行以下命令:
systemctl status nginx
输出解释:
使用 nginx -t 命令
在终端中运行以下命令:
nginx -t
输出解释:
使用 netstat 命令
在终端中运行以下命令:
netstat -plnt | grep nginx
输出解释:
将为空。