In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to use Centos to build PHP5.3.8+Nginx1.0.9+Mysql5.5.17", the content of the article is simple and clear, easy to learn and understand, now please follow the editor's ideas slowly in depth, together to study and learn "how to use Centos to build PHP5.3.8+Nginx1.0.9+Mysql5.5.17"!
Operating environment
Operating system: mac os lion
Virtual host: vmware fusion
Virtual system: centos 5.5 +
Operation user: root
Purpose: to build a lnmp environment.
Install dependent libraries and development environment
The copy code is as follows:
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
The copy code is as follows:
# create a directory
Mkdir / web
Cd / web
# php5.3.7
Wget http://cn.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.0.9
Wget http://www.nginx.org/download/nginx-1.0.9.tar.gz
# nginx (pcre)
Wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.13.tar.gz
# mysql5.5.17
Wget http://dev.mysql.com/get/downloads/mysql-5.5/mysql-5.5.17.tar.gz/from/http://mysql.ntu.edu.tw/
# 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.