notes on port 80
This commit is contained in:
@@ -70,4 +70,16 @@ cd NNG4 && python3 ./gameserver.py
|
|||||||
# Test docker
|
# Test docker
|
||||||
```
|
```
|
||||||
docker run --runtime=runsc --network=none --rm -it nng4:latest
|
docker run --runtime=runsc --network=none --rm -it nng4:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
# Running on port 80
|
||||||
|
|
||||||
|
## Set environment variable
|
||||||
|
```
|
||||||
|
export PORT=80
|
||||||
|
```
|
||||||
|
## Enable running on port 80:
|
||||||
|
```
|
||||||
|
sudo apt-get install libcap2-bin
|
||||||
|
sudo setcap cap_net_bind_service=+ep `readlink -f \`which node\``
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user