bestlong 怕失憶論壇

 

 

搜索
bestlong 怕失憶論壇 論壇 ERP/MRP/MES/APS Odoo (OpenERP, TinyERP) Windows 下安裝 TinyERP
查看: 5896|回復: 1
go

Windows 下安裝 TinyERP [複製鏈接]

Rank: 9Rank: 9Rank: 9

1#
發表於 2008-3-6 11:14 |只看該作者 |倒序瀏覽 |打印
請先安裝 PostgreSQL for Win

啟動 pgAdmin 在 PostgreSQL 新增一個登入帳號 tinyerp 並設定密碼
然後要新增一個資料庫 terp 並指定擁有者為 tinyerp

安裝 TinyERP-Server for Win 但最後步驟不要勾選直接啟動 Server

tinyerp-server-install-1.jpg
tinyerp-server-install-2.jpg
tinyerp-server-install-3.jpg
tinyerp-server-install-4.jpg
tinyerp-server-install-5.jpg
tinyerp-server-install-6.jpg
tinyerp-server-install-7.jpg

然後要修改 C:\Program Files\TinyERP Server\service\tinyerp-server.conf 設定檔
修改其中三個項目:

db_user = tinyerp
db_password = tinyerp的密碼
db_host = localhost


啟動 TinyERP-Server 若是有成功連到資料庫會自動建立資料表
可以檢視 C:\Program Files\TinyERP Server\tinyerp-server.log 確認

安裝 TinyERP-Client for Win

tinyerp-client-install-1.jpg
tinyerp-client-install-2.jpg
tinyerp-client-install-3.jpg
tinyerp-client-install-4.jpg
tinyerp-client-install-5.jpg
tinyerp-client-install-6.jpg
tinyerp-client-install-7.jpg

啟動 TinyERP-Client 設定要連線的主機,預設帳號/密碼 admin/admin
我是雪龍
http://blog.bestlong.idv.tw
http://www.bestlong.idv.tw

Rank: 9Rank: 9Rank: 9

2#
發表於 2008-3-6 14:54 |只看該作者
在安裝完 TinyERP-Server 後,需要初始化並儲存設定檔可以用命令列模式來做
類似下列指令:
  1. tinyerp-server.exe -d terp -r postgresadmin -w postgresadminpasswd
  2.         --db_host=localhost --logfile="C:\Program Files\Tiny ERP Server\tinyerp-server.log"
  3.         --db_port=5432 -s  --stop-after-init
複製代碼
參數說明如下
  • -d <db_name> : Name of the database created for Tiny ERP Server.
  • -r <db_user> : Name of the PostgreSQL administrator.
  • -w <db_password> : Administrator's password.
  • --db_host=<postgresql_server_address> : Adress of the server where is PostgreSQL, if you installed PostgreSQL on the same computer as Tiny ERP Server, you can enter localhost, else the IP adress or the name of the distant server.
  • --db_port=<port_no> : Port number where listens PostgreSQL. Default is 5432.
  • -s : This option allows you to save the options in configuration file of Tiny ERP Server.
  • --stop-after-init: This option stops the ERP server after initialization.
  • --logfile="<logfile>": specify a logfile where will be saved all output of the ERP Server.


所以就上面安裝說明中所列出要改三項設定的環境。開啟一個命令列視窗,切換目前目錄到 TinyERP Server 的安裝目錄,然後用下列指令(請注意是在同一行):
  1. tinyerp-server.exe -d terp -r tinyerp -w tinyerppasswd --db_host=localhost -s --stop-after-init
複製代碼
這樣 tinyerp-server.exe 就會用所設定的參數連接到資料庫進行初始化,並且將參數儲存到設定檔中,然後停止服務。
我是雪龍
http://blog.bestlong.idv.tw
http://www.bestlong.idv.tw
‹ 上一主題|下一主題

Archiver|怕失憶論壇

GMT+8, 2024-4-19 15:01 , Processed in 0.057121 second(s), 21 queries .

Powered by Discuz! X1.5

© 2001-2010 Comsenz Inc.