unable to start nginx on centos 7












3














service nginx start
Redirecting to /bin/systemctl start nginx.service
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.

[root@myvps ~]# systemctl status nginx.service
nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled)
Active: failed (Result: exit-code) since Tue 2014-12-23 03:48:02 EST; 10s ago
Process: 19895 ExecStart=/usr/sbin/nginx (code=exited, status=1/FAILURE)
Process: 19892 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)

Dec 23 03:48:00 myvps nginx[19892]: nginx: configuration file /etc/nginx...ul
Dec 23 03:48:00 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:00 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:01 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:01 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:02 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:02 myvps nginx[19895]: nginx: [emerg] still could not bind()
Dec 23 03:48:02 myvps systemd[1]: nginx.service: control process exited,...=1
Dec 23 03:48:02 myvps systemd[1]: Failed to start The nginx HTTP and rev...r.
Dec 23 03:48:02 myvps systemd[1]: Unit nginx.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

[root@myvps ~]# journalctl -xn
-- Logs begin at Mon 2014-12-22 15:26:47 EST, end at Tue 2014-12-23 03:48:02 EST
Dec 23 03:48:00 myvps nginx[19892]: nginx: configuration file /etc/nginx/ngin
Dec 23 03:48:00 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:00 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:01 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:01 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:02 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:02 myvps nginx[19895]: nginx: [emerg] still could not bind()
Dec 23 03:48:02 myvps systemd[1]: nginx.service: control process exited, code
Dec 23 03:48:02 myvps systemd[1]: Failed to start The nginx HTTP and reverse
-- 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.
Dec 23 03:48:02 myvps systemd[1]: Unit nginx.service entered failed state.


and /lib/systemd/system/nginx-service



[Unit]
Description=The nginx HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target


and



nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful


and



netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 17005/mysqld
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 769/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 772/sendmail: accep
tcp6 0 0 :::80 :::* LISTEN 1373/httpd
tcp6 0 0 :::22 :::* LISTEN 769/sshd


I installed nginx-1.6.2-4.el7.x86_64 on my centos 7 64 bit using Epel 7.5










share|improve this question




















  • 1




    nginx: [emerg] bind() to 0.0.0.0:80 faile ---> check if there are other process listen in port 80. For example, run netstat -tulpn
    – masegaloeh
    Dec 23 '14 at 9:09












  • @masegaloeh I edit my question
    – Lynob
    Dec 23 '14 at 9:24
















3














service nginx start
Redirecting to /bin/systemctl start nginx.service
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.

[root@myvps ~]# systemctl status nginx.service
nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled)
Active: failed (Result: exit-code) since Tue 2014-12-23 03:48:02 EST; 10s ago
Process: 19895 ExecStart=/usr/sbin/nginx (code=exited, status=1/FAILURE)
Process: 19892 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)

Dec 23 03:48:00 myvps nginx[19892]: nginx: configuration file /etc/nginx...ul
Dec 23 03:48:00 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:00 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:01 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:01 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:02 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:02 myvps nginx[19895]: nginx: [emerg] still could not bind()
Dec 23 03:48:02 myvps systemd[1]: nginx.service: control process exited,...=1
Dec 23 03:48:02 myvps systemd[1]: Failed to start The nginx HTTP and rev...r.
Dec 23 03:48:02 myvps systemd[1]: Unit nginx.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

[root@myvps ~]# journalctl -xn
-- Logs begin at Mon 2014-12-22 15:26:47 EST, end at Tue 2014-12-23 03:48:02 EST
Dec 23 03:48:00 myvps nginx[19892]: nginx: configuration file /etc/nginx/ngin
Dec 23 03:48:00 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:00 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:01 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:01 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:02 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:02 myvps nginx[19895]: nginx: [emerg] still could not bind()
Dec 23 03:48:02 myvps systemd[1]: nginx.service: control process exited, code
Dec 23 03:48:02 myvps systemd[1]: Failed to start The nginx HTTP and reverse
-- 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.
Dec 23 03:48:02 myvps systemd[1]: Unit nginx.service entered failed state.


and /lib/systemd/system/nginx-service



[Unit]
Description=The nginx HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target


and



nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful


and



netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 17005/mysqld
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 769/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 772/sendmail: accep
tcp6 0 0 :::80 :::* LISTEN 1373/httpd
tcp6 0 0 :::22 :::* LISTEN 769/sshd


I installed nginx-1.6.2-4.el7.x86_64 on my centos 7 64 bit using Epel 7.5










share|improve this question




















  • 1




    nginx: [emerg] bind() to 0.0.0.0:80 faile ---> check if there are other process listen in port 80. For example, run netstat -tulpn
    – masegaloeh
    Dec 23 '14 at 9:09












  • @masegaloeh I edit my question
    – Lynob
    Dec 23 '14 at 9:24














