wiki:oid/WorkLog/09-01-16

Version 5 (modified by jazz, 16 years ago) (diff)

--

2009-01-16

  • 安裝 Tomcat 5.5
    • 參考一
    • 參考二
      oceandb:~# apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps
      oceandb:~# cat << EOF > /etc/tomcat5.5/tomcat-users.xml
      
      <?xml version='1.0' encoding='utf-8'?>
      <tomcat-users>
        <role rolename="admin"/>
        <role rolename="manager"/>
        <user username="${YOUR_NAME}" password="${YOUR_PASSWORD}" roles="admin,manager"/>
      </tomcat-users>
      
      oceandb:~# /etc/init.d/tomcat5.5 restart
      
  • 連線至 http://${YOUR_IP_ADDRESS}:8180/ 就可以看到 manager 跟 admin 的管理介面,以及預設的 JSP 範例。