natapp - 内网穿透 网管技术


https://natapp.cn/

https://natapp.cn/#download

chmod a+x natapp

nohup ./natapp -authtoken=318716a0cd1f2e53 -log=stdout -loglevel=ERROR &

nohup ./natapp -authtoken=318716a0cd1f2e53 -log=stdout  &


/opt/natapp -authtoken=318716a0cd1f2e53 


vim  /usr/lib/systemd/system/natapp.service

# Centos 7
# 存放位置 /usr/lib/systemd/system
# 状态 systemctl status natapp
# 开启 systemctl start natapp
# 关闭 systemctl stop natapp
# 开机启动 systemctl enable natapp
# 取消开机启动 system disable natapp
[Unit]
Description=NatApp Service
Wants=network-online.target
After=network.target
[Service]
Type=simple
ExecStart=/opt/natapp -authtoken=318716a0cd1f2e53 -log=stdout -loglevel=ERROR &
# Suppress stderr to eliminate duplicated messages in syslog. NM calls openlog()
# with LOG_PERROR when run in foreground. But systemd redirects stderr to
# syslog by default, which results in logging each message twice.
StandardOutput=syslog
StandardError=null
[Install]
WantedBy=multi-user.target


签名:这个人很懒,什么也没有留下!
最新回复 (0)
返回