Tomcat does not start with root privileges.

Source: Internet
Author: User

Last night the server did not start, first to restore the crime scene,

error Operation procedure : Replace a directory under the classes directory, such as COM, because of the replacement of the classes file, you need to restart Tomcat, in the bin directory to execute SH start.sh

However, you should first stop the existing process, Ps-ef |grep Java, isolate the existing process number, and then execute the KILL-9 + process number

Kill, then execute SH start.sh start failed, switch to root, start, or fail!

solve the process : replace the original directory, with the root, when it was cut into root, did not find, look at the COM directory user rights, really is root, change the permissions it chown-r Nginx.nginx, all Nginx permissions, and then execute SH start.sh, what's going on? Or can not start, Yun-dimensional brother, help it, soon, OK, what's the matter? What's going on? Brother Yun looked at Start.sh's script.

User choose the wrong, forget to say, the current use is SA user, Su nginx,sh start.sh,ps-ef |grep java good, start success!

The next time you replace the file, you must pay attention to the user! Be careful with root!.

Tomcat does not start with root privileges.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.