linux 下启动tomcatlinux
[root@test233 bin]# sh startup.sh
Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this programweb
解决办法:
给.sh文件受权apache
[root@test233 bin]# chmod +x *.sh bootstrap
再启动,成功浏览器
[root@test233 bin]# sh startup.sh
Using CATALINA_BASE: /home/tomcat2
Using CATALINA_HOME: /home/tomcat2
Using CATALINA_TMPDIR: /home/tomcat2/temp
Using JRE_HOME: /home/jdk
Using CLASSPATH: /home/tomcat2/bin/bootstrap.jar:/home/tomcat2/bin/tomcat-juli.jar
Tomcat started.tomcat
ApacheTomcat
,放到/Users/计算机名/Library/
目录下Terminal
,进入ApacheTomcat
所在目录的bin
目录下Tomcat
chmod
修改一下bin
目录下的.sh
权限,没有出现说明启动成功./startup.sh
便可启动,界面以下http://localhost:8080
(或者在手机浏览器中输入电脑IP
+端口号也能够访问)显示以下界面:conf
目录的tomcat-users.xml
文件里</tomcat-users>
上面加入如下代码:xml
的标签都要关闭,还要重启tomcat
. 从新打开http://localhost:8080
到Tomcat
主界面,点击 Manager App
等按钮帐号和密码输入tomcat
便可登录