1、创建用户 useradd xxx 2、更改目录所属用户 chown -R xxx /home/tomcat 3、停止之前的tomcat sh startup.sh 4、重启tomcat sh startup.sh