一,脚本文件格式(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

相关文章:

  • 2021-12-09
  • 2022-01-20
  • 2021-09-01
  • 2022-02-05
  • 2022-02-28
  • 2021-12-14
  • 2022-02-10
猜你喜欢
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-05-29
  • 2022-02-20
相关资源
相似解决方案