[分享]温州-肚脐 分享一个centos6.3 安装oe7的脚本
-
温州-肚脐(1085820) 分享的一个centos6.3 32bit 安装oe7的脚本
<br /><br />#!/bin/sh<br /># Modified script from Carlos E. Fonseca Zorrilla<br />yum -y install wget unzip<br />rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm br />rpm -ivh [检测到链接无效,已移除] br />yum -y install python-psycopg2 python-lxml PyXML python-setuptools libxslt-python pytz \<br /> python-matplotlib python-babel python-mako python-dateutil python-psycopg2 \<br /> pychart pydot python-reportlab python-devel python-imaging python-vobject \<br /> hippo-canvas-python mx python-gdata python-ldap python-openid \<br /> python-werkzeug python-vatnumber pygtk2 glade3 pydot python-dateutil \<br /> python-matplotlib pygtk2 glade3 pydot python-dateutil python-matplotlib \<br /> python python-devel python-psutil python-docutils make\<br /> automake gcc gcc-c++ kernel-devel byacc flashplugin-nonfree poppler-utils pywebdav\<br />yum -y install postgresql92-libs postgresql92-server postgresql92<br />service postgresql-9.2 initdb<br />chkconfig postgresql-9.2 on<br />service postgresql-9.2 start<br />su - postgres -c "createuser --superuser openerp"<br />cd /tmp<br />wget [检测到链接无效,已移除] br />unzip gdata-2.0.17.zip<br />rm -rf gdata-2.0.17.zip<br />cd gdata*<br />python setup.py install<br />cd /tmp<br />adduser openerp<br />DIR="/var/run/openerp /var/log/openerp"<br />for NAME in $DIR<br />do<br />if [ ! -d $NAME ]; then<br /> mkdir $NAME<br /> chown openerp.openerp $NAME<br />fi<br />done<br />rm -rf openerp*<br />wget [检测到链接无效,已移除] br />tar -zxvf openerp-7.0-latest.tar.gz --transform 's!^[^/]\+\($\|/\)!openerp\1!'<br />cd openerp<br />python setup.py install<br />rm -rf /usr/local/bin/openerp-server<br />cp openerp-server /usr/local/bin<br />cp install/openerp-server.init /etc/init.d/openerp<br />cp install/openerp-server.conf /etc<br />chown openerp:openerp /etc/openerp-server.conf<br />chmod u+x /etc/init.d/openerp<br />chkconfig openerp on<br />service openerp start <br />
谢谢.. 鼓掌... -
以上是 32 位系统, 64位系统的要改下:
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm br />rpm -ivh [检测到链接无效,已移除] br />
再次谢谢分享 ~