使用RedHat发布一个Web应用程序,随手记录一下。
//以root用户进入
//启动数据库
su - oracle
sqlplus / as sysdba
SQL>startup
SQL>exit
//关闭数据库
SQL>shutdown immediate
//启动监听
lsnrctl start
//停止监听
lsnrctl stop
//查看监听状态
lsnrctl status
//启动tomcat
su - root
cd /usr/local/apache-tomcat-9.0.64/bin
startup.sh
//停止tomcat
shutdown.sh
//启动apache
cd /usr/local/apache/bin
apachectl start
//停止apache
apachectl stop
//启动应用程序
cd /etc/init.d
APP start另外,将某个程序注册为服务的方法
# su -
# chmod +x /etc/init.d/APP
# chkconfig --add APP
# chkconfig APP on
# chkconfig --list APP
# service APP start
# ps -ef|grep testtUser
# service APP stop 原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。