Redhat Enterprise Linux 5 實戰系列(四)RHEL5中部署web項目

來源:互聯網
上載者:User

 

 

一.部署web項目

1. 把已經打好包的專案檔,例如JDAN.WAR檔案,放入tomcat的安裝目錄webapps下(/apache-tomcat-6.0.14/webapps/)。

2. 終端視窗,進入/apache-tomcat-6.0.14/bin/,執行startup.sh,啟動服務

3.修改設定檔config.properties:

/apache-tomcat-6.0.14/webapps/JMAM32/WEB-INF/classes/conf/config.properties

4. 重啟tomcat服務:在終端視窗/apache-tomcat-6.0.14/bin/下,依次執行shutdown.sh和startup.sh

5. 關閉redhat預設防火牆,系統——>管理——>安全層級和防火牆中,把防火牆禁用。

 

二.為firefox指定jre

1. RHEL5中預設是firefox1.5,too old。。。我下載最新版本的firefox3.0.4並安裝

2. 在終端視窗下,進入Firefox的安裝路徑,輸入連結命令為firefox指定jre(/usr/java/為java路徑):

ln –s /usr/java/jdk1.5.0_16/jre/plugin/i386/ns7/libjavaplugin_oji.so ./plugins/libjavaplugin_oji.so

(注意要有root的許可權,否則會失敗)。

3.檢查:開啟firefox,在地址欄中輸入about:plugins ,就可以看到已經安裝好JRE環境。

 

三.設定applet許可權:

系統需要用戶端applet的一些東西,需要又有執行許可權。

找到檔案/usr/java/jdk1.5.0_16/jre/lib/security/java.policy

中加入下面一句:

permission java.security.AllPermission;

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.