Your location:Tech News>News>Script>Yum build method of environmental analysis under LNMP

Latest News

Yum build method of environmental analysis under LNMP

Author:fsadmin

Views:

  This article describes the method of example in building yum environment LNMP.Share to you for your reference, as follows:

  Today, get a socket under the expanded my original environment is broken out posix this extension is broken Oh I do so from a new look at

  First look at lnmp environment yum

  Check whether there is nginx , ,

  command:

  If there is to first uninstall

  yum remove mysql

  yum remove ,

  yum remove nginx

  And then view

  With the command: (just check out the data) to forcibly remove

  View all spent files and then delete all (nginx, mysql the same)

  With the command: (file name)

  After deleted it can be installed under the test again whether php nginx mysql installation

  Use the command

  Nginx nginx version listed start installation

  command:

  Installation command:

  When there is complete!For success

  Now we see it again

  Now to see if there is

  We start it here to say what centos7.After the service would not ,.This approach started

  But with the start

  Command: / bin / systemctl start nginx.service (bin here is my route different personal path, you probably do not need)

  And then see if the process is running successfully

  ifconfig # View card information

  Open your browser: http: // ,8,.92.7,.1,9 /

  , {Nginx see the welcome screen instructions to install success!

  Next we installed php (if you want to install yum 7.0, then you can refer to the previous article)

  command:

  yum list php php-fpm # listed php and php-fpm whether there

  yum -y install php php-fpm # install php and php-fpm package

  Appeared Complete!The success

  Start php-fpm:

  Nginx modify PHP configuration file so that the request is forwarded to the php-fpm bound ip and port:

  vim / etc / nginx / nginx.conf.default # line [65-71]

  Remove the number #:

  location ~ ",.,

  ,

  ,.0.0.,

  ,.,

  ,

  ,

  }

  ,

  , .,

  ,

  ,

  ,

  ,.php

  ,

  ,

  ,! ,

  ,

  ,

  ,

  ,

  ,.php

  ,.

  , !

  ,

  ,

  ,

  ,

  ,

  ,.,.

  1.,

  ,

  ,.mysql.,.,.,

  2.,.][.,

  ,.,.,

  ,

  ,.,.,.,

  ,.,.,.,.

  3.,

  ,

  ,

  ,

  ,

  ,

  ,.

  ,

  ,

  ,.

  ,.

  ,

  ,

  ,

  ,.,

  ,

  ,

  ,.

  ,.,.,.,.,.,.

Recommend article

Relate article