ERP 2.50:Openbravo environment installation/ja
Languages: |
English | Italiano | 日本語 | zh cn | Translate this article... |
Contents |
序論
この記事では、詳細にどのようにインストールして、全体のスタックがOpenbravo ERPが稼働するのが必要であることを構成するかを説明します。 スタックは以下から成ります。
重要な注意: 完全なシステムスタックをインストールせずにOpenbravo ERPを探検する迅速な方法を探しているなら、Openbravo ERPのオンラインデモを試みるか、またはOpenbravo ERP の virtual applianceをダウンロードしてください。 |
それぞれのコンポーネントのインストールステップは以下のオペレーティングシステムのために説明されます:
遠慮なくより多くのオペレーティングシステムのためのインストールステップを加えるこの記事に貢献してください、または既存のものを改良する. |
PostgreSQLデータベース
Openbravo ERPはデータベースエンジンとして PostgreSQLをサポートします。
- 必要なバージョンは8.3.5以上です
- UUID contribパッケージが必要です。
PostgreSQLドキュメンテーションとチュートリアルは以下から利用可能です。
マイクロソフトWindowsにPostgreSQLをインストールします。
PostgreSQL wikiの指示に従ってください。 インストールの間、"UUID"オプションを必ず選択してください。
たった今、2個のインストーラがあります: pgInstallerとOneはインストーラをクリックして、私たちは、あなたがPostgreSQLをインストールするのにpgInstallerを使用するのを示します。
デフォルトで、OneクリックインストーラバージョンはUUIDを含まないで、それを使用すると、あなたは、また、以下の3ステップでこれをする必要があるでしょう:
- Download "uuid-ossp.dll" from zip file at winpg.jp
- Unpack the zip file into %Postgresql_directory%/lib directory
- Postgresqlサーバを再開します。
Debian(Ubuntu/Kubuntu/リナックスミント)の上にPostgreSQLをインストールします。
- パッケージを使用してインストールしてください。
sudo apt-get install postgresql-8.3 postgresql-contrib-8.3
- 使用して、postgresパスワードを設定してください:
sudo su - postgres -c psql
- alter role postgres with password 'new_password';
- \q
Gentooの上にPostgreSQLをインストールします。
- 以下のコマンドを使用して、パッケージをインストールしてください。 輸送は、どのバージョンを指定したらよいかをあなたに言うでしょう:
echo dev-db/postgresql >> /etc/portage/package.keywords
- echo dev-db/postgresql-server >> /etc/portage/package.keywords
- echo dev-db/postgresql-base >> /etc/portage/package.keywords
- echo virtual/postgresql-base >> /etc/portage/package.keywords
- echo app-admin/eselect-postgresql >> /etc/portage/package.keywords
- echo dev-db/libpq >> /etc/portage/package.keywords
- echo dev-libs/ossp-uuid >> /etc/portage/package.keywords
- echo dev-db/postgresql-server uuid >> /etc/portage/package.use
- emerge -av postgresql-server
- emerge --config postgresql-server
- /etc/init.d/postgresql-8.3 start
- rc-update add postgresql-8.3 default
- postgresパスワードを設定します:
psql -U postgres
- alter role postgres with password 'new_password';
- \q
- sed -i 's/trust$/md5/' /var/lib/postgresql/8.3/data/pg_hba.conf
- /etc/init.d/postgresql-8.3 reload
オラクルデータベース
また、Openbravo ERPはオラクル10g(バージョン10.2.0.4以降.0)と11g(バージョン11.1.0.6以降.0)の以下の版を支えます:
オラクルに関してもう少し学ぶには、リンクに続いてください:
マイクロソフトWindowsにオラクルをインストールします。
これらの指示に従って、オラクル11gをWindowsにインストールしてください。
Debian(Ubuntu/Kubuntu/リナックスミント)の上にオラクルをインストールします。
Follow these step by step instructions to install Oracle 11g on Ubuntu 8.04.
Or you can follow these instructions to install Oracle 11g on other Debian (Ubuntu/Kubuntu/Mint) versions.
Gentooの上にオラクルをインストールします。
Follow these guidelines to install Oracle 10g database on Gentoo.
Follow these guidelines to install Oracle 11g database on Gentoo.
一般的なインストールステップ
- Select AL32UTF8 as the database's NLS_CHARACTERSET.
- Select AL16UTF16 as the database's NLS_NCHAR_CHARACTERSET.
一般的なpostinstallationステップ
インストールを実行した後に、全部で、ケースは、以下をチェックします:
- The number of open cursors should be 3000 at least. Verify it, and tun the ALTER SESSION to change if needed:
SELECT value FROM v$parameter WHERE name = 'open_cursors'; ALTER SYSTEM SET open_cursors = 3000 SCOPE=BOTH;
- Make sure that the number of processes is 150 at least. Verify it, and tun the ALTER SESSION to change if needed:
SELECT value FROM v$parameter WHERE name = 'processes'; ALTER SYSTEM SET processes=150 SCOPE=SPFILE;
- Restart Oracle after doing this change.
Sun JDK
Openbravoは以下のJDKsをサポートします:
- Sun Java Development Kit version 1.6 (also known as JDK 6.0).
- IBM JDK
すべての開発者がSunのバージョンを使用します、そして、したがって、お勧めは1ですか?
Openbravo does not support OpenJDK, that comes preinstalled with Ubuntu 8.10 (Intrepid Ibex). Instead, install Sun JDK 1.6 (6.0) for Ubuntu.
マイクロソフトWindowsにJava SDKをインストールします。
- Download and install JDK 1.6.
- Add the JAVA_HOME environment variable:
- Right-click on My Computer.
- Select Properties. The System Properties window appears.
- Select the Advanced tab then click Environment Variables.
- Click New. The New User Variable box appears.
- In the Variable name field, type JAVA_HOME.
- In the Variable value field type the path of the JDK installation directory. This is usually C:\Java\jdk1.6.0_<version>
- Select the PATH environment variable.
- In the Variable value field, type the path of the JDK installation directory's bin folder. This is usually C:\Java\jdk1.6.0_<version>\bin
Debian(Ubuntu/Kubuntu/リナックスミント)の上にJava SDKをインストールします。
You must add unstable/non-free apt repositories to install sun-java-jdk6. Ubuntu/Kubuntu users may also need to add the Multiverse repository to install sun-java6-jdk. The Multiverse repository is enabled by default in version Ubuntu 7.10 onwards. Refer to: https://help.ubuntu.com/ubuntu/desktopguide/C/programming.html.
- Install the package:
sudo apt-get install sun-java6-jdk
- Set the Sun Java JDK as the default JDK:
sudo update-java-alternatives -s java-6-sun
- Create the JAVA_HOME variable:
echo 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' | sudo tee -a /etc/environment
- To make this variable available in your current terminal run:
source /etc/environment
- To make these variables available system wide, restart the user session.
Java SDKをGentooの上にインストールします。
- To install the package:
emerge -av sun-jdk
- Set the default JDK:
java-config -S sun-jdk-1.6
Portage sets the JAVA_HOME variable automatically.
Apache Tomcat
Openbravo ERP recommends Apache Tomcat version 6.0 as the servlet container. Use the tar and not the Installer.
マイクロソフトWindowsにApache Tomcatをインストールします。
- Download and install Apache Tomcat 6.0.
- Add CATALINA_HOME, CATALINA_BASE and CATALINA_OPTS environment variables:
- Right-click on My Computer.
- Select Properties. The system properties window appears.
- Select the Advanced tab.
- Click Environment Variables.
- Click New. The New User Variable box appears.
- In the Variable name field, type CATALINA_HOME.
- In the Variable value field, type the path of the Apache Tomcat installation directory. This is usually C:\Apache Software Foundation\Tomcat 5.5.
- Click OK.
- Click New. The New User Variable box appears.
- In the Variable name field, type CATALINA_BASE..
- In the Variable value field type the path of the Apache Tomcat installation directory.
- Click OK
- Click New. The New User Variable box appears.
- In the Variable name field, type CATALINA_OPTS.
- In the Variable value type -Xms384M -Xmx512M -XX:MaxPermSize=256M.
- Select the PATH environment variable.
- In the Variable value field, type the path of the Apache Tomcat installation's bin folder. This is usually C:\Apache Software Foundation\Tomcat 6.0\bin.
![]() | More information about managing environment variables in Microsoft's Help & Support site |
- Copy the C:\Java\jdk1.6.0_<version>\bin\lib\tools.jar file from your Sun JDK installation to C:\Apache Software Foundation\Tomcat 6.0\lib\
- In order to avoid Tomcat from auto-reloading itself, comment the WatchedResource line in C:\Apache Software Foundation\Tomcat 6.0\conf\context.xml:
<!-- <WatchedResource>WEB-INF/web.xml</WatchedResource> -->
- Configure a username and password for the Tomcat Manager, by replacing the C:\Apache Software Foundation\Tomcat 6.0\conf\tomcat-users.xml file with these contents, replacing password="admin" with your chosen password:
<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="manager"/> <role rolename="admin"/> <user username="admin" password="admin" roles="admin,manager"/> </tomcat-users>
You can check that Tomcat is running by opening http://localhost:8080 in a web browser.
Debian(Ubuntu/Kubuntu/リナックスミント)の上にApache Tomcatをインストールします。
- Install the package:
sudo apt-get install tomcat6 tomcat6-admin
- sudo rm /var/log/tomcat6/catalina.out
- sudo /etc/init.d/tomcat6 start
- Note: On Ubuntu the 'sudo rm /var/log/tomcat6/catalina.out' command may not find the file, resulting in an error message. This will not affect the installation.
- Check that Tomcat is running by opening http://localhost:8180 in a web browser. Alternatively use the following nmap command to check that port 8180 is open:
nmap localhost -p 8180
- Set the CATALINA_HOME, CATALINA_BASE and CATALINA_OPTS variables:
echo 'CATALINA_HOME="/usr/share/tomcat6"' | sudo tee -a /etc/environment
- echo 'CATALINA_BASE="/var/lib/tomcat6"' | sudo tee -a /etc/environment
- Edit the /etc/default/tomcat6 file, and set the following line:-
JAVA_OPTS="-Djava.awt.headless=true -Xms384M -Xmx512M -XX:MaxPermSize=256M"
- To make this variable available in your current terminal run:
source /etc/environment
- To make these variables available system wide, restart the user session.
- Add the tools.jar library to Tomcat's classpath:
cp $JAVA_HOME/lib/tools.jar /var/lib/tomcat6/lib/
cp $JAVA_HOME/lib/tools.jar /usr/share/tomcat6/lib/
- In order to avoid Tomcat from auto-reloading itself, comment the WatchedResource line in conf/context.xml:
<!-- <WatchedResource>WEB-INF/web.xml</WatchedResource> -->
- Configure a username and password for the Tomcat Manager, by replacing the /etc/tomcat6/tomcat-users.xml file with these contents, replacing password="admin" with your chosen password:
<?xml version='1.0' encoding='utf-8'?>
- <tomcat-users>
- <role rolename="manager"/>
- <role rolename="admin"/>
- <user username="admin" password="admin" roles="admin,manager"/>
- </tomcat-users>
- Starting with 2.50, the modularity feature required the tomcat user to write in the main Openbravo ERP directory. So achieve this, edit the /etc/init.d/tomcat6 file, search for umask 022 and replace it with umask 002. Then restart Tomcat.
重要な注意:
|
アパッチトムキャットをGentooの上にインストールします。
- Install the package:
emerge -av tomcat
- Start Tomcat:
- /etc/init.d/tomcat-6 start
- rc-update add tomcat-6 default
- You can check that Tomcat has been in stalled correctly by opening http://localhost:8080 in a web browser Alternatively, use the following nmap command to check that port 8080 is open:
nmap localhost -p 8080
- Set the CATALINA_HOME and CATALINA_BASE variables:
touch /etc/env.d/99tomcat
- echo 'CATALINA_HOME=/usr/share/tomcat-6' >> /etc/env.d/99tomcat
- echo 'CATALINA_BASE=/var/lib/tomcat-6' >> /etc/env.d/99tomcat
- Update the environment and make the newly created environment variables available system-wide:
env-update && source /etc/profile
- Set the CATALINA_OPTS variable by editing the /etc/conf.d/tomcat-6 file:
CATALINA_OPTS="-server -Xms384M -Xmx512M -XX:MaxPermSize=256M"
- Add the tools.jar library to Tomcat's classpath:
cp $JAVA_HOME/lib/tools.jar /var/lib/tomcat-6/lib/
- In order to avoid Tomcat from auto-reloading itself, comment the WatchedResource line in /etc/tomcat-6/context.xml:
<!-- <WatchedResource>WEB-INF/web.xml</WatchedResource> -->
- Configure a username and password for the Tomcat Manager, by replacing the /var/lib/tomcat-6/conf/tomcat-users.xml file with these contents, replacing password="admin" with your chosen password:
<?xml version='1.0' encoding='utf-8'?>
- <tomcat-users>
- <role rolename="manager"/>
- <role rolename="admin"/>
- <user username="admin" password="admin" roles="admin,manager"/>
- </tomcat-users>
- Starting with 2.50, the modularity feature required the tomcat user to write in the main Openbravo ERP directory. So achieve this, edit the /etc/init.d/tomcat-6 file, search for this line:
start-stop-daemon ${arguments} --exec ${executor} -- ${OPTS_CP} "$@" \
- Replace it with the following ones:
- umask 002 && \
- start-stop-daemon ${arguments} --exec ${executor} -- ${OPTS_CP} "$@" \
- Restart Tomcat to apply the changes:
/etc/init.d/tomcat-6 restart
アパッチトムキャットをFreeBSDにインストールします。
あなたはtomcat5.5(/usr/ports/www/tomcat55)、tomcat6(/usr/ports/www/tomcat6)、またはことによると他のverisonsを使用できます。 必要に応じてコマンドにおけるバージョンを代用してください。
- Install tomcat
cd /usr/ports/www/tomcat6
- make && make install
- Set necessary memory options for tomcat
echo 'tomcat6_java_opts="-server -Xms384M -Xmx512M -XX:MaxPermSize=256M"' \
- >> /etc/rc.conf
- Set the CATALINA_HOME variable
echo 'tomcat6_catalina_home="/usr/local/tomcat6"' >> /etc/rc.conf
- Start tomcat
/usr/local/etc/rc.d/tomcat6 start
プロキシを通したトムキャット
ネットワークであれば、プロキシがあってください、そして、あなたは、雄猫構成にこれを追加する必要があります:
CATALINA_OPTS='-Dhttp.proxySet=true -Dhttp.proxyHost=[PROXY SERVER] -Dhttp.proxyPort=[PORT]'
Apache Ant
http://ant.apache.org/ アパッチAntは、開発課題の大部分を自動化するのにOpenbravo ERPによって使用されたJavaベースの体格ツールです。 バージョン1.7.0以上が必要です。
マイクロソフトWindowsにApache Antをインストールします。
- Download and extract Apache Ant onto your system (for instance, C:\Apache-Ant).
- Add ANT_HOME environment variable:
- Right-click on My Computer.
- Select Properties. The System Properties window appears.
- Select the Advanced tab.
- Click on the Environment Variables button.
- Click the New button.
- In the Variable name field, type ANT_HOME.
- In the Variable value field, type the path of the Ant directory. This is usually C:\Apache-Ant.
- Click OK.
- Select the PATH environment variable.
- In the Variable value field, type the path of the Ant directory's bin folder. This is usually C:\Apache-Ant\bin.
- Equally add the ANT_OPTS environment variable:
- Click the New button.
- In the Variable name field, type ANT_OPTS.
- In the Variable value field, type -Xmx1024M. If you're running a 64bit Windows, type this instead: -Xmx1024M -XX:MaxPermSize=128M.
Debian(Ubuntu/Kubuntu/リナックスミント)の上にアパッチアリをインストールします。
- Install the package:
sudo apt-get install ant ant-optional
- Set the ANT_HOME variable:
echo 'ANT_HOME="/usr/share/ant"' | sudo tee -a /etc/environment
- Set the ANT_OPTS variable:
echo 'ANT_OPTS="-Xmx1024M"' | sudo tee -a /etc/environment
- In case you are running a 64bit operating system, set this ANT_OPTS instead:
echo 'ANT_OPTS="-Xmx1024M -XX:MaxPermSize=128M"' | sudo tee -a /etc/environment
- Make the ANT_HOME and ANT_OPTS variables available in your current terminal run:
source /etc/environment
- To make the variables available system wide, restart the user session.
アパッチアリをGentooの上にインストールします。
Gentooでは、アリコアパッケージをインストールするのは、十分です:
emerge -av dev-java/ant-core
Portage sets the ANT_HOME variable automatically. But not ANT_OPTS. To set it:
echo 'ANT_OPTS="-Xmx1024M"' > /etc/env.d/99ant env-update && source /etc/profile
For a 64bit Gentoo use these values instead:
echo 'ANT_OPTS="-Xmx1024M -XX:MaxPermSize=128M"' > /etc/env.d/99ant env-update && source /etc/profile
変数を利用可能なシステムに広い状態でするには、ユーザセッションを再開してください。
UNIXベースのトムキャットのためのオペレーティングシステム許容
オペレーティングシステムは、彼らのプロセスとサービスを実行するのに異系統ユーザを使用します。 トムキャットには、通常、それ自身の「雄猫」ユーザ、およびコマンドラインがあります、そして、タスクは普通のユーザ、例えば、"openbravo"によって実行されます。 バージョン2.50における、モジュール方式機能の導入以来、「雄猫」がOpenbravo ERPインストールに関するルートディレクトリに書くのを許容するのが、必要です。 逆に、"openbravo"ユーザはトムキャットwebappsディレクトリにおける書き込み許可を必要とします。
- Change the default file permissions for the user running the Ant tasks, e.g. openbravo. Assuming you are using Bash as your shell, append the following line to the /home/openbravo/.bashrc file:
umask 002
- Add openbravo to the tomcat group:
gpasswd -a openbravo tomcat
- Add tomcat to the openbravo group:
gpasswd -a tomcat openbravo
Windowsシステムが同様にシステム利用者を使用しないので、これらの変化は必要ではありません。
パフォーマンスとセキュリティチップ
実稼動環境において、それは或るものが変える造に推薦されます。Performance_and_Security_Tips| improve Openbravo ERP performance and security。
知られている問題
Here is a list of known issues during Openbravo environment installation. You could also find your problem at Openbravo ERP installation issues.
Debian/UbuntuのJDKとX問題
Openbravo ERPからモジュールをインストールするとき、あなたは誤りに雄猫ユーザがXサーバにアクセスできないと言わせることができます。 回避策、これ、実行されて、ユーザがアリを実行しているこれは以下に仕事を課します。
xhost +
Jasper Reports
In some configurations to make JasperReports work, you need to add -Djava.awt.headless=true parameter to the CATALINA_OPTS environment variable. The CATALINA_OPTS should look something similar to CATALINA_OPTS ="-server -Xms384M -Xmx512M -Djava.awt.headless=true".
Windowsに関するTomcatの熱い展開問題
There is a known issue with Tomcat working under Windows. Openbravo ERP does a hot-deploy a of openbravo.war file to Tomcat but on Windows it often encounters file locking issues. Windows will not let Tomcat undeploy the old application because files are locked by the Operating System. Tomcat has mechanisms to allow avoiding locking. In Tomcat 5.5 and 6.0, this mechanism is disabled by default. To enable it edit %CATALINA_BASE%\conf\context.xml. Find the root <context> and add these two attributes:
<context antiJARLocking="true" antiResourceLocking="true" />
Openbravo ERP FAQ
Openbravo's ERP Frequently Asked Questions (FAQ).
サポート
If you have any questions about installing the penbravo environment, post them in Openbravo Help forum or join #openbravo IRC channel in Freenode.