0

In open source project,project open, I'm trying to run the server on port 80 for http and 443 for https which gave an error [-nssock:driver-] Error: nssock: failed to listen on 0.0.0.0:80: Permission denied

and also is there anything else required to enable https port(like certification,etc)

VijayD
  • 826
  • 1
  • 11
  • 33

2 Answers2

0

Are there any other applications which already used the port 80? run below command to find out what applicaiton use the resource

netstat -an |grep "\.80 "

lsof -i:80
BMW
  • 42,880
  • 12
  • 99
  • 116
0

Probably you are trying to run AolServer as non-root user, but AolServer is configured to use "privileged" ports 80 and 443 (ports below 1024 are "privileged").

You may either configure your system to allow non-root process to bind to "privileged" ports, or just run AolServer as root. For the first approach also check discussion of the capabilities system.

Community
  • 1
  • 1
vond
  • 1,908
  • 17
  • 17