1.启动

[root@localhost bin]# nohup ./startup.sh &

输出:无法运行命令"./startup.sh": 权限不够,则先执行

[root@localhost bin]# chmod u+x *.sh

或者报错

[root@localhost bin]# nohup ./startup.sh &
[1] 8368
[root@localhost bin]# nohup: ignoring input and appending output to ‘nohup.out’
nohup: failed to run command ‘./startup.sh’: Permission denied

 解决办法:

sudo chmod -R 777 某一目录

2.停止

[root@localhost bin]# ./shutdown.sh 

 

Logo

更多推荐