文章目录

1. 切换用户

请切换到root用户执行,普通用户自启动无权限

su
2. 编辑
vim /etc/rc.d/rc.local

# 添加内容
source /etc/profile
touch

Tomcat10 开机启动 Linux环境_重启

3. 赋予权限
chmod
4. 重启服务器
reboot
5. 验证
ps -ef |grep

Tomcat10 开机启动 Linux环境_tomcat_02


Tomcat10 开机启动 Linux环境_服务器_03