jqqjj / socks5

(支持UDP和TCP的纯Go/Golang socks5服务器) socks5 proxy server builds with go/golang, which UDP and TCP are supported.
MIT License
154 stars 35 forks source link

install as service systemd ubuntu 22.04 #6

Open omgbox opened 10 months ago

omgbox commented 10 months ago

service socket5 start service socket5 stop

nano /etc/systemd/system/socket5.service


[Unit]
Description=socket5
After=network.target

[Service]
Type=simple
WorkingDirectory=/home
ExecStart=/home/linux_x86_64
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=socket5
User=root
Group=root
Environment=PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/home

[Install]
WantedBy=multi-user.target

copy binary into directory /home/linux_x86_64

in terminal systemctl enable socket5.service

service socket5 start

socket5://VPS-IP:1080

jqqjj commented 10 months ago

Did you have any trouble?

omgbox commented 10 months ago

Did you have any trouble?

no trouble, just to share information with users who wish to install this as service in Linux