如何检查Mac上的Nginx状态

发布于 2025-02-13 03:12:56 字数 326 浏览 0 评论 0原文

我有一台工作计算机是Mac,但我还没有真正习惯。

我正在尝试找到一个命令来检查Nginx的状态,以查看它是否正在运行。

我尝试了:

$ sudo systemctl config nginx
$ sudo service nginx status

还有其他一些随机变化。

就像nginx状态一样。或sudo nginx help

但它们似乎都没有用。

感谢任何答案。

I have a work computer that's a mac, and I am not really used to it yet.

I'm trying to just find a command to check the status of Nginx, to see if it is running or not.

I have tried :

$ sudo systemctl config nginx
$ sudo service nginx status

and a few other random variations.

like just nginx status. or sudo nginx help

But none of them doesn't seem to work.

Would appreciate any answers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

独木成林 2025-02-20 03:12:56

您可以使用命令augindctl列表列出有关计算机上运行的服务的信息。寻找nginx并注意其PID。

然后是基于PID,您可以使用以下方式检查当前正在运行的NGINX进程及其状态:lainingctl print pid/< pid of-nginx>

You can use the command launchctl list to list the information about the services running on your machine. Look for nginx and take note of its PID.

Then based it's PID, you can checks the currently running nginx processes and their status with: launchctl print pid/<pid-of-nginx>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文