Rabu, 31 Agustus 2016

Setting Upwards Openerp (Odoo) Ix Alongside Apache On Centos 7.X

This is how to blog, Setting upwards ODOO OpenERP with Apache on CentOS 7.x


What is Odoo -

Odoo, formerly known equally OpenERP, is an Open Source Enterprise Resource Planning ERP spider web based describe of piece of occupation organization software written inward Python which comes amongst a suite of spider web apps designed for every business, such equally Website Builders, eCommerce modules, Billing as well as Accounting, Human Resources, Point of Sale, Customer Relationship Management, Inventory module, Live Chat as well as many other apps as well as features.

Requirement -

1- One working Centos box.
2- PostgreSQL
3- Python 2.7

Installation Steps -


Step 1-  Installing PostgreSQL

enable Epel Repo if doesn't honour the package.
[root@cent  ]# yum install -y epel-release

Install PostgreSQL
[root@cent  ]# yum install postgresql-server Loaded plugins: fastestmirror Setting upwards Install Process Determining fastest mirrors epel/metalink                                                                                                                                                         | 4.9 kB     00:00  * base: mirror.nbrc.ac.in  * epel: mirror01.idc.hinet.net  * extras: mirror.nbrc.ac.in  * updates: mirror.nbrc.ac.in base of operations                                                                                                                                                                  | 3.7 kB     00:00 epel                                                                                                                                                                  | 4.3 kB     00:00 epel/primary_db                                                                                                                                                       | 5.9 MB     00:21 extras                                                                                                                                                                | 3.4 kB     00:00 jenkins                                                                                                                                                               | 2.9 kB     00:00 updates                                                                                                                                                               | 3.4 kB     00:00 updates/primary_db                                                                                                                                                    | 2.0 MB     00:03 Resolving Dependencies --> Running transaction banking company check ---> Package postgresql-server.x86_64 0:8.4.20-6.el6 volition live installed --> Processing Dependency: postgresql-libs(x86-64) = 8.4.20-6.el6 for package: postgresql-server-8.4.20-6.el6.x86_64 --> Processing Dependency: postgresql(x86-64) = 8.4.20-6.el6 for package: postgresql-server-8.4.20-6.el6.x86_64 --> Processing Dependency: libpq.so.5()(64bit) for package: postgresql-server-8.4.20-6.el6.x86_64 --> Running transaction banking company check ---> Package postgresql.x86_64 0:8.4.20-6.el6 volition live installed ---> Package postgresql-libs.x86_64 0:8.4.20-6.el6 volition live installed --> Finished Dependency Resolution  Dependencies Resolved  =============================================================================================================================================================================================  Package                                             Arch                                     Version                                           Repository                              Size ============================================================================================================================================================================================= Installing:  postgresql-server                                   x86_64                                   8.4.20-6.el6                                      base of operations                                   3.4 one 1000 Installing for dependencies:  postgresql                                          x86_64                                   8.4.20-6.el6                                      base of operations                                   2.6 one 1000  postgresql-libs                                     x86_64                                   8.4.20-6.el6                                      base of operations                                   202 k  Transaction Summary ============================================================================================================================================================================================= Install       three Package(s)  Total download size: 6.2 one 1000 Installed size: 29 one 1000 Is this ok [y/N]: y Downloading Packages: (1/3): postgresql-8.4.20-6.el6.x86_64.rpm                                                                                                                             | 2.6 MB     00:04 (2/3): postgresql-libs-8.4.20-6.el6.x86_64.rpm                                                                                                                        | 202 kB     00:00 (3/3): postgresql-server-8.4.20-6.el6.x86_64.rpm                                                                                                                      | 3.4 MB     00:04 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total                                                                                                                                                        703 kB/s | 6.2 MB     00:09 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction   Installing : postgresql-libs-8.4.20-6.el6.x86_64                                                                                                                                       1/3   Installing : postgresql-8.4.20-6.el6.x86_64                                                                                                                                            2/3   Installing : postgresql-server-8.4.20-6.el6.x86_64                                                                                                                                     3/3   Verifying  : postgresql-server-8.4.20-6.el6.x86_64                                                                                                                                     1/3   Verifying  : postgresql-libs-8.4.20-6.el6.x86_64                                                                                                                                       2/3   Verifying  : postgresql-8.4.20-6.el6.x86_64                                                                                                                                            3/3  Installed:   postgresql-server.x86_64 0:8.4.20-6.el6  Dependency Installed:   postgresql.x86_64 0:8.4.20-6.el6                                                           postgresql-libs.x86_64 0:8.4.20-6.el6  Complete! [root@cent  ]# 



Initialize PostgreSQL database.

[root@cent  ]# postgresql-setup initdb 

Now live start the PostgreSQL database yesteryear issuing the below command:
[root@cent  ]# systemctl start postgresql  Starting postgresql service:                               [  OK  ] [root@cent  ]# 

Now Check condition using below ascendancy :

[root@cent  ]# systemctl condition postgresql postmaster (pid  1675) is running... 


As an additional measurement to secure PostgreSQL default user, which has a blank password, lawsuit the below ascendancy amongst origin privileges inward gild to alter the password.
[root@cent  ]# sudo -u postgres psql could non alter directory to "/root" psql (8.4.20) Type "help" for help. postgres=# \password postgres Enter novel password:         ************ Enter it again:             ************ postgres=#

Password for user postgres has been railroad train successfully.

To locomote out shape PostgreSQL ascendancy describe utility.

postgres=# \q 

Step 2: Install Python 2.7

By default Centos 7.x accept Python 2.7.x version  installed.




Step 3: Install ODOO nine – OpenERP

In gild to install Odoo nine from official repository, start create novel yum repository file for Odoo amongst the next content:

[root@cent  ]# vi /etc/yum.repos.d/odoo.repo 

Append below mentioned code into this file :

