mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2025-02-08 02:39:29 +08:00
- 安装.net 5运行时环境, 文档:.net runtime install
执行
donet
判断否安装成功,安装成功后执行whereis dotnet
获取执行文件所在位置,此路径通常为/usr/share/dotnet/dotnet
下一步需要用到 - 编写service文件,例如:fasttunnel.service,根据自己的机器环境不同自行修改参数
WorkingDirectory=xxxxxx ExecStart=xxxxxxx ExecReload=xxxxx
等,其他参数不做介绍,不懂的可以百度 放置在linux目录/etc/systemd/system
下 - 执行配置开机自启命令
systemctl enable fasttunnel.service
- 执行启动服务命令
systemctl start fasttunnel.service