In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install and configure lnmp in centos environment". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to install and configure lnmp in centos environment".
Install dependent libraries and development environment
The copy code is as follows:
# dependent libraries and development tools
Yum-y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers
# nginx
Yum-y install pcre-devel zlib-devel
# php
Yum-y install gd-devel libjpeg-devel libpng-devel freetype-devel libxml2-devel curl-devel freetype-devel
# mysql
Yum-y install bison gcc gcc-c++ autoconf automake zlib* libxml* ncurses-devel libtool-ltdl-devel* mysql-devel
Download the software package
# create a directory
Mkdir / web
Cd / web
# php5.3.8
Wget http://php.net/distributions/php-5.3.8.tar.bz2
# php Library File
Wget http://ncu.dl.sourceforge.net/project/mcrypt/mcrypt/2.6.8/mcrypt-2.6.8.tar.gz
Wget http://ncu.dl.sourceforge.net/project/mhash/mhash/0.9.9.9/mhash-0.9.9.9.tar.gz
Wget http://ncu.dl.sourceforge.net/project/mcrypt/libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz
Wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
# nginx1.5.3
Wget http://www.nginx.org/download/nginx-1.5.3.tar.gz
# nginx (pcre)
Wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.13.tar.gz
If you don't have 8.13, you can download the latest at ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/.
# mysql5.5.17
Wget http://mysql.mirrors.pair.com/downloads/mysql-5.5/mysql-5.5.32.tar.gz
Download the latest: http://mysql.mirrors.pair.com/downloads/mysql-5.5/
# mysql (cmake)
Wget http://www.cmake.org/files/v2.8/cmake-2.8.6.tar.gz
Install mysql
The copy code is as follows:
# install cmake
Tar-zxvf cmake-2.8.6.tar.gz
Cd cmake-2.8.6/
. / configure
Gmake & & gmake install & & cd.. /
# add mysql users
/ usr/sbin/groupadd mysql
/ usr/sbin/useradd-g mysql mysql
Mkdir-p / data/mysql
Chown-r mysql:mysql / data/mysql
# install mysql
Tar-zxvf mysql-5.5.17.tar.gz
Cd mysql-5.5.17
Cmake. -dcmake_install_prefix=/usr/local/mysql-dmysql_datadir=/data/mysql-dsysconfdir=/etc/
Make & & make install
# set mysql
# there are five configuration information files in the support-files directory:
# my-small.cnf (memory
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.