3












3








3







service nginx start
Redirecting to /bin/systemctl start nginx.service
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.

[root@myvps ~]# systemctl status nginx.service
nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled)
Active: failed (Result: exit-code) since Tue 2014-12-23 03:48:02 EST; 10s ago
Process: 19895 ExecStart=/usr/sbin/nginx (code=exited, status=1/FAILURE)
Process: 19892 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)

Dec 23 03:48:00 myvps nginx[19892]: nginx: configuration file /etc/nginx...ul
Dec 23 03:48:00 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:00 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:01 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:01 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:02 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:02 myvps nginx[19895]: nginx: [emerg] still could not bind()
Dec 23 03:48:02 myvps systemd[1]: nginx.service: control process exited,...=1
Dec 23 03:48:02 myvps systemd[1]: Failed to start The nginx HTTP and rev...r.
Dec 23 03:48:02 myvps systemd[1]: Unit nginx.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

[root@myvps ~]# journalctl -xn
-- Logs begin at Mon 2014-12-22 15:26:47 EST, end at Tue 2014-12-23 03:48:02 EST
Dec 23 03:48:00 myvps nginx[19892]: nginx: configuration file /etc/nginx/ngin
Dec 23 03:48:00 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:00 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:01 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:01 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:02 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:02 myvps nginx[19895]: nginx: [emerg] still could not bind()
Dec 23 03:48:02 myvps systemd[1]: nginx.service: control process exited, code
Dec 23 03:48:02 myvps systemd[1]: Failed to start The nginx HTTP and reverse
-- 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.
Dec 23 03:48:02 myvps systemd[1]: Unit nginx.service entered failed state.


and /lib/systemd/system/nginx-service



[Unit]
Description=The nginx HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target


and



nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful


and



netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 17005/mysqld
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 769/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 772/sendmail: accep
tcp6 0 0 :::80 :::* LISTEN 1373/httpd
tcp6 0 0 :::22 :::* LISTEN 769/sshd


I installed nginx-1.6.2-4.el7.x86_64 on my centos 7 64 bit using Epel 7.5










share|improve this question















service nginx start
Redirecting to /bin/systemctl start nginx.service
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.

[root@myvps ~]# systemctl status nginx.service
nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled)
Active: failed (Result: exit-code) since Tue 2014-12-23 03:48:02 EST; 10s ago
Process: 19895 ExecStart=/usr/sbin/nginx (code=exited, status=1/FAILURE)
Process: 19892 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)

Dec 23 03:48:00 myvps nginx[19892]: nginx: configuration file /etc/nginx...ul
Dec 23 03:48:00 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:00 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:01 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:01 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:02 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 ...e)
Dec 23 03:48:02 myvps nginx[19895]: nginx: [emerg] still could not bind()
Dec 23 03:48:02 myvps systemd[1]: nginx.service: control process exited,...=1
Dec 23 03:48:02 myvps systemd[1]: Failed to start The nginx HTTP and rev...r.
Dec 23 03:48:02 myvps systemd[1]: Unit nginx.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

[root@myvps ~]# journalctl -xn
-- Logs begin at Mon 2014-12-22 15:26:47 EST, end at Tue 2014-12-23 03:48:02 EST
Dec 23 03:48:00 myvps nginx[19892]: nginx: configuration file /etc/nginx/ngin
Dec 23 03:48:00 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:00 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:01 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:01 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:02 myvps nginx[19895]: nginx: [emerg] bind() to 0.0.0.0:80 faile
Dec 23 03:48:02 myvps nginx[19895]: nginx: [emerg] still could not bind()
Dec 23 03:48:02 myvps systemd[1]: nginx.service: control process exited, code
Dec 23 03:48:02 myvps systemd[1]: Failed to start The nginx HTTP and reverse
-- 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.
Dec 23 03:48:02 myvps systemd[1]: Unit nginx.service entered failed state.


and /lib/systemd/system/nginx-service



[Unit]
Description=The nginx HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target


and



nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful


and



netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 17005/mysqld
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 769/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 772/sendmail: accep
tcp6 0 0 :::80 :::* LISTEN 1373/httpd
tcp6 0 0 :::22 :::* LISTEN 769/sshd


I installed nginx-1.6.2-4.el7.x86_64 on my centos 7 64 bit using Epel 7.5







centos nginx






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 23 '14 at 9:23

























asked Dec 23 '14 at 9:02









Lynob

1,368102557




1,368102557








  • 1




    nginx: [emerg] bind() to 0.0.0.0:80 faile ---> check if there are other process listen in port 80. For example, run netstat -tulpn
    – masegaloeh
    Dec 23 '14 at 9:09












  • @masegaloeh I edit my question
    – Lynob
    Dec 23 '14 at 9:24














  • 1




    nginx: [emerg] bind() to 0.0.0.0:80 faile ---> check if there are other process listen in port 80. For example, run netstat -tulpn
    – masegaloeh
    Dec 23 '14 at 9:09












  • @masegaloeh I edit my question
    – Lynob
    Dec 23 '14 at 9:24








