September 28, 2014 06:15PM
Hello all,

I am trying to enable nginx to listen to port 8090 via default.conf file under /etc/nginx/conf.d directory but it fails with following error :

-- Unit nginx.service has begun starting up.
Sep 29 01:13:58 spidrproxy.netas.lab.nortel.com nginx[7284]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Sep 29 01:13:58 spidrproxy.netas.lab.nortel.com nginx[7284]: nginx: [emerg] bind() to 0.0.0.0:8090 failed (13: Permission denied)
Sep 29 01:13:58 spidrproxy.netas.lab.nortel.com nginx[7284]: nginx: configuration file /etc/nginx/nginx.conf test failed
Sep 29 01:13:58 spidrproxy.netas.lab.nortel.com systemd[1]: nginx.service: control process exited, code=exited status=1
Sep 29 01:13:58 spidrproxy.netas.lab.nortel.com systemd[1]: Failed to start nginx - high performance web 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.
Sep 29 01:13:58 spidrproxy.netas.lab.nortel.com systemd[1]: Unit nginx.service entered failed state.

[root@spidrproxy conf.d]#


default.conf file is as below :

server {
listen 8090;
server_name 47.168.136.70;

#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;

location / {
root /usr/share/nginx/html;
index index.html index.htm;
}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}

# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
Subject Author Posted

nginx cannot listen to port 8090

mert1972 September 28, 2014 06:15PM

Re: nginx cannot listen to port 8090

Anton Sayetsky September 29, 2014 12:46AM

Re: nginx cannot listen to port 8090

mert1972 September 29, 2014 07:31AM

Re: nginx cannot listen to port 8090

dewanggaba September 29, 2014 07:40AM

Re: nginx cannot listen to port 8090

mert1972 September 29, 2014 09:10AM

Re: nginx cannot listen to port 8090

Anton Sayetsky September 29, 2014 09:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready