在linux上如何查看是否有PHP-FPM服务
时间: 2023-05-11 21:02:22 浏览: 250
您可以使用以下命令来检查是否有PHP-FPM服务运行:
systemctl status php-fpm
如果PHP-FPM服务正在运行,您将看到类似于以下内容的输出:
● php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2021-08-16 10:00:00 CST; 1h ago
Main PID: 12345 (php-fpm)
Status: "Processes active: 0, idle: 2, Requests: 3, slow: 0, Traffic: 0req/sec"
Tasks: 3 (limit: 4915)
Memory: 10.0M
CGroup: /system.slice/php-fpm.service
├─12345 php-fpm: master process (/etc/php-fpm.conf)
├─12346 php-fpm: pool www
└─12347 php-fpm: pool www
如果PHP-FPM服务未运行,则会看到类似于以下内容的输出:
● php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled)
Active: inactive (dead)
希望这可以帮助您!
阅读全文