1.先安裝系統所需的程式或lib
#sudo apt-get install openssh-server denyhosts
#sudo apt-get update
#sudo apt-get dist-upgrade
2.Create the OpenERP user
#sudo adduser --system --home=/opt/openerp --group openerp
#sudo su - openerp -s /bin/bash
#exit
3.Install and configure the database server(PostgreSQL)
#sudo apt-get install postgresql
#sudo su - postgres
#createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp
Enter password for new role: cen0q@dmin (mz@dmin)
Enter it again: cen0q@dmin (mz@dmin)
#exit
4.Install the necessary Python libraries for the OpenERP server
#sudo apt-get install unzip python-mock python-unittest2 python-docutils python-jinja2 python-dateutil python-feedparser python-gdata python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi python-pip
#sudo apt-get remove python-werkzeug
#sudo pip install werkzeug
5.Install the OpenERP server
a.Download:
#wget http://nightly.openerp.com/6.1/releases/openerp-6.1-1.tar.gz
# http://nightly.openerp.com/6.1/releases/openerp-6.1-latest.tar.gz
b.unzip:
#sudo mkdir /opt/openerp
#cd /opt/openerp
#sudo tar xvf ~/openerp-6.1-1.tar.gz
#sudo chown -R openerp: *
#sudo cp -a openerp-6.1-1 server
6.Configuring the OpenERP server
#sudo cp /opt/openerp/server/install/openerp-server.conf /etc/
#sudo chown openerp: /etc/openerp-server.conf
#sudo chmod 640 /etc/openerp-server.conf
#sudo vi /etc/openerp-server.conf
db_password = False
logfile = /var/log/openerp/openerp-server.log
#########################
for openerp v7
要額外加上gdata-python-client (http://code.google.com/p/gdata-python-client/)
先下載最新版本,解壓後再執行
#sudo python ./setup.py install
#########################
#sudo su - openerp -s /bin/bash
#/opt/openerp/server/openerp-server <---for ctrl="" div="" run="" server="" shutdown="" test="" to="">
#exit
7.Installing the boot script
#sudo chmod 755 /etc/init.d/openerp-server
#sudo chown root: /etc/init.d/openerp-server
#sudo update-rc.d -f openerp-server defaults
#sudo mkdir /var/log/openerp
#sudo chown openerp:root /var/log/openerp
---for>
沒有留言:
張貼留言