2018-01-11 非root用户启动80端口
场景:在虚拟机centos的shiyw用户启动80端口的tomcat
-
以shiyw用户登陆
vi apache-tomcat-6.0.45/bin/startupByRoot.sh
chmod +x startupByRoot.sh
- ./startupByRoot.sh
*EOF:end of file,Shell中通常将EOF与 << 结合使用,表示后续的输入作为子命令或子Shell的输入,直到遇到EOF为止,再返回到主调Shell。