In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the relevant knowledge of how to use yum to build LNMP environment in CentOS6.5, the content is detailed and easy to understand, the operation is simple and fast, and it has a certain reference value. I believe you will gain something after reading this CentOS6.5 article on how to use yum to build LNMP environment. Let's take a look.
First, install php7
1. Update the yum feed (php version 5.3.3 in the default yum source)
# rpm-uvh http://mirror.webtatic.com/yum/el6/latest.rpm
two。 Install php7 and common expansion modules
# yum-y install php70w php70w-mysql php70w-mbstring php70w-mcrypt php70w-gd php70w-imap php70w-ldap php70w-odbc php70w-pear php70w-xml php70w-xmlrpc php70w-pdo php70w-fpm php70w-devel
Note: you can use the command yum-y install php70w-xxx to install other expansion modules
3. Test whether the installation is successful
# php-v
4. Configure the php.ini file, adding cgi.fix_pathinfo = 1 at the end
# vim / etc/php.ini
Second, install mysql5.5
1. Uninstall version 5.1 of mysql-libs
# rpm-qa | grep mysql# rpm-e mysql-libs-- nodeps
two。 Add new sources
# rpm-uvh http://mirror.steadfast.net/epel/6/i386/epel-release-6-8.noarch.rpm# rpm-uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
3. Installation
# yum-y-enablerepo=remi,remi-test install mysql mysql-server
4. Start
# service mysqld start
5. Set up boot boot
# chkconfig-- levels 345 mysqld on
6. Change the default password
# mysqlmysql > select user,host,password from mysql.user;mysql > drop user'@ localhost;mysql > update mysql.user set password = password ('new password') where user='root';mysql > flush privileges;mysql > exit
Third, install nginx
1. Installation
# yum install nginx
two。 Configure the conf file
# vim / etc/nginx/conf.d/default.conf
Kill the following line
Listen [::]: 80 default_server
And add fastcgi support
Index index.php index.html index.htm; location ~\ .php$ {root / usr/share/nginx/html; fastcgi_pass 127.0.0.1 root 9000; fastcgi_index index.php; fastcgi_param script_filename / usr/share/nginx/html$fastcgi_script_name; include fastcgi_params;}
3. Set up boot boot
# chkconfig-- levels 345 nginx on
4. Start nginx and php-fpm
# service nginx start# service php-fpm start
IV. Testing
# vim / usr/share/nginx/html/phpinfo.php
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.