1. Install PostgreSQL, refer 《Install PostgreSQL.
2. Modify pg_cmd.conf to ensure that MD5 authentication is used. For details, see pg_cmd.conf record example:
# Type Database User CIDR-ADDRESS methodlocal all identhost all 127.0.0.1/32 MD5 # default is identhost all: 1/128 MD5 # default is ident
3. Create the database user openerp, And the openerp server uses this user to connectDatabase:
$SuPostgres $ createuser-- Createdb -- no-createrole -- pwprompt openerp
4. Create openerp for system users. openerp server cannot be started with root:
$ Groupadd openerp $ useradd openerp-G openerp
5. Modify iptables rules to allow remote access to ports 8069 and 8070 (openerp server uses these ports: 8069/XML-RPC, 8070/NET-RPC, 8071/XML-RPCS ):
$ Service iptables status ......6Accept TCP --0.0.0.0/00.0.0.0/0State New tcp dpt:8069 7Accept TCP --0.0.0.0/00.0.0.0/0State New tcp dpt:8070
6. Configure the epel software source. For more information, see 《Configure the epel software source. Install many packages from epel.
7. Install the required packages (not all packages are installed here. Some packages are installed through dependencies, and some packages are automatically installed when the openerp server is installed ):
$ Yum Install Bzr # openerp Version Management System $ Yum Install Python- Devel # Python development kit $ Yum Install Python- Setuptools # Python Installation Tool $ Yum Install Python- Dateutil # This module provides powerful extensions to process standard datetime $ Yum Install Python-Feedparser # Universal aggregate Parser for python $ Yum Install Python- Gdata # Google data Python client library $ Yum Install Python- LDAP # LDAP interface $ Yum Install Python- Lxml # used for processing XML and HTML in Python $ Yum Install Python- Beaker # wsgi middleware layer to provide sessions $ Yum Install Python-markupsafe # implements a XML/html/XHTML markup safe String For Python $ Yum Install Python- Mako # Quick and lightweight template for the python platform $ Yum Install Python- Openid # openid authentication, supporting servers and consumers $ Yum Install Python-Psycopg2 # The most popular Python PostgreSQL interface $ Yum Install Python- Babel # international tool for python applications $ Yum Install Pychart # encapsulates high-quality libraries for postscript, PDF, PNG, or SVG charts $ Yum Install Pydot # provides the complete features of graphviz's dot language, including creating, saving, modifying, and processing images $ Yum Install Python- Reportlab # Python PDF tool kit $ Yum Install Python- Simplejson # simple, fast, and scalable JSON encoding and decoder $ Yum Install Python- Vatnumber # inspection VAT (VAT) module for European countries $ Yum Install Pytz # world time zone definition $ Yum Install Python- Werkzeug # wsgi ApplicationProgramTool set $ Yum Install Pyyaml # yaml parser and transmitter for python. $ Yum Install Python- Zsi # zolera soap client basics $ Yum Install Python- Vobject # vobject simplifies the process of parsing and creating icalendar and vCard objects. $ Yum Install Pyxml # xml Libraries For Python
### Install Pil ( Python graphics processing Library) See: Decoder zip not available ###
8. Download openerp server and Web:
$ Bzr BranchLp: Openobject-server/6.1Server $ bzr BranchLp: Openerp-Web/6.1Web
9. Install openerp Server:
$ CD server $ Python setup. pyInstall
10. Create the openerp server configuration file.Default openerp files are stored in$ Home/. openerp_serverrc,Available -SOption to create a configuration file and then modify it.Openerp -H: You can viewPurpose.
$./Openerp-server-s-c./openerp_server.conf
$ Cat openerp_server.conf
......
Db_host = localhost
Db_name = false
Db_user = openerp
Db_password = openerp
DB Port = 5432
Addons_path =/home/openerp/Server/openerp/Addons,/home/openerp/web/Addons # Starting from 6.1, web should be started as a module of server
11. Start openerp Server:
$./Openerp-server-C openerp_server.conf
Reference link:
1. openerp Server Installation
2.Centos System Construction openerp
3. Install openerp 5.4 in the source code of centos 6.1
$ Bzr BranchLp: Openobject-server/6.1Server $ bzr BranchLp: Openerp-Web/6.1Web
9. Install openerp Server:
$ CD server $ Python setup. pyInstall
10. Create the openerp server configuration file.Default openerp files are stored in$ Home/. openerp_serverrc,Available -SOption to create a configuration file and then modify it.Openerp -H: You can viewPurpose.
$./Openerp-server-s-c./openerp_server.conf
$ Cat openerp_server.conf
......
Db_host = localhost
Db_name = false
Db_user = openerp
Db_password = openerp
DB Port = 5432
Addons_path =/home/openerp/Server/openerp/Addons,/home/openerp/web/Addons # Starting from 6.1, web should be started as a module of server
11. Start openerp Server:
$./Openerp-server-C openerp_server.conf