实现端口转发功能,经测试,ssh、http可以正常使用
This commit is contained in:
14
mytcp.service
Normal file
14
mytcp.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=mytcp service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
WorkingDirectory=/root/work/mytcp
|
||||
ExecStart=/usr/bin/python3 server.py
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user