OpenWrt
下载.run文件
安装
- 可以通过IStoreOS或其他openwrt系统的web后台管理上传安装
每个openwrt系统上的操作方式不同,这里就不例举了
- 通过shell终端安装
将gostc.run上传到任意服务,将当前目录切换到gostc.run所在的目录
shell
chmod +x gostc.run
./gostc.run
安装完成后,可以通过以下命令控制服务
shell
/etc/init.d/gostc start # 启动
/etc/init.d/gostc stop # 停止
/etc/init.d/gostc restart # 重启
默认访问端口为18080,可以通过http://openwrt的IP:18080
访问
如需修改端口,修改/etc/init.d/gostc文件,替换图中标注的端口
修改后,通过/etc/init.d/gostc restart
重启服务即可
卸载
shell
/etc/init.d/gostc stop # 停止服务
/etc/init.d/gostc disable # 关闭开启自启
rm -rf /etc/init.d/gostc # 删除脚本
rm -rf /usr/bin/gostc # 删除可执行文件