编辑文件

 vim /etc/rc.d/rc.local

添加如下内容
export JAVA_HOME=/opt/env/jdk-11.0.13
/opt/env/apache-tomcat-9.0.64/bin/startup.sh start

添加执行权限

chmod +x /etc/rc.d/rc.local

开始重启服务器

reboot

最后修改于 2022-11-16 11:46:14
如果觉得我的文章对你有用,请随意赞赏
扫一扫支付
上一篇