一,脚本文件格式(PerformanceAPI.sh):
#!/bin/sh
cd /xxx/PerformanceLinux发布
dotnet PerformanceAPI.dll
二,权限设置:
1,给PerformanceAPI.sh文件设置权限:
chmod +x PerformanceAPI.sh
2,找到/etc/(rc.d/)rc.local该系统文件,在最末尾添加如下代码:
/xx/PerformanceAPI.sh
3,对rc.local系统文件设置权限:
chmod +x /etc/(rc.d/)rc.local