nginx cannot listen to port 8090

Anton Sayetsky vsjcfm at gmail.com
Mon Sep 29 04:45:03 UTC 2014


Looks like SELinux/AppArmor problem.

2014-09-29 1:15 GMT+03:00 mert1972 <nginx-forum at nginx.us>:
> 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 at 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;
>     #}
> }
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253578,253578#msg-253578
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list