• Register
1 vote
116 views

Problem :

I am facing the problem which I am trying to fix from the couple of days now and still I don't know what should I do, I am searching for answers but all of those I came across are of no use to me.

I am very new here and I am really hopeful that someone can resolve my issue.

Below is my error message :

$ systemctl status nginx.service
nginx.service - Startup script for nginx service
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2019-12-29 13:23:35 GMT; 2min 20s ago
7.5k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had the same issue and tried all the solutions which I knew, and neither of them worked actually after long research I found the solution for the error as below:

You need to change your port to some other port number as the existing  80 port is already in use somewhere

You can check the available port using below command :

vi /etc/nginx/sites-available/default

Change the port by below procedure:

listen 8080 default_server;
listen [::]:8080 default_server;

After changing your port then you need to restart your nginx server with below commands:

nginx -t
service nginx restart

 

After restarting your server you will find that all your issues are resolved.

38.6k points

Related questions

0 votes
1 answer 178 views
178 views
Problem : I got below problem which I am trying to fix from the few days now and I am unable to know what should I do, I am looking for the answers but all of those which I found are of no use for me. I am very new here so I really hope that somebody can help me in resolving my error $ ... ------------ f...e) Jan 05 13:23:33 startdedicated.com nginx[8315]: nginx: [emerg] bind() to ----- f...e)
asked Jan 6, 2020 alecxe 7.5k points
0 votes
1 answer 10 views
10 views
Problem: Where will I able to find an answer for this : Nginx.service failed because the control process exited with error code
asked Jun 17 asha 121k points
0 votes
1 answer 8 views
8 views
Problem: Has anyone had this complication before : Job for mariadb.service failed because the control process exited with error code.?
asked Jun 15 Chi Omega 168k points
0 votes
1 answer 85 views
85 views
Problem: How do I solve this issue: Job for mysql.service failed because the control process exited with error code.
asked Jun 14 Shima 126k points
0 votes
1 answer 68 views
68 views
Problem: Does this happen to someone else: Job for docker.service failed because the control process exited with error code?
asked Jun 14 Shima 126k points
0 votes
1 answer 5 views
5 views
Problem: Where can I get assistance: Job for httpd.service failed because the control process exited with error code?
asked Jun 14 Shima 126k points
0 votes
1 answer 51 views
51 views
Problem: Is there anyone who knows how to fix this problem: Job for MariaDB.service failed because the control process exited with an error code?
asked Jun 13 Nahil 128k points
0 votes
1 answer 24 views
24 views
Problem: Is there anyone who knows how to fix this problem: Job for apache2.service failed because the control process exited with an error code?
asked Jun 13 Mezbah 130k points
0 votes
1 answer 25 views
25 views
Problem: Do you have any suggestions about how I can resolve this? Thank you so much!
asked Apr 13 zayed1 61.8k points
0 votes
1 answer 342 views
342 views
Problem : I have installed the fresh copy of the Centos 7. Then I just restarted Apache but my Apache failed to start. I am stuck with the bellow error from past 5 days. Even my support could not figure out the below error. sudo service httpd start Failed to ... could not bind to address 85.25.12.20:xx Jan 04 16:08:02 startdedicated.de httpd[5710]: no listening sockets available, shutting down
asked Jan 10, 2020 alecxe 7.5k points