newbee系統的安裝

來源:互聯網
上載者:User

1. 安裝postgresql資料庫

 

1.1 執行安裝包裡面setup.bat開始安裝

1.2 第一個使用者是postgresql資料庫專用的作業系統使用者,第二個資料庫使用者

1.3 其他選項採用預設值即可

 

2. 安裝pgAdminII,postgresql專用的用戶端

 

2.1 初始化資料庫(注意把指令碼中的使用者替換為你的真是使用者)

 

3. 安裝JDK(1.5.0)或JRE(1.5.0)

 

4. 拷貝apache-tomcat-5.5.xx到合適的目錄

 

5. 配置tomcat

 

5.1 JNDI配置

 

server.xml 中添加一下元素(red),注意要根據自己的項目修改以下屬性值

 

  <GlobalNamingResources>

 

    ... ...

    <Resource
      name="jdbc/newbee"
      type="javax.sql.DataSource"
      password="esoon"
      driverClassName="org.postgresql.Driver"
      maxIdle="2"
      maxWait="5000"
      validationQuery="select 1"
      username="sa"
      url="jdbc:postgresql://localhost:5432/newbee"
      maxActive="4"/>

  </GlobalNamingResources>

 

手工添加檔案 conf/Catalina/localhost/newbee.xml ,檔案名稱與應用項目要一致, 內容如下:

 

<Context docBase="C:/apache-tomcat-5.5.17/webapps/newbee" privileged="true">
    <ResourceLink name="jdbc/newbee" global="jdbc/newbee" type="javax.sql.DataSource"/>
 </Context>

 

把資料庫驅動拷貝到 %Tomcat_home%/common/lib 目錄下

 

6. 把log4j.properties檔案中的絕對路徑修改為合適的值

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.