linux,用脚本将进程提高优先级

linux,用脚本进程提高优先级
新建
nice.sh文件,属性为777(CHMOD 777 nice.sh)
内容为:
#!/bin/sh
ps -ef|grep hlds_run15|grep -v grep|awk ‘{print $2}’|while read ID;do renice -20 $ID;done
其中hlds_run15为进程名称。可用ps -A命令先查看进程名称。linuxidc.com" target="_blank">

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/45dc4acce12e2ae4067e3b8ceaf74d19.html