맛집 여행 캠핑 일상 생활

[PHP] PHP-FPM nodaemonize 에러 본문

LINUX

[PHP] PHP-FPM nodaemonize 에러

영은파더♥ 2024. 7. 1. 11:00
728x90

CentOS 9.x 버전에서 포트방식이 아닌 소켓방식으로 설정된 값으로 CentOS 7.x 버전에 똑같이 적용했더니 아래와 같이 에러가 뜨면서 실행이 안되는군요~

[root@example conf.d]# systemctl status php82-php-fpm
● php82-php-fpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php82-php-fpm.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2024-07-01 10:47:03 KST; 19s ago
  Process: 15800 ExecStart=/opt/remi/php82/root/usr/sbin/php-fpm --nodaemonize (code=exited, status=78)
 Main PID: 15800 (code=exited, status=78)

Jul 01 10:47:03 example.com systemd[1]: Starting The PHP FastCGI Process Manager...
Jul 01 10:47:03 example.com php-fpm[15800]: [01-Jul-2024 10:47:03] ERROR: unable to bind listening socket for addr... (98)
Jul 01 10:47:03 example.com php-fpm[15800]: [01-Jul-2024 10:47:03] ERROR: FPM initialization failed
Jul 01 10:47:03 example.com systemd[1]: php82-php-fpm.service: main process exited, code=exited, status=78/n/a
Jul 01 10:47:03 example.com systemd[1]: Failed to start The PHP FastCGI Process Manager.
Jul 01 10:47:03 example.com systemd[1]: Unit php82-php-fpm.service entered failed state.
Jul 01 10:47:03 example.com systemd[1]: php82-php-fpm.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

/etc/opt/remi/php82/php-fpm.d/www.conf

파일을 열어서

listen = 127.0.0.1:9000

9000포트가 이미 다른곳에서 사용되고 있어서 에러가 발생한 모양입니다.

다른포트로 수정하니 잘 됩니다.

 

728x90
반응형
Trackback : | Comments :