1
처음으로 fedora 24에서 nginx 서버를 지연시키고 있습니다. 개발을 위해 apache 서버를 사용하고 있습니다. onlyoffice 통합 들어 nginx 서버를 설치해야합니다. 이 명령을 사용하여 nginx 서버를 설치했습니다. dnf install nginx
시작하지 못했습니다. nginx HTTP 및 역방향 프록시 서버 문제
nginx 서버를 시작하기 전에 아파치를 중지하고 아래처럼 비활성화했습니다.
systemctl stop httpd
systemctl disable httpd
nginx 서버를 시작하면 sudo service nginx start
오류가 발생합니다.
Redirecting to /bin/systemctl start nginx.service
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
그래서 나는 내 터미널에서 출력 아래에있어, 문제의 세부 사항을 알 수 있도록
systemctl status nginx.service
명령을 실행.
[[email protected] ~]# systemctl -l status nginx.service
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2016-10-20 01:45:57 IST; 10s ago
Process: 10719 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Process: 10709 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Oct 20 01:45:57 localhost.localdomain systemd[1]: Starting The nginx HTTP and reverse proxy server...
Oct 20 01:45:57 localhost.localdomain nginx[10719]: nginx: [emerg] no port in upstream "php-fpm" in /etc/nginx/default.d/phpMyAdmin.conf:17
Oct 20 01:45:57 localhost.localdomain nginx[10719]: nginx: configuration file /etc/nginx/nginx.conf test failed
Oct 20 01:45:57 localhost.localdomain systemd[1]: nginx.service: Control process exited, code=exited status=1
Oct 20 01:45:57 localhost.localdomain systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
Oct 20 01:45:57 localhost.localdomain systemd[1]: nginx.service: Unit entered failed state.
Oct 20 01:45:57 localhost.localdomain systemd[1]: nginx.service: Failed with result 'exit-code'.
나는 /etc/nginx/nginx.conf하지만 문제에
listen 801
에
listen 80
을 변경하여 해결하기 위해 여러 가지 방법을 시도했다. 나는 또한 아래 URL을 따라 갔지만 문제를 해결할 수는 없다. 사전에
nginx not started and can't start
https://serverfault.com/questions/717752/cant-start-nginx-code-exited-status-1-failure
는 /etc/nginx/default.d/phpMyAdmin.conf
# phpMyAdmin
location = /phpMyAdmin {
alias /usr/share/phpMyAdmin/;
}
location /phpMyAdmin/ {
root /usr/share;
index index.php index.html;
location ~ ^/phpMyAdmin/(.+\.php)$
{
try_files $uri =404;
fastcgi_intercept_errors on;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass php-fpm; //this is line number 17
}
}
감사합니다.
이 특정 문제에 대해 자세히 알지는 못하지만 로그 출력을 통해 조사 할 특정 문제를 알 수 있습니다 :'Oct 20 01:45:57 localhost.localdomain nginx [10719] : nginx : [emerg] /etc/nginx/default.d/phpMyAdmin.conf의 업스트림 "php-fpm"포트가 없습니다 : 17' – mattdm
@mattdm 응답 해 주셔서 감사합니다. 나는 그 파일을 확인했지만 나는 얻지 못하고있다. 그래서 그 파일 내용을 제 질문에 추가했습니다. 확인해주십시오 –