Mac安裝tomcat及配置

2021-10-01 04:53:37 字數 788 閱讀 6542

2.安裝:

壓縮之後直接拷貝到資源庫中

設定 tomcat 的環境變數:

①輸入touch .bash_profile ( pico .bash_profile 也行)

②開啟bash_profile,輸入命令開啟:open -e .bash_profile(nano .bash_profile亦可)

③輸入tomcat儲存路徑export path=$path:/users/keso/library/tomcat8/bin (注意:此處路徑是自己儲存的 tomcat 儲存路徑)

④更新配置的環境變數,輸入命令:source .bash_profile

⑤驗證是否成功,終端中輸入命令 $path

顯示如下-bash: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/users/keso/library/tomcat8/bin: no such file or directory

3.終端中輸入startup.sh, startup.sh後出現類似 「permission denied」 ,這個時候需要對目錄進行許可權設定:輸入 sudo chmod 755 library/tomcat8/bin/*.sh 回車,設定檔案的讀寫執行許可權; (我未經歷此步驟)

開啟終端,輸入以下命令 library/tomcat8/bin/startup.sh,瀏覽器中輸入localhost:8080

4.關閉需要使用 shutdown.sh 即可;

Mac安裝配置Tomcat

第三步,按住shift command g,會彈出文字框,在文字框內輸入 library 然後把解壓的檔案拖進去 第四步,開啟終端,輸入sudo chmod library 你的檔名 bin sh 然後回車,如果上述語句正確的話,這時會讓你輸入密碼,該密碼就是開機密碼,輸入密碼後,回車,這時再按住s...

mac安裝配置Tomcat

一 安裝tomcat 2 解壓tomcat檔案,最好把它檔名重新命名為 tomcat 方便以後查詢,最後把它放入 library 資源庫中 1 點選finder 使用者 你電腦的名字 資源庫 有的也叫 library 2 有些蘋果將library目錄隱藏起來了,可以直接點左上角前往,前往資料夾,路徑...

mac 下tomcat 安裝與配置

經 2016年12月23日測試,可用 1 進入tomcat官網 從左側選擇版本 3 解壓後得乙個檔案,例如下面 4 開啟 終端,輸入以下命令 sudo mkdir p usr local sudo mv downloads 解壓後的tomcat檔案 usr local sudo rm f libra...