Ȩ¼­¹ö nginx ±¸Ãà Áú¹® ¤Ð¤Ð

   Á¶È¸ 2347   Ãßõ 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 ¼³Ä¡ Çϼ̰ÚÁÒ?
     
³× php ¿Í°°ÀÌ ¼³Ä¡Çß¾ú½À´Ï´Ù °¨»çÇÕ´Ï´Ù ¿¢Æ¼ºêµÇ³×¿ä ¤Ð¤Ð
dateno1 2021-08
Ȥ½Ã³ªÇؼ­ ÇØ´ç ¶óÀÎ ´Ù½Ã ÃÄ´Ùº¸´Ï ¿ÀŸ°¡...
nginx´Â Ãʹݿ¡ ºýÄ¡´Â ÀÏÀÌ ¸¹´õ¶ó±¸¿ä.. ¤Ð_¤Ð


QnA
Á¦¸ñPage 4621/5607
2015-12   1104174   ¹é¸Þ°¡
2014-05   4554850   Á¤ÀºÁØ1
2011-05   6988   ÀåÇп±
2018-07   7992   ¶ó¿ÂÁ¦³ª
2011-05   7214   ÀÌ»óÇå
2022-07   1319   ÆÄÇÇǪÆä
2016-05   7224   Àεð°í
2015-03   4616   ·±·±·±
2018-08   3309   ¿Ï¼ÒÈƳ²
2011-05   15515   ¼ÒÁÖÇѺ´
2015-03   5894   ÇÏÁ¤±¸
2017-05   2910   À̹ο쿡¿ä
2015-04   4059   ¸ùź
2018-08   3303   ¿©ÁÖ³ó¹Î76
2016-05   6712   ½Å¿ì¼·
2011-06   6185   ÀüÇüÁØ
2015-04   3693   µµ¶ó¿¡¸Û
2017-05   2891   ¿¥ºê¸®¿À
2021-01   1935   AMDºô·±
2018-08   6215   ½ÅÀº¿Ö
2019-10   2331   ȣȣ
2017-05   3440   Àü»êoa