1




1




nginx: [emerg] bind() to 0.0.0.0:80 faile ---> check if there are other process listen in port 80. For example, run netstat -tulpn
– masegaloeh
Dec 23 '14 at 9:09






nginx: [emerg] bind() to 0.0.0.0:80 faile ---> check if there are other process listen in port 80. For example, run netstat -tulpn
– masegaloeh
Dec 23 '14 at 9:09














@masegaloeh I edit my question
– Lynob
Dec 23 '14 at 9:24




@masegaloeh I edit my question
– Lynob
Dec 23 '14 at 9:24










2 Answers
2






active

oldest

votes


















3














As @masegaloeh says, you have another process listening on port 80, in this case httpd. You'll need to stop that service first (and probably want to disable it on boot).



To stop Apache;



systemctl stop httpd


To stop Apache starting on boot;



systemctl disable httpd





share|improve this answer





















  • true true everytime i install nginx i forget to stop apache, i keep forgetting about it
    – Lynob
    Dec 23 '14 at 9:27



















0














A port can't handle two services at same time.



systemctl stop httpd



systemctl disable httpd



Then



systemctl restart nginx






share|improve this answer








New contributor




Heshan Dharmasena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f175578%2funable-to-start-nginx-on-centos-7%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    As @masegaloeh says, you have another process listening on port 80, in this case httpd. You'll need to stop that service first (and probably want to disable it on boot).



    To stop Apache;



    systemctl stop httpd


    To stop Apache starting on boot;



    systemctl disable httpd





    share|improve this answer





















    • true true everytime i install nginx i forget to stop apache, i keep forgetting about it
      – Lynob
      Dec 23 '14 at 9:27
















    3














    As @masegaloeh says, you have another process listening on port 80, in this case httpd. You'll need to stop that service first (and probably want to disable it on boot).



    To stop Apache;



    systemctl stop httpd


    To stop Apache starting on boot;



    systemctl disable httpd





    share|improve this answer





















    • true true everytime i install nginx i forget to stop apache, i keep forgetting about it
      – Lynob
      Dec 23 '14 at 9:27














    3












    3








    3






    As @masegaloeh says, you have another process listening on port 80, in this case httpd. You'll need to stop that service first (and probably want to disable it on boot).



    To stop Apache;



    systemctl stop httpd


    To stop Apache starting on boot;



    systemctl disable httpd





    share|improve this answer












    As @masegaloeh says, you have another process listening on port 80, in this case httpd. You'll need to stop that service first (and probably want to disable it on boot).



    To stop Apache;



    systemctl stop httpd


    To stop Apache starting on boot;



    systemctl disable httpd






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Dec 23 '14 at 9:24









    Chris Davidson

    1,157610




    1,157610












    • true true everytime i install nginx i forget to stop apache, i keep forgetting about it
      – Lynob
      Dec 23 '14 at 9:27


















    • true true everytime i install nginx i forget to stop apache, i keep forgetting about it
      – Lynob
      Dec 23 '14 at 9:27
















    true true everytime i install nginx i forget to stop apache, i keep forgetting about it
    – Lynob
    Dec 23 '14 at 9:27




    true true everytime i install nginx i forget to stop apache, i keep forgetting about it
    – Lynob
    Dec 23 '14 at 9:27













    0














    A port can't handle two services at same time.



    systemctl stop httpd



    systemctl disable httpd



    Then



    systemctl restart nginx






    share|improve this answer








    New contributor




    Heshan Dharmasena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0














      A port can't handle two services at same time.



      systemctl stop httpd



      systemctl disable httpd



      Then



      systemctl restart nginx






      share|improve this answer








      New contributor




      Heshan Dharmasena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





















        0












        0








        0






        A port can't handle two services at same time.



        systemctl stop httpd



        systemctl disable httpd



        Then



        systemctl restart nginx






        share|improve this answer








        New contributor




        Heshan Dharmasena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        A port can't handle two services at same time.



        systemctl stop httpd



        systemctl disable httpd



        Then



        systemctl restart nginx







        share|improve this answer








        New contributor




        Heshan Dharmasena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Heshan Dharmasena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 15 mins ago









        Heshan Dharmasena

        1




        1




        New contributor




        Heshan Dharmasena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Heshan Dharmasena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Heshan Dharmasena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f175578%2funable-to-start-nginx-on-centos-7%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Accessing regular linux commands in Huawei's Dopra Linux

            Can't connect RFCOMM socket: Host is down

            Kernel panic - not syncing: Fatal Exception in Interrupt