Tomcat for Mac OS

Source: Internet
Author: User

Procedure

Download tomcat. My tomcat is 7.0.12.
Decompress the folder and rename it Tomcat
Move this folder to your favorite directory, such as/Library
Run startup. Sh in/library/tomcat/bin.
Open http: // localhost: 8080 to check whether tomcat has been started.
Solve the File Permission problem: sudo chmod 755/library/tomcat/bin/*. Sh
Define java_home and add: Export java_home =/library/Java/home in/etc/profile.

Configuration
Add the appropriate location in the/library/tomcat/CONF/tomcat-users.xml File

 Role rolename = "Tomcat"/>
< Role Rolename = "Role1" />
< Role Rolename = "Manager" />
< Role Rolename = "Admin" />
< Role Rolename = "Admin-Gui" />
< Role Rolename = "Admin-script" />
< Role Rolename = "Manager-Gui" />
< Role Rolename = "Manager-script" />
< Role Rolename = "Manager-JMX" />
< Role Rolename = "Manager-status" />
< User Username = "Admin" Password = "Admin"
Roles = "Admin, Manager, role1, tomcat, admin-Gui, admin-
Script, Manager-Gui, Manager-script, Manager-JMX, Manager-status" />

Now, you can use the admin username and password to perform Web management.

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.