홈서버 nginx 구축 질문 ㅠㅠ

   조회 3701   추천 0    

   통신사단말 > 스위치 > iptime > 홈서버 연결했습니다

  ddns 설정후 ssh 접속으로 yum 업뎃하고 자바설치하고

  nginx 설치,hph7 설치 후 둘 연동 했습니다.

여기서@@@

[root@localhost html]# vi /etc/nginx/conf.d/default.conf

server {

        listen      80;


        root         /usr/share/nginx/html;

        index index.html index.htm index.php;



        location / {

        }


        location ~ \.php$ {

            fastcgi_split_path_info ^(.+\.php)(/.+)$;

            fastcgi_pass   127.0.0.1;9000;

            fastcgi_index  index.php;

            fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;

            include        fastcgi_params;

        }

        location ~ /\.ht {

             deny  all;

        }

        error_page 404 /404;

        location = /404 { # php 404 redirect

        }


        error_page 500 502 503 504 /50x.html;

        location = /50x.html {

        }

}

요로캐 설정하고

cd /usr/share/nginx/html 에 간단히 phpinfo.php 만들어서

nginx 제시작 하니까 에러가뜹니다

Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.


아래는 journalctl -xe 내용 입니다@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


-- Unit nginx.service has begun starting up.

 8월 09 11:10:12 localhost.localdomain nginx[8829]: nginx: [emerg] unknown directive "9000" in /etc/nginx/conf.d/default.conf:13

 8월 09 11:10:12 localhost.localdomain nginx[8829]: nginx: configuration file /etc/nginx/nginx.conf test failed

 8월 09 11:10:12 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1

 8월 09 11:10:12 localhost.localdomain systemd[1]: Failed to start The nginx HTTP and reverse proxy server.

-- Subject: Unit nginx.service has failed

-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

--

-- Unit nginx.service has failed.

--

-- The result is failed.

 8월 09 11:10:12 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.

 8월 09 11:10:12 localhost.localdomain polkitd[692]: Unregistered Authentication Agent for unix-process:8820:5754290 (system bus name :1.91, object p

 8월 09 11:10:12 localhost.localdomain systemd[1]: nginx.service failed.


무슨말인지 1도 모르겠습니다,,


짧은글 일수록 신중하게.
김제연 2021-08
9000 앞에 .. 세미콜론 아니고 콜론입니다.
php-fpm 설치 하셨겠죠?
     
질문빌런 2021-08
네 php 와같이 설치했었습니다 감사합니다 엑티브되네요 ㅠㅠ
dateno1 2021-08
혹시나해서 해당 라인 다시 쳐다보니 오타가...
트니아빠 2021-08
nginx는 초반에 빡치는 일이 많더라구요.. ㅠ_ㅠ


QnA
제목Page 1227/5706
2015-12   1666804   백메가
2014-05   5132145   정은준1
2017-06   3511   정보중독
2014-05   3511   장동건2014
2018-06   3511   인두껍
2020-04   3511   삐돌이슬픔이
2017-09   3511   윈도우10
2015-06   3511   AplPEC
2015-03   3511   흑향
2018-12   3511   leesh2143
2020-11   3511   dotlee
2017-03   3512   나너우리
2014-09   3512   경박한시민
2017-04   3512   scm123
2019-03   3512   limitless
2018-06   3512   하데스
2020-08   3512   프랑
2016-09   3512   두유
2016-02   3512   고고바
2016-01   3512   전설속의미…
2019-08   3512   명랑
2020-06   3512   나비z