centos6.3 安装(openerp)oe7的脚本

#!/bin/sh # Modified script from Carlos E. Fonseca Zorrilla yum -y install wget unzip 
#centos6.3(6.4)—x86_32

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm 
rpm -ivh http://yum.pgrpms.org/9.2/redhat/rhel-6-i386/pgdg-centos92-9.2-6.noarch.rpm

#centos6.3(6.4)—x86_64
#rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
#rpm -ivh http://yum.pgrpms.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpm

yum -y install python-psycopg2 python-lxml PyXML python-setuptools libxslt-python pytz \            python-matplotlib python-babel python-mako python-dateutil python-psycopg2 \            pychart pydot python-reportlab python-devel python-imaging python-vobject \            hippo-canvas-python mx python-gdata python-ldap python-openid \            python-werkzeug python-vatnumber pygtk2 glade3 pydot python-dateutil \            python-matplotlib pygtk2 glade3 pydot python-dateutil python-matplotlib \            python python-devel python-psutil python-docutils make\            automake gcc gcc-c++ kernel-devel byacc flashplugin-nonfree poppler-utils pywebdav\yum -y install postgresql92-libs postgresql92-server postgresql92service postgresql-
yum -y install python-psycopg2 python-lxml PyXML python-setuptools libxslt-python pytz \            python-matplotlib python-babel python-mako python-dateutil python-psycopg2 \            pychart pydot python-reportlab python-devel python-imaging python-vobject \            hippo-canvas-python mx python-gdata python-ldap python-openid \            python-werkzeug python-vatnumber pygtk2 glade3 pydot python-dateutil \            python-matplotlib pygtk2 glade3 pydot python-dateutil python-matplotlib \            python python-devel python-psutil python-docutils make\            automake gcc gcc-c++ kernel-devel byacc flashplugin-nonfree poppler-utils pywebdav\yum -y install postgresql92-libs postgresql92-server postgresql92service postgresql-9.2 initdbchkconfig postgresql-9.2 onservice postgresql-9.2 startsu - postgres -c "createuser  --superuser openerp" cd /tmpwget http://gdata-python-client.googlecode.com/files/gdata-2.0.17.zipunzip gdata-2.0.17.ziprm -rf gdata-2.0.17.zipcd gdata*python setup.py installcd /tmpadduser openerpDIR="/var/run/openerp /var/log/openerp" for NAME in $DIR do if [ ! -d $NAME ]; then    mkdir $NAME    chown openerp.openerp $NAME fi done rm -rf openerp*wget http://nightly.openerp.com/7.0/nightly/src/openerp-7.0-latest.tar.gztar -zxvf openerp-7.0-latest.tar.gz  --transform 's!^[^/]\+\($\|/\)!openerp\1!'cd openerppython setup.py installrm -rf /usr/local/bin/openerp-servercp openerp-server /usr/local/bincp install/openerp-server.init /etc/init.d/openerpcp install/openerp-server.conf /etcchown openerp:openerp /etc/openerp-server.confchmod u+x /etc/init.d/openerpchkconfig openerp on
service  openerp start 


将以上代码保存为 .sh 文件,linux下运行即可(确保网络正常)
转自:http://shine-it.net/index.php/topic,5787.0.html?PHPSESSID=f4e83d7c4c278f431a4f01fb0d713baa​
亲测centos6.4-x86_64也是可以的

你可能感兴趣的:(centos6.3,安装openerpo)