rebecca554owen
192 天前
## Server side
1. Find a server to deploy openppp2 server
2. Connect to the server.
3. Download the openppp2 zip remotely.
4. Modify the given appsettings.json template file in the openppp2 compressed file.
1. If you have no need to use this server as SNIProxy server, please delete the "cdn" param.
2. If your server has 256MiB+ mem and disk I/O speed of 4K-blocks is not satifying, please delete the vmem param
3. If your server has more than 1 thread, you would better set the cocurrent to the thread number.
4. Set the server listening ip address
1. If you decide to use all the ip assinged to the server, please change the ip.interface and ip.public to "::"
```json
"ip": {
"interface": "::",
"public": "::"
}
```
2. If you decide to use only one ip address, please change the the ip.interface and ip.public to the ip that you want to use.
3. In some special situations, that the public ip is assigned by route, you should change the interface to the "::" and change the public to the ip address going to be used.
4. Hate IPv6? Replace all "::" to "0.0.0.0"
5. Set the tcp and udp port by modifying tcp.listen.port and udp.listen.port
6. Delete the whole websocket param, since the tcp connection would be secured enough facing the censorship.(Websocket connection should be used in some specific situations)
7. Set some server running params
1. server.log is the path to store the connection logs. If you hate logs, please set to "/dev/null"
2. Delete the following params in server block.
```json
"server": {
"log": "/dev/null"
}
```
8. use `screen -S` to keep openppp2 running at backstage
9. Remenber to chmod +x !
10. Boot the server