场景:在虚拟机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。
本文介绍如何在CentOS虚拟机环境下以特定用户身份启动Tomcat应用服务器,并通过定制脚本来实现这一过程。文中详细解释了从创建启动脚本到赋予执行权限,再到最终运行的全部步骤。
场景:在虚拟机centos的shiyw用户启动80端口的tomcat
以shiyw用户登陆
vi apache-tomcat-6.0.45/bin/startupByRoot.sh
chmod +x startupByRoot.sh
*EOF:end of file,Shell中通常将EOF与 << 结合使用,表示后续的输入作为子命令或子Shell的输入,直到遇到EOF为止,再返回到主调Shell。

被折叠的 条评论
为什么被折叠?
