在ubuntu9.04用sudo apt-get install openbravo-erp安装openbravo
For those installations without an X server (e.g. Server edition) you must directly edit /etc/apt/sources.list, and uncomment the following lines (removing the '#' character):
deb http://archive.canonical.com/ubuntu jaunty partner
deb-src http://archive.canonical.com/ubuntu jaunty partner
Installation
$ sudo apt-get update
$ sudo apt-get install openbravo-erp
Note : these commands will ask for the user password.
Openbravo ERP uses its own Tomcat and PostgreSQL configuration, for this reason these ports are not the standard ones:
- Openbravo ERP Tomcat port: 8880
- Openbravo ERP PostgreSQL port: 5832
Logging into Openbravo ERP
- In your chosen web browser, type http://localhost:8880/openbravo into the address bar. The login window appears.
- Log in using the following default ID
- username: Openbravo
- password: openbravo
Note : the login credentials are case-sensitive.
Uninstallation
Backup
Before uninstall it is highly recommended to make a backup of all your data:
sudo /etc/init.d/openbravo-erp stop
cd /opt
tar cvzf OpenbravoERP-2.50.tar.gz OpenbravoERP-2.50
Restore
In order to restore the backup:
sudo /etc/init.d/openbravo-erp stop
cd /opt
rm
tar xvzpf OpenbravoERP-2.50.tar.gz
sudo /etc/init.d/openbravo-erp start
Uninstall maintaining the database
$ sudo apt-get remove openbravo-erp
Important note : Currently there is an issue in installation process that always recreates the database, so if you use this method of uninstall and after you install again the package, your previous data will be lost.
Uninstall without maintaining the database
$ sudo apt-get remove --purge openbravo-erp
Start at boot time
By default, after installation, openbravo-erp will start automatically at boot time. If is not installed in dedicate server, can be useful to deactivate this autostart to save machine resources and reduce the boot time.
To disable the start at boot time:
update-rc.d -f openbravo-erp remove
To manually start openbravo-erp:
sudo /etc/init.d/openbravo-erp start
To enable again the start at boot time:
update-rc.d openbravo-erp defaults
手工安装openbravo
step1: install postgresql and configure postgresql
install postgresql as follow:
sudo apt-get install postgresql-8.3
configure postgresql as follows:
sudo sed -i "s/identsameuser$/trust/" /etc/postgresql/8.3/main/pg_hba.conf
sudo sed -i "s/trust$/md5/" /etc/postgresql/8.3/main/pg_hba.conf
==========================================================
//you can edit /etc/postgresql/8.3/main/pg_hba.conf and change values!
==========================================================
restart postgresql as follows:
sudo /etc/init.d/postgresql-8.3 restart
change password postgresql in order to connect to database as a database uesr:
sudo passwd postgres
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
zjn@zjn-laptop:~$ su - postgres
Password:
postgres@zjn-laptop:~$ psql
Welcome to psql 8.3.8, the PostgreSQL interactive terminal.
Type: /copyright for distribution terms
/h for help with SQL commands
/? for help with psql commands
/g or terminate with semicolon to execute query
/q to quit
postgres=# alter user postgres with password '123456';
ALTER ROLE
postgres=# /q
postgres@zjn-laptop:~$
sudo /etc/init.d/postgresql-8.3 restart
step 2: install java
install jre as follows:(sun-java6-jre)
sudo apt-get install sun-java6-jre
install jdk as follows:(sun-java6-jdk)
sudo apt-get install sun-java6-jdk
sudo update-alternatives --config java
设置当前默认的JAVA解析器,执行后出现下面的界面,
zjn@zjn-laptop:~$ sudo update-alternatives --config java
There are 5 alternatives which provide `java'.
Selection Alternative
-----------------------------------------------
1 /usr/bin/gij-4.2
2 /usr/bin/gij-4.3
3 /usr/lib/jvm/java-gcj/jre/bin/java
*+ 4 /usr/lib/jvm/java-6-openjdk/jre/bin/java
5 /usr/lib/jvm/java-6-sun/jre/bin/java
Press enter to keep the default[*], or type selection number: 5
Using '/usr/lib/jvm/java-6-sun/jre/bin/java' to provide 'java'.
step 3: install Tomcat
sudo apt-get install tomcat6
ckeck tomcat service start:
open firefox and browse http://localhost:8080
if tomcat running,you can look at it works!
step 4: install ANT
sudo apt-get install ant
step 5: download install file
you can gain it in:
http://sourceforge.net/projects/openbravo/
attention: don't download file
step 6: install openbrave
choose database: postgreSQL
JAVAHOME: /usr
Anthome: /usr/share/ant
tomcat address: /home/lin/tomcat6
POSTGRESQL: /usr/bin
postgres password :123456
you will add a new user for postgressql.
Please wait about one hour,you can get it.
Above all,you can successful install.
you may come across some problems in your installation,please content me.