How to start and stop iDempiere Server?
iDempiere

How to start and stop iDempiere Server?

2023-02-22 最後更新:2025-06-12) · 3 分鐘 · Ray Lee (System Analyst)

Learn how to start and stop the iDempiere ERP server with these simple steps, along with automating the stop process through a script

To start the iDempiere ERP server, follow these steps:

To navigate work directory:

  1. Connect to the server using SSH or access the command line interface.
  2. Type the command “cd idempiere” to navigate to the iDempiere installation directory.
./idempiere-server.sh &

To shut down the iDempiere ERP server, follow these steps:

# connet to osgi
telnet localhost 12612
exit
[enter]
[enter]

Automate the stop process through a script.

Install the Expect interpreter.

apt install expect

The stop service script is used to stop the OSGi service.

#!/usr/bin/expect
set ip "localhost"
spawn "/bin/bash"
send "telnet $ip 12612\r"
expect "'^]'."
sleep 2
send "exit\r"
sleep 1
send "y\r"
expect eof

More iDmpiere ERP information
https://www.ninniku.tw/category/idempiere/

English Version

Learn how to start and stop the iDempiere ERP server with these simple steps, along with automating the stop process through a script

To start the iDempiere ERP server, follow these steps:

To navigate work directory:

  1. Connect to the server using SSH or access the command line interface.
  2. Type the command “cd idempiere” to navigate to the iDempiere installation directory.
./idempiere-server.sh &

To shut down the iDempiere ERP server, follow these steps:

# connet to osgi
telnet localhost 12612
exit
[enter]
[enter]

Automate the stop process through a script.

Install the Expect interpreter.

apt install expect

The stop service script is used to stop the OSGi service.

#!/usr/bin/expect
set ip "localhost"
spawn "/bin/bash"
send "telnet $ip 12612\r"
expect "'^]'."
sleep 2
send "exit\r"
sleep 1
send "y\r"
expect eof

More iDmpiere ERP information
https://www.ninniku.tw/category/idempiere/

日本語版

iDempiere ERPサーバーの起動と停止の方法を、スクリプトによる停止プロセスの自動化も含めて、簡単な手順で説明します

iDempiere ERPサーバーを起動するには、以下の手順に従ってください:

作業ディレクトリに移動する方法:

  1. SSHを使用してサーバーに接続するか、コマンドラインインターフェースにアクセスします。
  2. 「cd idempiere」コマンドを入力して、iDempiereのインストールディレクトリに移動します。
./idempiere-server.sh &

iDempiere ERPサーバーをシャットダウンするには、以下の手順に従ってください:

# connet to osgi
telnet localhost 12612
exit
[enter]
[enter]

スクリプトによる停止プロセスの自動化

Expectインタプリタのインストール

apt install expect

OSGiサービスを停止するための停止スクリプト

#!/usr/bin/expect
set ip "localhost"
spawn "/bin/bash"
send "telnet $ip 12612\r"
expect "'^]'."
sleep 2
send "exit\r"
sleep 1
send "y\r"
expect eof

iDempiere ERPの詳細情報
https://www.ninniku.tw/category/idempiere/

Ray Lee (System Analyst)
作者 Ray Lee (System Analyst)

iDempeire ERP Contributor, 經濟部中小企業處財務管理顧問 李寶瑞