[odoo] 在centos7上安装odoo 9.0的步骤和方法(已验证)

2016年3月25日17:24:52 发表评论 2,180 views

以下内容与2016年3月26日经过验证可以正确安装,THE CONTENT BELOW WAS CONFIRMED TO BE TRUE PROCESS OF INSTALLATION ON 26TH OF Mar 2016.

Odoo is one of the most popular and most powerful Open Source ERP business software based on the Python programming language. In this blog article we will show you how to install Odoo 9 on a CentOS 7 VPS. This new version of Odoo comes with many improvements over its predecessor and many new features such us:

  • New WYSIWYG website editor
  • Drag and drop building blocks
  • New payment gateway integration
  • Ebay and Amazon integration
  • New contract management
  • New accounting
  • New marketing apps
  • Fully responsive and fast design
  • Improved dashboards and reports
  •  Shops and restaurants management

and many more…

Log in to your server as user root

ssh root@IP

At the very beginning it is best to start a screen session by executing the following command

screen -U -S odoo

and make sure that all services installed on your server are up to date

yum -y update

Odoo uses a PostgreSQL database, so we have to remove MariaDBserver if it is installed

yum remove mariadb mariadb-server

In order to install all Odoo 9 dependencies the EPEL repository must be added to the distribution’s repositories

yum install -y epel-release

Install PostgreSQL server

yum install -y postgresql-server

Once it is installed and started for the first time, we have to initialize the PostgreSQL database

postgresql-setup initdb

Start the PostgreSQL server and enable it to start at boot time

systemctl start postgresql
systemctl enable postgresql

Create new yum repository for Odoo

vi /etc/yum.repos.d/odoo.repo

With the following content

[odoo-nightly]
name=Odoo Nightly repository
baseurl=http://nightly.odoo.com/9.0/nightly/rpm/
enabled=1
gpgcheck=1
gpgkey=https://nightly.odoo.com/odoo.key

and finally install Odoo 9

yum install -y odoo

This will install the latest version of Odoo and all its dependencies.

After the installation is completed, start Odoo and enable it to start at boot times

systemctl start odoo
systemctl enable odoo

Open Odoo’s configuration file and uncomment the ‘admin_passwd’ line to set the admin master password

vi /etc/odoo/openerp-server.conf

admin_passwd = YourPassword

Don’t forget to replace ‘YourPassword’ with an actual strong password.

Restart Odoo for the changes to take effect

systemctl restart odoo

In order to print PDF reports, wkhtmltopdf has to be installed on your server. The version of wkhtmltopdf available in the CentOS repositories does not support headers and footers, so we will download it and manualy install wkhtmltopdf from their official website.

Install some wkhtmltopdf dependencies

yum install icu fontconfig libpng libX11 libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi

Copy the appropriate rpm file from wkhtmltopdf’s website and install it using the following command

 

rpm -Uvh https://bitbucket.org/wkhtmltopdf/wkhtmltopdf/downloads/wkhtmltox-0.13.0-alpha-7b36694_linux-centos7-amd64.rpm

Now, open a web browser and access Odoo 9 at http://yourIPaddress:8069 to create a new PostgreSQL database and set password for the admin user.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: