• Register
0 votes
46 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

$ 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 Tue 2020-01-05 13:23:35 GMT; 2min 20s ago
Jan 05 13:23:33 startdedicated.com nginx[8315]: nginx: [emerg] bind() to ------------ f...e)
Jan 05 13:23:33 startdedicated.com nginx[8315]: nginx: [emerg] bind() to ----- f...e)

 

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

Changing your port may help as the 80 port is already being used somewhere

vi /etc/nginx/sites-available/default

Change your port as below :

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

And after that just restart the nginx server as below:

nginx -t
service nginx restart

 This will resolve your issue.

OR

In my case the issue was because of the apache server is running somehow. So I just stopped my apache then restart the nginx as below :

sudo /etc/init.d/apache2 stop

sudo systemctl restart nginx

And now it is working like a charm!

9 7 4
38,600 points

Related questions

1 vote
1 answer 71 views
71 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 ... 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
asked Dec 30, 2019 alecxe 7.5k points
0 votes
1 answer 166 views
166 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
0 votes
2 answers 307 views
307 views
Problem : I am trying to restart my apache from terminal using the following command: sudo service apache2 restart But when executing above command I am facing below error: Job for apache2.service failed. See "systemctl status apache2.service" and "journalctl -xe" for ... AH00489: Apache/2.4.12 (Unix) configured -- resuming normal operations AH00094: Command line: '/usr/local/apache2/bin/httpd'
asked Dec 18, 2019 alecxe 7.5k points
1 vote
1 answer 377 views
377 views
Problem : We are now running the 32-bit Windows server 2008 with the IIS version of 7. We are trying to publish the asp.net 4.0 webapp but so far our attempts have failed and only yielded the few warnings in our serverlog without even the stopping our 4.0 application ... very badly after that we ran out of the ideas on what to do on our issue so any form of the input would be greatly appreciated.
asked Dec 30, 2019 alecxe 7.5k points
0 votes
1 answer 821 views
821 views
Problem : My Environment is Nginx + uwsgi and I am very new to it. I am getting a 502 bad gateway error from Nginx on certain GET requests. It seems to be related to a length of URL.. Please find below the nginx/error.log [error] 22113#0: *1 recv ... response header from upstream, client: 192.168.1.100, server: server.domain.com, request: "GET <long_url_here>" Can somebody solve this issue?
asked Nov 27, 2019 alecxe 7.5k points
1 vote
1 answer 41 views
41 views
Problem : I want to create the simple user control that should be the slider. When I try to add the AjaxToolkit SliderExtender to my user control I usually get below error: Server Error in '/' Application. The Controls collection cannot be modified because ... control and also tried adding the textbox and the slider extender to my placeholder programmatically but I am still facing the above error.
asked Dec 14, 2019 alecxe 7.5k points
0 votes
1 answer 872 views
872 views
Problem : I am completely new to the Notepad++ and C++ programming language. I am unable to figure out that what has gone wrong in my coding, may be it might look simple to resolved to many. I tried a lot to search for the solution, but without any ... NppExec script taken as below : NPP_SAVE CD $(CURRENT_DIRECTORY) Compiled.exe -c -w "$(FILE_NAME)" Please guide me in resolving this issue.
asked Dec 16, 2019 alecxe 7.5k points
0 votes
1 answer 23 views
23 views
Problem: What is the 503 error and How to fix the 503 error?
asked Nov 2, 2020 sasha 6.4k points
1 vote
1 answer 33 views
33 views
Problem: I have very fundamental knowledge of the Magneto. After I tried to migrate my Magento(CE 1.9.1) website from my existing Apache server to the new Nginx server. I am often facing below error in my frontend: DbModel read resource does not implement Zend_Db_Adapter_Abstract. ... did not work for me. I have also tried to change the DB setting in the local.xml but it did not work for me.
asked May 25, 2020 Martin K 6.6k points
0 votes
1 answer 312 views
312 views
Problem : Currently I am using the nginx and node server to serve the update requests. I often face the gateway timeout whenever I request an update on large data. I saw below error from the nginx error logs as below : 2019/04/07 00:46:04 [error] 28599#0: *1 upstream ... time around 3-4 minutes. Please note I do not get the error for smaller updates. Please let me know how can I resolve the issue.
asked Dec 18, 2019 alecxe 7.5k points