- 註冊時間
- 2006-3-13
- 最後登錄
- 2025-1-10
- 在線時間
- 673 小時
- 閱讀權限
- 200
- 積分
- 417
- 帖子
- 1107
- 精華
- 0
- UID
- 2
  
|
在安裝完 TinyERP-Server 後,需要初始化並儲存設定檔可以用命令列模式來做
類似下列指令:- tinyerp-server.exe -d terp -r postgresadmin -w postgresadminpasswd
- --db_host=localhost --logfile="C:\Program Files\Tiny ERP Server\tinyerp-server.log"
- --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 的安裝目錄,然後用下列指令(請注意是在同一行):- tinyerp-server.exe -d terp -r tinyerp -w tinyerppasswd --db_host=localhost -s --stop-after-init
複製代碼 這樣 tinyerp-server.exe 就會用所設定的參數連接到資料庫進行初始化,並且將參數儲存到設定檔中,然後停止服務。 |
|