In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Go to the apache official home page http://tomcat.apache.org to download the complete tar.gz package of the Mac version. Unzip and copy it to the / Library directory and name it Tomcat. Other directories are fine. I'll explain it with / Library.
two。 Open the terminal and enter sudo chmod 755 / Library/Tomcat/bin/*.sh directly. After pressing the enter key, you may be prompted to enter the password. Please enter the administrator password, which is the right to modify the * .sh file in the bin directory.
Cd to / LibraryTomcat/bin directory, enter: sudo sh startup.sh. If you don't cd in, you can start tomcat directly outside / Library/Tomcat/bin/startup.sh.
If the following prompt appears, the operation is successful:
Using CATALINA_BASE: / Library/TomcatUsing CATALINA_HOME: / Library/TomcatUsing CATALINA_TMPDIR: / Library/Tomcat/tempUsing JRE_HOME: / System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
3. Open the browser and type http://localhost:8080. If you see the Apache Tomcat URL after entering enter, it means that Tomcat has been run successfully.
4. Enter the command sudo sh / Library/Tomcat/bin/shutdown.sh in the terminal, or you can turn off Tomcat after entering the enter directly outside / Library/Tomcat/bin/shutdown.sh.
Next, configure tomcat in Eclipse
Aside from the topic: sudo is usually the system super administrator 755 on behalf of the user has the right to read, write, execute the file, other people in the same group have the right to execute and read, no write permission, other users' permissions are the same as those in the same group. User,group, others, all have read, write and executable permissions.
1. First download a plug-in, Tomcat Eclipse Plugin, download address: http://www.eclipsetotale.com/tomcatPlugin.html
Last login: Wed Jul 19 08:59:29 on consolezhouqiandeMacBook-Air:~ zhouqian$ sudo chmod 755 / Library/Tomcat/bin/*.shPassword:chmod: / Library/Tomcat/bin/*.sh: No such file or directoryzhouqiandeMacBook-Air:~ zhouqian$ sudo chmod 755 / library/tomcat/apache-tomcat-7.0.79/bin/*.shzhouqiandeMacBook-Air:~ zhouqian$ cd / library/tomcat/apache-tomcat-7.0.79/binzhouqiandeMacBook-Air:bin zhouqian$ sudo sh startup.shUsing CATALINA_BASE: / Library/tomcat / apache-tomcat-7.0.79Using CATALINA_HOME: / Library/tomcat/apache-tomcat-7.0.79Using CATALINA_TMPDIR: / Library/tomcat/apache-tomcat-7.0.79/tempUsing JRE_HOME: / Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/HomeUsing CLASSPATH: / Library/tomcat/apache-tomcat-7.0.79/bin/bootstrap.jar:/Library/tomcat/apache-tomcat-7.0.79/bin/tomcat- Juli.jarTomcat started.zhouqiandeMacBook-Air:bin zhouqian$ sudo sh / library/tomcat/apache-tomcat-7.0.79/bin/shutdown.shUsing CATALINA_BASE: / library/tomcat/apache-tomcat-7.0.79Using CATALINA_HOME: / library/tomcat/apache-tomcat-7.0.79Using CATALINA_TMPDIR: / library/tomcat/apache-tomcat-7.0.79/tempUsing JRE_HOME: / Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/HomeUsing CLASSPATH: / library/tomcat/apache-tomcat-7.0.79/bin/bootstrap.jar:/library/tomcat/apache-tomcat-7.0.79/bin/tomcat-juli.jarzhouqiandeMacBook-Air:bin zhouqian$
Summary
The above is the detailed explanation of the tutorial of installing tomcat under Mac introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply you in time. Thank you very much for your support to the website!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.