winsw来设置window自启服务
1.下载winsw https://github.com/winsw/winsw/releases;(WinSW.NET4.exe 833 KB WinSW.NET461.exe)都可
2.改名为winsw.exe,新建文件winsw.xml编写如下内容;
<service>
<id>frp</id>
<name>frp29_windows</name>
<description>旭宏服务frpc内网穿透</description>
<executable>D:\Program Files_JAVA\frp_0.29.1_windows_amd64\frpc</executable>
<arguments>-c frpc.ini</arguments>
<logmode>reset</logmode>
</service>
3.管理员cmd进入该目录下,winsw install winsw start winsw status
树莓派自启失败;原因启动太快,frp没启动。
https://blog.csdn.net/Ruanes/article/details/108186316