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
便可登錄