[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 

Save as well as Exit from file.


Start odoo installation using Yum installer.

[root@cent ]# yum install odoo Loaded plugins: fastestmirror odoo-nightly                                                                                                                                                          | 2.9 kB  00:00:00 odoo-nightly/primary_db                                                                                                                                               | 2.6 kB  00:00:00 Loading mirror speeds from cached hostfile  * base: centos.mirror.net.in  * epel: kartolo.sby.datautama.net.id  * extras: centos.mirror.net.in  * updates: centos.mirror.net.in Resolving Dependencies --> Running transaction banking company check ---> Package odoo.noarch 0:9.0c_20160901-1 volition live installed --> Processing Dependency: python-feedparser for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-jinja2 for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: pytz for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-xlwt for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: babel for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-reportlab for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: libxslt-python for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-psycopg2 for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-mako for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-requests for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: pyparsing for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-passlib for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-ldap for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-mock for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-werkzeug for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-lxml for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-psutil for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: pychart for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-imaging for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-yaml for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-dateutil for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-docutils for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: nodejs-less for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-vobject for package: odoo-9.0c_20160901-1.noarch --> Processing Dependency: python-openid for package: odoo-9.0c_20160901-1.noarch --> Running transaction banking company check ---> Package PyYAML.x86_64 0:3.10-11.el7 volition live installed ---> Package babel.noarch 0:0.9.6-8.el7 volition live installed --> Processing Dependency: python-setuptools for package: babel-0.9.6-8.el7.noarch --> Processing Dependency: python-babel for package: babel-0.9.6-8.el7.noarch ---> Package libxslt-python.x86_64 0:1.1.28-5.el7 volition live installed ---> Package nodejs-less.noarch 0:1.7.0-2.el7 volition live installed --> Processing Dependency: npm(ycssmin) < 1.1 for package: nodejs-less-1.7.0-2.el7.noarch --> Processing Dependency: npm(ycssmin) >= 1.0.1 for package: nodejs-less-1.7.0-2.el7.noarch --> Processing Dependency: nodejs(engine) >= 0.8.0 for package: nodejs-less-1.7.0-2.el7.noarch --> Processing Dependency: nodejs for package: nodejs-less-1.7.0-2.el7.noarch ---> Package pychart.noarch 0:1.39-17.el7 volition live installed ---> Package pyparsing.noarch 0:1.5.6-9.el7 volition live installed ---> Package python-dateutil.noarch 0:1.5-7.el7 volition live installed ---> Package python-docutils.noarch 0:0.11-0.2.20130715svn7687.el7 volition live installed ---> Package python-feedparser.noarch 0:5.1.3-3.el7 volition live installed --> Processing Dependency: python-chardet for package: python-feedparser-5.1.3-3.el7.noarch ---> Package python-jinja2.noarch 0:2.7.2-2.el7 volition live installed --> Processing Dependency: python-markupsafe for package: python-jinja2-2.7.2-2.el7.noarch ---> Package python-ldap.x86_64 0:2.4.15-2.el7 volition live installed ---> Package python-lxml.x86_64 0:3.2.1-4.el7 volition live installed ---> Package python-mako.noarch 0:0.8.1-2.el7 volition live installed --> Processing Dependency: python-beaker for package: python-mako-0.8.1-2.el7.noarch ---> Package python-openid.noarch 0:2.2.5-7.el7 volition live installed ---> Package python-passlib.noarch 0:1.6.2-2.el7 volition live installed ---> Package python-pillow.x86_64 0:2.0.0-19.gitd1c6db8.el7 volition live installed --> Processing Dependency: libwebp.so.4()(64bit) for package: python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64 ---> Package python-psutil.x86_64 0:2.2.1-1.el7 volition live installed ---> Package python-psycopg2.x86_64 0:2.5.1-3.el7 volition live installed ---> Package python-reportlab.x86_64 0:2.5-9.el7 volition live installed --> Processing Dependency: dejavu-sans-fonts for package: python-reportlab-2.5-9.el7.x86_64 ---> Package python-requests.noarch 0:2.6.0-1.el7_1 volition live installed --> Processing Dependency: python-urllib3 >= 1.10.2-1 for package: python-requests-2.6.0-1.el7_1.noarch ---> Package python-vobject.noarch 0:0.8.1c-8.el7 volition live installed ---> Package python-werkzeug.noarch 0:0.9.1-2.el7 volition live installed ---> Package python-xlwt.noarch 0:0.7.4-5.el7 volition live installed --> Processing Dependency: antlr-python for package: python-xlwt-0.7.4-5.el7.noarch ---> Package python2-mock.noarch 0:1.0.1-9.el7 volition live installed ---> Package pytz.noarch 0:2012d-5.el7 volition live installed --> Running transaction banking company check ---> Package antlr-python.noarch 0:2.7.7-30.el7 volition live installed ---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 volition live installed --> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch ---> Package libwebp.x86_64 0:0.3.0-3.el7 volition live installed ---> Package nodejs.x86_64 0:0.10.46-1.el7 volition live installed --> Processing Dependency: libuv.so.0.10()(64bit) for package: nodejs-0.10.46-1.el7.x86_64 ---> Package python-babel.noarch 0:0.9.6-8.el7 volition live installed ---> Package python-beaker.noarch 0:1.5.4-10.el7 volition live installed --> Processing Dependency: python-paste for package: python-beaker-1.5.4-10.el7.noarch ---> Package python-chardet.noarch 0:2.2.1-1.el7_1 volition live installed ---> Package python-markupsafe.x86_64 0:0.11-10.el7 volition live installed ---> Package python-setuptools.noarch 0:0.9.8-4.el7 volition live installed --> Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9.8-4.el7.noarch ---> Package python-urllib3.noarch 0:1.10.2-2.el7_1 volition live installed --> Processing Dependency: python-six for package: python-urllib3-1.10.2-2.el7_1.noarch ---> Package ycssmin.noarch 0:1.0.1-6.el7 volition live installed --> Running transaction banking company check ---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 volition live installed ---> Package libuv.x86_64 1:0.10.34-2.el7 volition live installed ---> Package python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el7 volition live installed --> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch ---> Package python-paste.noarch 0:1.7.5.1-9.20111221hg1498.el7 volition live installed --> Processing Dependency: python-tempita for package: python-paste-1.7.5.1-9.20111221hg1498.el7.noarch --> Processing Dependency: pyOpenSSL for package: python-paste-1.7.5.1-9.20111221hg1498.el7.noarch ---> Package python-six.noarch 0:1.9.0-2.el7 volition live installed --> Running transaction banking company check ---> Package pyOpenSSL.x86_64 0:0.13.1-3.el7 volition live installed ---> Package python-backports.x86_64 0:1.0-8.el7 volition live installed ---> Package python-tempita.noarch 0:0.5.1-6.el7 volition live installed --> Finished Dependency Resolution  Dependencies Resolved  =============================================================================================================================================================================================  Package                                                     Arch                           Version                                               Repository                            Size ============================================================================================================================================================================================= Installing:  odoo                                                        noarch                         9.0c_20160901-1                                       odoo-nightly                          94 one 1000 Installing for dependencies:  PyYAML                                                      x86_64                         3.10-11.el7                                           base of operations                                 153 k  antlr-python                                                noarch                         2.7.7-30.el7                                          base of operations                                  l k  babel                                                       noarch                         0.9.6-8.el7                                           base of operations                                  fifteen k  dejavu-fonts-common                                         noarch                         2.33-6.el7                                            base of operations                                  64 k  dejavu-sans-fonts                                           noarch                         2.33-6.el7                                            base of operations                                 1.4 one 1000  libuv                                                       x86_64                         1:0.10.34-2.el7                                       epel                                  62 k  libwebp                                                     x86_64                         0.3.0-3.el7                                           base of operations                                 170 k  libxslt-python                                              x86_64                         1.1.28-5.el7                                          base of operations                                  59 k  nodejs                                                      x86_64                         0.10.46-1.el7                                         epel                                 2.0 one 1000  nodejs-less                                                 noarch                         1.7.0-2.el7                                           epel                                 102 k  pyOpenSSL                                                   x86_64                         0.13.1-3.el7                                          base of operations                                 133 k  pychart                                                     noarch                         1.39-17.el7                                           epel                                 190 k  pyparsing                                                   noarch                         1.5.6-9.el7                                           base of operations                                  94 k  python-babel                                                noarch                         0.9.6-8.el7                                           base of operations                                 1.4 one 1000  python-backports                                            x86_64                         1.0-8.el7                                             base of operations                                 5.8 k  python-backports-ssl_match_hostname                         noarch                         3.4.0.2-4.el7                                         base of operations                                  12 k  python-beaker                                               noarch                         1.5.4-10.el7                                          base of operations                                  lxxx k  python-chardet                                              noarch                         2.2.1-1.el7_1                                         base of operations                                 227 k  python-dateutil                                             noarch                         1.5-7.el7                                             base of operations                                  85 k  python-docutils                                             noarch                         0.11-0.2.20130715svn7687.el7                          base of operations                                 1.5 one 1000  python-feedparser                                           noarch                         5.1.3-3.el7                                           epel                                 107 k  python-jinja2                                               noarch                         2.7.2-2.el7                                           base of operations                                 515 k  python-ldap                                                 x86_64                         2.4.15-2.el7                                          base of operations                                 159 k  python-lxml                                                 x86_64                         3.2.1-4.el7                                           base of operations                                 758 k  python-mako                                                 noarch                         0.8.1-2.el7                                           base of operations                                 307 k  python-markupsafe                                           x86_64                         0.11-10.el7                                           base of operations                                  25 k  python-openid                                               noarch                         2.2.5-7.el7                                           epel                                 211 k  python-passlib                                              noarch                         1.6.2-2.el7                                           epel                                 480 k  python-paste                                                noarch                         1.7.5.1-9.20111221hg1498.el7                          base of operations                                 866 k  python-pillow                                               x86_64                         2.0.0-19.gitd1c6db8.el7                               base of operations                                 438 k  python-psutil                                               x86_64                         2.2.1-1.el7                                           epel                                 114 k  python-psycopg2                                             x86_64                         2.5.1-3.el7                                           base of operations                                 132 k  python-reportlab                                            x86_64                         2.5-9.el7                                             base of operations                                 1.2 one 1000  python-requests                                             noarch                         2.6.0-1.el7_1                                         base of operations                                  94 k  python-setuptools                                           noarch                         0.9.8-4.el7                                           base of operations                                 396 k  python-six                                                  noarch                         1.9.0-2.el7                                           base of operations                                  29 k  python-tempita                                              noarch                         0.5.1-6.el7                                           base of operations                                  33 k  python-urllib3                                              noarch                         1.10.2-2.el7_1                                        base of operations                                 100 k  python-vobject                                              noarch                         0.8.1c-8.el7                                          epel                                  88 k  python-werkzeug                                             noarch                         0.9.1-2.el7                                           extras                               562 k  python-xlwt                                                 noarch                         0.7.4-5.el7                                           epel                                 164 k  python2-mock                                                noarch                         1.0.1-9.el7                                           epel                                  92 k  pytz                                                        noarch                         2012d-5.el7                                           base of operations                                  38 k  ycssmin                                                     noarch                         1.0.1-6.el7                                           epel                                  12 k  Transaction Summary ============================================================================================================================================================================================= Install  1 Package (+44 Dependent packages)  Total download size: 109 one 1000 Installed size: 463 one 1000 Is this ok [y/d/N]: y Downloading packages: (1/45): dejavu-fonts-common-2.33-6.el7.noarch.rpm                                                                                                                     |  64 kB  00:00:00 (2/45): babel-0.9.6-8.el7.noarch.rpm                                                                                                                                  |  fifteen kB  00:00:01 (3/45): antlr-python-2.7.7-30.el7.noarch.rpm                                                                                                                          |  l kB  00:00:01 (4/45): libuv-0.10.34-2.el7.x86_64.rpm                                                                                                                                |  62 kB  00:00:01 (5/45): libxslt-python-1.1.28-5.el7.x86_64.rpm                                                                                                                        |  59 kB  00:00:00 (6/45): PyYAML-3.10-11.el7.x86_64.rpm                                                                                                                                 | 153 kB  00:00:02 (7/45): libwebp-0.3.0-3.el7.x86_64.rpm                                                                                                                                | 170 kB  00:00:01 (8/45): pyOpenSSL-0.13.1-3.el7.x86_64.rpm                                                                                                                             | 133 kB  00:00:01 (9/45): nodejs-less-1.7.0-2.el7.noarch.rpm                                                                                                                            | 102 kB  00:00:02 (10/45): pyparsing-1.5.6-9.el7.noarch.rpm                                                                                                                             |  94 kB  00:00:01 (11/45): dejavu-sans-fonts-2.33-6.el7.noarch.rpm                                                                                                                      | 1.4 MB  00:00:11 (12/45): python-backports-1.0-8.el7.x86_64.rpm                                                                                                                        | 5.8 kB  00:00:00 (13/45): nodejs-0.10.46-1.el7.x86_64.rpm                                                                                                                              | 2.0 MB  00:00:09 (14/45): python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch.rpm                                                                                                 |  12 kB  00:00:00 (15/45): python-chardet-2.2.1-1.el7_1.noarch.rpm                                                                                                                      | 227 kB  00:00:01 (16/45): python-dateutil-1.5-7.el7.noarch.rpm                                                                                                                         |  85 kB  00:00:00 (17/45): pychart-1.39-17.el7.noarch.rpm                                                                                                                               | 190 kB  00:00:11 (18/45): python-beaker-1.5.4-10.el7.noarch.rpm                                                                                                                        |  lxxx kB  00:00:04 (19/45): python-feedparser-5.1.3-3.el7.noarch.rpm                                                                                                                     | 107 kB  00:00:00 (20/45): python-jinja2-2.7.2-2.el7.noarch.rpm                                                                                                                         | 515 kB  00:00:04 python-lxml-3.2.1-4.el7.x86_64 FAILED                                           11% [========                                                              ] 477 kB/s |  thirteen MB  00:03:25 ETA http://mirror.digistar.vn/centos/7.2.1511/os/x86_64/Packages/python-lxml-3.2.1-4.el7.x86_64.rpm: [Errno 14] curl#56 - "Recv failure: Connection reset yesteryear peer"77 kB/s |  thirteen MB  00:03:25 ETA Trying other mirror. (21/45): python-ldap-2.4.15-2.el7.x86_64.rpm                                                                                                                          | 159 kB  00:00:08 (22/45): python-markupsafe-0.11-10.el7.x86_64.rpm                                                                                                                     |  25 kB  00:00:00 (23/45): python-openid-2.2.5-7.el7.noarch.rpm                                                                                                                         | 211 kB  00:00:01 (24/45): python-mako-0.8.1-2.el7.noarch.rpm                                                                                                                           | 307 kB  00:00:06 (25/45): python-babel-0.9.6-8.el7.noarch.rpm                                                                                                                          | 1.4 MB  00:00:24 (26/45): python-passlib-1.6.2-2.el7.noarch.rpm                                                                                                                        | 480 kB  00:00:05 (27/45): python-psutil-2.2.1-1.el7.x86_64.rpm                                                                                                                         | 114 kB  00:00:00 (28/45): python-psycopg2-2.5.1-3.el7.x86_64.rpm                                                                                                                       | 132 kB  00:00:00 (29/45): python-reportlab-2.5-9.el7.x86_64.rpm                                                                                                                        | 1.2 MB  00:00:02 (30/45): python-requests-2.6.0-1.el7_1.noarch.rpm                                                                                                                     |  94 kB  00:00:00 (31/45): python-setuptools-0.9.8-4.el7.noarch.rpm                                                                                                                     | 396 kB  00:00:00 (32/45): python-six-1.9.0-2.el7.noarch.rpm                                                                                                                            |  29 kB  00:00:00 (33/45): python-docutils-0.11-0.2.20130715svn7687.el7.noarch.rpm                                                                                                      | 1.5 MB  00:00:23 (34/45): python-tempita-0.5.1-6.el7.noarch.rpm                                                                                                                        |  33 kB  00:00:00 (35/45): python-paste-1.7.5.1-9.20111221hg1498.el7.noarch.rpm                                                                                                         | 866 kB  00:00:06 (36/45): python-urllib3-1.10.2-2.el7_1.noarch.rpm                                                                                                                     | 100 kB  00:00:00 (37/45): python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64.rpm                                                                                                             | 438 kB  00:00:06 (38/45): python-vobject-0.8.1c-8.el7.noarch.rpm                                                                                                                       |  88 kB  00:00:00 (39/45): pytz-2012d-5.el7.noarch.rpm                                                                                                                                  |  38 kB  00:00:00 (40/45): ycssmin-1.0.1-6.el7.noarch.rpm                                                                                                                               |  12 kB  00:00:01 python2-mock-1.0.1-9.el7.noarc FAILED https://free.nchc.org.tw/fedora-epel/7/x86_64/p/python2-mock-1.0.1-9.el7.noarch.rpm: [Errno 14] curl#60 - "Peer's Certificate issuer is non recognized."   ] 688 kB/s |  21 MB  00:02:09 ETA Trying other mirror. It was impossible to connect to the CentOS servers. This could hateful a connectivity lawsuit inward your environment, such equally the requirement to configure a proxy, or a transparent proxy that tampers amongst TLS security, or an wrong organization clock. Please collect information nearly the specific failure that occurs inward your environment, using the instructions in: https://access.redhat.com/solutions/1527033 as well as exercise a põrnikas on https://bugs.centos.org/  (41/45): python-xlwt-0.7.4-5.el7.noarch.rpm                                                                                                                           | 164 kB  00:00:02 (42/45): python-lxml-3.2.1-4.el7.x86_64.rpm                                                                                                                           | 758 kB  00:00:00 (43/45): python2-mock-1.0.1-9.el7.noarch.rpm                                                                                                                          |  92 kB  00:00:00 (44/45): python-werkzeug-0.9.1-2.el7.noarch.rpm                                                                                                                       | 562 kB  00:00:09 warning: /var/cache/yum/x86_64/7/odoo-nightly/packages/odoo_9.0c.20160901.noarch.rpm: Header V4 RSA/SHA1 Signature, telephone substitution ID 8183cbb5: NOKEY================-] 287 kB/s | 108 MB  00:00:00 ETA Public telephone substitution for odoo_9.0c.20160901.noarch.rpm is non installed (45/45): odoo_9.0c.20160901.noarch.rpm                                                                                                                                |  94 MB  00:04:58 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total                                                                                                                                                        369 kB/s | 109 MB  00:05:01 Retrieving telephone substitution from https://nightly.odoo.com/odoo.key Importing GPG telephone substitution 0x8183CBB5:  Userid     : "Odoo SA, Linux Package Signing Key <info@odoo.com>"  Fingerprint: 5d13 4c92 4cb0 6330 dcef e2a1 def2 a219 8183 cbb5  From       : https://nightly.odoo.com/odoo.key Is this ok [y/N]: y Running transaction banking company check Running transaction exam Transaction exam succeeded Running transaction   Installing : python-chardet-2.2.1-1.el7_1.noarch                                                                                                                                      1/45   Installing : python-babel-0.9.6-8.el7.noarch                                                                                                                                          2/45   Installing : python-markupsafe-0.11-10.el7.x86_64                                                                                                                                     3/45   Installing : python-dateutil-1.5-7.el7.noarch                                                                                                                                         4/45   Installing : python-lxml-3.2.1-4.el7.x86_64                                                                                                                                           5/45   Installing : python-openid-2.2.5-7.el7.noarch                                                                                                                                         6/45   Installing : python-jinja2-2.7.2-2.el7.noarch                                                                                                                                         7/45   Installing : python-feedparser-5.1.3-3.el7.noarch                                                                                                                                     8/45   Installing : python-passlib-1.6.2-2.el7.noarch                                                                                                                                        9/45   Installing : libwebp-0.3.0-3.el7.x86_64                                                                                                                                              10/45   Installing : python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64                                                                                                                            11/45   Installing : python-docutils-0.11-0.2.20130715svn7687.el7.noarch                                                                                                                     12/45   Installing : pytz-2012d-5.el7.noarch                                                                                                                                                 13/45   Installing : PyYAML-3.10-11.el7.x86_64                                                                                                                                               14/45   Installing : antlr-python-2.7.7-30.el7.noarch                                                                                                                                        15/45   Installing : python-xlwt-0.7.4-5.el7.noarch                                                                                                                                          16/45   Installing : python-tempita-0.5.1-6.el7.noarch                                                                                                                                       17/45   Installing : python2-mock-1.0.1-9.el7.noarch                                                                                                                                         18/45   Installing : pychart-1.39-17.el7.noarch                                                                                                                                              19/45   Installing : 1:libuv-0.10.34-2.el7.x86_64                                                                                                                                            20/45   Installing : nodejs-0.10.46-1.el7.x86_64                                                                                                                                             21/45   Installing : ycssmin-1.0.1-6.el7.noarch                                                                                                                                              22/45   Installing : nodejs-less-1.7.0-2.el7.noarch                                                                                                                                          23/45   Installing : python-ldap-2.4.15-2.el7.x86_64                                                                                                                                         24/45   Installing : libxslt-python-1.1.28-5.el7.x86_64                                                                                                                                      25/45   Installing : python-backports-1.0-8.el7.x86_64                                                                                                                                       26/45   Installing : python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch                                                                                                                27/45   Installing : python-setuptools-0.9.8-4.el7.noarch                                                                                                                                    28/45   Installing : python-vobject-0.8.1c-8.el7.noarch                                                                                                                                      29/45   Installing : babel-0.9.6-8.el7.noarch                                                                                                                                                30/45   Installing : pyOpenSSL-0.13.1-3.el7.x86_64                                                                                                                                           31/45   Installing : python-paste-1.7.5.1-9.20111221hg1498.el7.noarch                                                                                                                        32/45   Installing : python-beaker-1.5.4-10.el7.noarch                                                                                                                                       33/45   Installing : python-mako-0.8.1-2.el7.noarch                                                                                                                                          34/45   Installing : python-six-1.9.0-2.el7.noarch                                                                                                                                           35/45   Installing : python-urllib3-1.10.2-2.el7_1.noarch                                                                                                                                    36/45   Installing : python-requests-2.6.0-1.el7_1.noarch                                                                                                                                    37/45   Installing : dejavu-fonts-common-2.33-6.el7.noarch                                                                                                                                   38/45   Installing : dejavu-sans-fonts-2.33-6.el7.noarch                                                                                                                                     39/45   Installing : python-reportlab-2.5-9.el7.x86_64                                                                                                                                       40/45   Installing : python-psycopg2-2.5.1-3.el7.x86_64                                                                                                                                      41/45   Installing : python-psutil-2.2.1-1.el7.x86_64                                                                                                                                        42/45   Installing : pyparsing-1.5.6-9.el7.noarch                                                                                                                                            43/45   Installing : python-werkzeug-0.9.1-2.el7.noarch                                                                                                                                      44/45   Installing : odoo-9.0c_20160901-1.noarch                                                                                                                                             45/45 Searching for pyPdf Reading https://pypi.python.org/simple/pyPdf/ Best match: pyPdf 1.13 Downloading https://pypi.python.org/packages/bd/22/e1df75dffb7679344bcf986abd473d7c0e22ba976f2caef31551e394a3a2/pyPdf-1.13.tar.gz#md5=7a75ef56f227b78ae62d6e38d4b6b1da Processing pyPdf-1.13.tar.gz Writing /tmp/easy_install-dUHrvb/pyPdf-1.13/setup.cfg Running pyPdf-1.13/setup.py -q bdist_egg --dist-dir /tmp/easy_install-dUHrvb/pyPdf-1.13/egg-dist-tmp-iqwrAI zip_safe flag non set; analyzing archive contents... Adding pyPdf 1.13 to easy-install.pth file  Installed /usr/lib/python2.7/site-packages/pyPdf-1.13-py2.7.egg Processing dependencies for pyPdf Finished processing dependencies for pyPdf Searching for vatnumber Reading https://pypi.python.org/simple/vatnumber/ Best match: vatnumber 1.2 Downloading https://pypi.python.org/packages/d7/7c/869b59cd9cb6ed1057372cb704a3b86688ae8c12cfc7fcaedbc1424f5e7f/vatnumber-1.2.tar.gz#md5=3b1541be3834a865f6f7bcce809ffb25 Processing vatnumber-1.2.tar.gz Writing /tmp/easy_install-lclNZ0/vatnumber-1.2/setup.cfg Running vatnumber-1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-lclNZ0/vatnumber-1.2/egg-dist-tmp-d0c8X7 zip_safe flag non set; analyzing archive contents... Adding vatnumber 1.2 to easy-install.pth file  Installed /usr/lib/python2.7/site-packages/vatnumber-1.2-py2.7.egg Processing dependencies for vatnumber Searching for python-stdnum Reading https://pypi.python.org/simple/python-stdnum/ Best match: python-stdnum 1.4 Downloading https://pypi.python.org/packages/9c/85/28bea8e8ac00ef571efbdc52c58d875a8042e575a5878229b642cd72feda/python-stdnum-1.4.tar.gz#md5=05501e7ee55e5ccdfabfeede100d2615 Processing python-stdnum-1.4.tar.gz Writing /tmp/easy_install-IRhb4I/python-stdnum-1.4/setup.cfg Running python-stdnum-1.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-IRhb4I/python-stdnum-1.4/egg-dist-tmp-am8k_a zip_safe flag non set; analyzing archive contents... stdnum.util: module references __path__ Adding python-stdnum 1.4 to easy-install.pth file  Installed /usr/lib/python2.7/site-packages/python_stdnum-1.4-py2.7.egg Finished processing dependencies for vatnumber Searching for pydot Reading https://pypi.python.org/simple/pydot/ Best match: pydot 1.2.2 Downloading https://pypi.python.org/packages/87/d0/3f3a3d2a57b2ca29ea37c93917a3b25858f4cccc5611767bcdef9770ccc7/pydot-1.2.2.tar.gz#md5=fad67d9798dbb33bb3dca3e6d4c47665 Processing pydot-1.2.2.tar.gz Writing /tmp/easy_install-l88m0I/pydot-1.2.2/setup.cfg Running pydot-1.2.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-l88m0I/pydot-1.2.2/egg-dist-tmp-k3fon_ zip_safe flag non set; analyzing archive contents... Adding pydot 1.2.2 to easy-install.pth file  Installed /usr/lib/python2.7/site-packages/pydot-1.2.2-py2.7.egg Processing dependencies for pydot Searching for pyparsing>=2.1.4 Reading https://pypi.python.org/simple/pyparsing/ Best match: pyparsing 2.1.8 Downloading https://pypi.python.org/packages/8f/ad/3dc140bbac31e144585035be42d65b2edb2d502af82c9a5284f7d2662bf7/pyparsing-2.1.8.zip#md5=47342b0e7ab5c3a127d764a050f9bd1f Processing pyparsing-2.1.8.zip Writing /tmp/easy_install-AL_xc_/pyparsing-2.1.8/setup.cfg Running pyparsing-2.1.8/setup.py -q bdist_egg --dist-dir /tmp/easy_install-AL_xc_/pyparsing-2.1.8/egg-dist-tmp-3jyfcV zip_safe flag non set; analyzing archive contents... Adding pyparsing 2.1.8 to easy-install.pth file  Installed /usr/lib/python2.7/site-packages/pyparsing-2.1.8-py2.7.egg Finished processing dependencies for pydot Searching for psycogreen Reading https://pypi.python.org/simple/psycogreen/ Best match: psycogreen 1.0 Downloading https://pypi.python.org/packages/66/29/9250c6a11822f56a1c2f703e4031d173c5b3725095d3422c11cafcc5427f/psycogreen-1.0.tar.gz#md5=7a32d8f5abdb4ce17ac512f8c8a698a9 Processing psycogreen-1.0.tar.gz Writing /tmp/easy_install-RDaHQk/psycogreen-1.0/setup.cfg Running psycogreen-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-RDaHQk/psycogreen-1.0/egg-dist-tmp-hhbE1s zip_safe flag non set; analyzing archive contents... Adding psycogreen 1.0 to easy-install.pth file  Installed /usr/lib/python2.7/site-packages/psycogreen-1.0-py2.7.egg Processing dependencies for psycogreen Finished processing dependencies for psycogreen Searching for suds Reading https://pypi.python.org/simple/suds/ Best match: suds 0.4 Downloading https://pypi.python.org/packages/bc/d6/960acce47ee6f096345fe5a7d9be7708135fd1d0713571836f073efc7393/suds-0.4.tar.gz#md5=b7502de662341ed7275b673e6bd73191 Processing suds-0.4.tar.gz Writing /tmp/easy_install-CBz7de/suds-0.4/setup.cfg Running suds-0.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-CBz7de/suds-0.4/egg-dist-tmp-d00oGR zip_safe flag non set; analyzing archive contents... Adding suds 0.4 to easy-install.pth file  Installed /usr/lib/python2.7/site-packages/suds-0.4-py2.7.egg Processing dependencies for suds Finished processing dependencies for suds Searching for ofxparse Reading https://pypi.python.org/simple/ofxparse/ Best match: ofxparse 0.15 Downloading https://pypi.python.org/packages/bf/be/e6a2034b61349a069d51b37b8b47493428b19a9b71965c8720385a9e42be/ofxparse-0.15-py2.7.egg#md5=d363082d950abde4c1dabd874a119b27 Processing ofxparse-0.15-py2.7.egg Moving ofxparse-0.15-py2.7.egg to /usr/lib/python2.7/site-packages Adding ofxparse 0.15 to easy-install.pth file  Installed /usr/lib/python2.7/site-packages/ofxparse-0.15-py2.7.egg Processing dependencies for ofxparse Searching for beautifulsoup4 Reading https://pypi.python.org/simple/beautifulsoup4/ Best match: beautifulsoup4 4.5.1 Downloading https://pypi.python.org/packages/86/ea/8e9fbce5c8405b9614f1fd304f7109d9169a3516a493ce4f7f77c39435b7/beautifulsoup4-4.5.1.tar.gz#md5=994abd90e691beaf7d42c00ffb2f3a67 Processing beautifulsoup4-4.5.1.tar.gz Writing /tmp/easy_install-azoyBt/beautifulsoup4-4.5.1/setup.cfg Running beautifulsoup4-4.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-azoyBt/beautifulsoup4-4.5.1/egg-dist-tmp-zCp1HL zip_safe flag non set; analyzing archive contents... Adding beautifulsoup4 4.5.1 to easy-install.pth file  Installed /usr/lib/python2.7/site-packages/beautifulsoup4-4.5.1-py2.7.egg Finished processing dependencies for ofxparse   Verifying  : python-docutils-0.11-0.2.20130715svn7687.el7.noarch                                                                                                                      1/45   Verifying  : python-jinja2-2.7.2-2.el7.noarch                                                                                                                                         2/45   Verifying  : python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch                                                                                                                 3/45   Verifying  : python-werkzeug-0.9.1-2.el7.noarch                                                                                                                                       4/45   Verifying  : python-lxml-3.2.1-4.el7.x86_64                                                                                                                                           5/45   Verifying  : nodejs-less-1.7.0-2.el7.noarch                                                                                                                                           6/45   Verifying  : pyparsing-1.5.6-9.el7.noarch                                                                                                                                             7/45   Verifying  : nodejs-0.10.46-1.el7.x86_64                                                                                                                                              8/45   Verifying  : python-openid-2.2.5-7.el7.noarch                                                                                                                                         9/45   Verifying  : python-mako-0.8.1-2.el7.noarch                                                                                                                                          10/45   Verifying  : python-dateutil-1.5-7.el7.noarch                                                                                                                                        11/45   Verifying  : python-psutil-2.2.1-1.el7.x86_64                                                                                                                                        12/45   Verifying  : python-psycopg2-2.5.1-3.el7.x86_64                                                                                                                                      13/45   Verifying  : dejavu-fonts-common-2.33-6.el7.noarch                                                                                                                                   14/45   Verifying  : python-feedparser-5.1.3-3.el7.noarch                                                                                                                                    15/45   Verifying  : python-six-1.9.0-2.el7.noarch                                                                                                                                           16/45   Verifying  : python-vobject-0.8.1c-8.el7.noarch                                                                                                                                      17/45   Verifying  : python-markupsafe-0.11-10.el7.x86_64                                                                                                                                    18/45   Verifying  : dejavu-sans-fonts-2.33-6.el7.noarch                                                                                                                                     19/45   Verifying  : python-babel-0.9.6-8.el7.noarch                                                                                                                                         20/45   Verifying  : odoo-9.0c_20160901-1.noarch                                                                                                                                             21/45   Verifying  : python-paste-1.7.5.1-9.20111221hg1498.el7.noarch                                                                                                                        22/45   Verifying  : pyOpenSSL-0.13.1-3.el7.x86_64                                                                                                                                           23/45   Verifying  : python-backports-1.0-8.el7.x86_64                                                                                                                                       24/45   Verifying  : python-reportlab-2.5-9.el7.x86_64                                                                                                                                       25/45   Verifying  : libxslt-python-1.1.28-5.el7.x86_64                                                                                                                                      26/45   Verifying  : python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64                                                                                                                            27/45   Verifying  : python-ldap-2.4.15-2.el7.x86_64                                                                                                                                         28/45   Verifying  : python-setuptools-0.9.8-4.el7.noarch                                                                                                                                    29/45   Verifying  : 1:libuv-0.10.34-2.el7.x86_64                                                                                                                                            30/45   Verifying  : pychart-1.39-17.el7.noarch                                                                                                                                              31/45   Verifying  : python2-mock-1.0.1-9.el7.noarch                                                                                                                                         32/45   Verifying  : python-beaker-1.5.4-10.el7.noarch                                                                                                                                       33/45   Verifying  : python-tempita-0.5.1-6.el7.noarch                                                                                                                                       34/45   Verifying  : ycssmin-1.0.1-6.el7.noarch                                                                                                                                              35/45   Verifying  : python-requests-2.6.0-1.el7_1.noarch                                                                                                                                    36/45   Verifying  : python-xlwt-0.7.4-5.el7.noarch                                                                                                                                          37/45   Verifying  : babel-0.9.6-8.el7.noarch                                                                                                                                                38/45   Verifying  : python-chardet-2.2.1-1.el7_1.noarch                                                                                                                                     39/45   Verifying  : antlr-python-2.7.7-30.el7.noarch                                                                                                                                        40/45   Verifying  : PyYAML-3.10-11.el7.x86_64                                                                                                                                               41/45   Verifying  : python-urllib3-1.10.2-2.el7_1.noarch                                                                                                                                    42/45   Verifying  : pytz-2012d-5.el7.noarch                                                                                                                                                 43/45   Verifying  : libwebp-0.3.0-3.el7.x86_64                                                                                                                                              44/45   Verifying  : python-passlib-1.6.2-2.el7.noarch                                                                                                                                       45/45  Installed:   odoo.noarch 0:9.0c_20160901-1  Dependency Installed:   PyYAML.x86_64 0:3.10-11.el7                                         antlr-python.noarch 0:2.7.7-30.el7                             babel.noarch 0:0.9.6-8.el7   dejavu-fonts-common.noarch 0:2.33-6.el7                             dejavu-sans-fonts.noarch 0:2.33-6.el7                          libuv.x86_64 1:0.10.34-2.el7   libwebp.x86_64 0:0.3.0-3.el7                                        libxslt-python.x86_64 0:1.1.28-5.el7                           nodejs.x86_64 0:0.10.46-1.el7   nodejs-less.noarch 0:1.7.0-2.el7                                    pyOpenSSL.x86_64 0:0.13.1-3.el7                                pychart.noarch 0:1.39-17.el7   pyparsing.noarch 0:1.5.6-9.el7                                      python-babel.noarch 0:0.9.6-8.el7                              python-backports.x86_64 0:1.0-8.el7   python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el7          python-beaker.noarch 0:1.5.4-10.el7                            python-chardet.noarch 0:2.2.1-1.el7_1   python-dateutil.noarch 0:1.5-7.el7                                  python-docutils.noarch 0:0.11-0.2.20130715svn7687.el7          python-feedparser.noarch 0:5.1.3-3.el7   python-jinja2.noarch 0:2.7.2-2.el7                                  python-ldap.x86_64 0:2.4.15-2.el7                              python-lxml.x86_64 0:3.2.1-4.el7   python-mako.noarch 0:0.8.1-2.el7                                    python-markupsafe.x86_64 0:0.11-10.el7                         python-openid.noarch 0:2.2.5-7.el7   python-passlib.noarch 0:1.6.2-2.el7                                 python-paste.noarch 0:1.7.5.1-9.20111221hg1498.el7             python-pillow.x86_64 0:2.0.0-19.gitd1c6db8.el7   python-psutil.x86_64 0:2.2.1-1.el7                                  python-psycopg2.x86_64 0:2.5.1-3.el7                           python-reportlab.x86_64 0:2.5-9.el7   python-requests.noarch 0:2.6.0-1.el7_1                              python-setuptools.noarch 0:0.9.8-4.el7                         python-six.noarch 0:1.9.0-2.el7   python-tempita.noarch 0:0.5.1-6.el7                                 python-urllib3.noarch 0:1.10.2-2.el7_1                         python-vobject.noarch 0:0.8.1c-8.el7   python-werkzeug.noarch 0:0.9.1-2.el7                                python-xlwt.noarch 0:0.7.4-5.el7                               python2-mock.noarch 0:1.0.1-9.el7   pytz.noarch 0:2012d-5.el7                                           ycssmin.noarch 0:1.0.1-6.el7  Complete! [root@cent ]# 


Next, start it as well as banking company check daemon condition yesteryear issuing the below commands:


 [root@cent ]# systemctl start odoo
Check condition of service using below command.
 [root@cent ]# systemctl condition odoo

Now enable service to start at kick time.


[root@cent  ]# systemctl enable odoo Created symlink from /etc/systemd/system/multi-user.target.wants/odoo.service to /usr/lib/systemd/system/odoo.service. 



Step 3: Enable port from firewall

Lest banking company check firewall condition start using below command.
[root@localhost  ]# firewall-cmd --state running 


Now allow odoo port 8069 using below command

 [root@cent ]# firewall-cmd --zone=public --permanent --add-port=8069/tcp

Let's reload firewall server to apply changes:


[root@cent ]# firewall-cmd --reload

Let's access odoo service from browser:


http://10.0.0.239:8069/web/database/selector

Fill the required details equally follow 


































Now login into odoo app using credentials yous railroad train above.



















If everything goes good yous volition instruct below mentioned windows:


















Congratulations installation has been completed successfully.


That's All
!!!Cheers!!!



Sumber https://linuxhowtoguide.blogspot.com/

Selasa, 16 Agustus 2016

How To Practise Backup Of All User's Dwelling Directory In Addition To Relieve Every 2Nd Individually

This is how to blog, Create Backup of User's domicile directory as well as give-up the ghost along a variety out compress file for each user.

For a System Administrator is required to give-up the ghost along the backup of Data to avoid unnecessary recovery or Disaster.

Requirement -

1- Linux box - In my scenario, I am using Centos 6.4 lastly release.
2- TAR utility.

Step 1 -

Create Backup finish directory or Mount NAS. In my scenario, I am using my local / rootage subdivision for demonstration.
[root@cent  ]#  mkdir /backupdir

Step ii - 

Create #!/bin/bash Script to practice backup as well as electronic mail report.
Create Script file using Vi editor

[root@cent backupdir]# vi homebackup.sh

#!/bin/bash # Add your backup dir location, as well as tar commmand path DATE=`date +%d_%m_%Y_%H_%M` # Define Backup Directory BACKUP_DIR="/backupdir" # To practice a novel directory into backup directory place mkdir -p $BACKUP_DIR/$DATE  # List all Folder available within /home directory USERS=`ls /home | xargs -r` for user inwards  $USERS; practice tar -czf $BACKUP_DIR/$DATE/$user.tar.gz /home/$user # Create log file for all folder comes inwards backup ls -l $BACKUP_DIR/$DATE | truthful cat > $BACKUP_DIR/$DATE/$DATE.log done  

Save as well as Exit from Script

Step three -
Make Script Executable.
[root@cent backupdir]# chmod a+x homebackup.sh

Step four -

Run Script to cheque exam - If everything goes good output should similar this -

[root@cent backupdir]# ./homebackup.sh


We bring successfully configured Backup of folder every bit compress as well as report.


That's All
!!!Cheers!!!

Sumber https://linuxhowtoguide.blogspot.com/

Senin, 15 Agustus 2016

Error! Mysql Director Or Server Pid File Could Non Hold Out Found!



Error :- You may piece of job past times ERROR! MySQL director or server PID file could non survive found! when starting MySQL service.


Cause :- Existing PID doesn't let to practise novel PID.


WorkAround:- Kill the onetime PID as well as thus showtime MySQL service.


Step 1-  

Check MySQL existing PID  using ascendency :-   ps -aufx | grep mysql

 
[root@cent  ]# ps -aufx | grep mysql Warning: bad syntax, maybe a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ beginning     10075  0.0  0.0  61304   748 pts/0    S+   00:31   0:00                      \_ grep mysql beginning      4723  0.0  0.0  65948  1312 ?        due south    Mar13   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/cent.pid mysql     4816  0.0  2.1 288868 85376 ?        Sl   Mar13 198:35  \_ /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --log-error=/var/lib/mysql/cent .err --pid-file=/var/lib/mysql/cent.pid

In higher upwardly query, nosotros found 2 Existing PID.


Step 2 - 
Let's kill them using kill command. 

[root@cent  ]# kill -9 4723 [root@cent  ]# kill -9 4816 

Step 3- 
Now start MySQL service.
[root@cent  ]# /etc/init.d/mysqld start Starting MySQL...... SUCCESS! 

Step iv -
Let's Check MySQL service Status.

[root@cent  ]# /etc/init.d/mysqld status  SUCCESS! MySQL running (14346) [root@cent  ]# 

MySQL service has been restarted successfully 



That's All

!!!Cheers!!!





Sumber https://linuxhowtoguide.blogspot.com/