1 ifconfig
2 Vi/etc/sysconfig/network-scripts/ifcfg-eth0
3 Service Network restart
4 Ping www.baidu.com
5 Mkdir/root/.ssh
6 chmod 700/root/.ssh
7 Cd/root/.ssh
8 VI Authorized_keys
9 reboot
Ten Vi/etc/selinux/config
Reboot
Ifconfig
Init 0
Ifconfig
Uanme-a
Uname
Uname-a
Servcie Stop Iptables
Service iptable Status
Service Iptables Status
Service Iptables Stop
Chkconfig iptables off
Cd/usr/local/src
-LL
wget
+ Yum Install wget
Yum Install Epe
Yum Install Epel
Ping www.baidu.com
Ping WWW.BAIDU.O
Ping www.baidu.com
Cd/usr/local/src
ll
Yum Install Wget-y
wget http://mirrors.sohu.com/apache/httpd-2.4.29.tar.gz
wget http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz
Panax Notoginseng cd/usr/local/src/
-LL
wget http://mirrors.sohu.com/php/php-5.6.9.tar.gz
wget http://mirrors.sohu.com/nginx/nginx-1.9.3.tar.gz
History
42 0
Init 0
History
Cd/usr/local/src
Yum-y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-d Evel 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-clie NTS Openldap-servers make
wget https://netix.dl.sourceforge.net/project/pcre/pcre/8.42/pcre-8.42.tar.gz
wget https://jaist.dl.sourceforge.net/project/pcre/pcre/8.41/pcre-8.41.tar.gz
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.41.tar.bz2
History
Wuyi wget http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz
~ LL
RM mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz
mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz.1 CP mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz
ll
RM mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz.1
$ ll
RM Wget-log
-LL
wget http://mirrors.cnnic.cn/apache/apr/apr-1.6.3.tar.gz
wget http://mirrors.cnnic.cn/apache/apr/apr-util-1.6.1.tar.bz2
+ LL
0 Init
. First, mysql5.6 installation
Cd/usr/local/src
wget http://mirrors.sohu.com/mysql/MySQL-5.6/mysql-5.6.35-linux-glibc2.5-x86_64.tar.gz
Tar zxvf mysql-5.6.35-linux-glibc2.5-x86_64.tar.gz
Mysql-5.6.35-linux-glibc2.5-x86_64/usr/local/mysql MV
cd/usr/local/mysql/
Mkdir-p/data/mysql
Useradd MySQL
/scripts/mysql_install_db--user=mysql--datadir=/data/mysql
CP SUPPORT-FILES/MY-DEFAULT.CNF/ETC/MY.CNF
Vi/etc/my.cnf
Bayi CP Support-files/mysql.server/etc/init.d/mysqld
Vi/etc/init.d/mysqld
chmod 755/etc/init.d/mysqld
Chkconfig--add mysqld
Chkconfig--list
Service mysqld Start
Netstat-lnp
PS aux |grep mysqld
CD src
Second, apache2.4 installation
Tar zxvf httpd-2.4.29.tar.gz
94 Tar zxvf apr-1.6.3.tar.gz
JXVF Tar apr-util-1.6.1.tar.bz2
CD apr-1.6.3
98./configure--PREFIX=/USR/LOCAL/APR
Libtool Yum Install
-Y
/configure--PREFIX=/USR/LOCAL/APR
101 echo $?
102 Make && make install
103 echo $?
104 CD.
CD apr-util-1.6.1
107./configure--prefix=/usr/local/apr-util
108./configure--prefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR
109 echo $?
&& make Install
111 Yum Install expat-Y
The && make install
113 echo%?
118 CD/USR/LOCAL/SRC
119 Cp-r APR-1.6.3/USR/LOCAL/SRC/HTTPD-2.4.29/SRCLIB/APR
Cp-r Apr-util-1.6.1/usr/local/src/httpd-2.4.29/srclib/apr-util
121 CD httpd-2.4.29
122./configure--with-included-apr--prefix=/usr/local/apache2.4--with-apr=/usr/local/apr--with-apr-util=/usr/ Local/apr-util--enable-so--enable-mods-shared=most
123 CD.
Tar jxvf pcre-8.41.tar.bz2
126 CD pcre-8.41
127./configure--prefix=/usr/local/pcre
echo $?
131 CD httpd-2.4.29
134 Yum Install-y Pcre-devel
135./configure--WITH-INCLUDED-APR--prefix=/usr/local/apache2.4--with-apr=/usr/local/apr--with-apr-util=/usr/ Local/apr-util--enable-so--enable-mods-shared=most--with-pcre=/usr/local/pcre
136 echo $?
137 Make
138 echo $?
139 Make Install
echo $?
141 cd/usr/local/apache2.4/conf/
142 VI httpd.conf
143/usr/local/apache2.4/bin/apachectl start
144 NETSTAT-LNP
145 Service Stop Iptables
146 Service Iptables Stop
147 Service Iptables Disable
148 Chkconfig Iptabes off
149 Chkconfig iptables off
Third, PHP installation
158 wget http://mirrors.sohu.com/php/php-5.6.30.tar.gz
Tar zxvf php-5.6.30.tar.gz
161 CD php-5.6.30
165 CD.
166 wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz
167 Tar zxvf libmcrypt-2.5.7.tar.gz
168 CD libmcrypt-2.5.7
169./configure--prefix=/usr/local/libmcrypt
&& make Install
171 echo $?
174 CD php-5.6.30
178 Yum Install epel*
179 Yum Install-y Libmcrypt-devel
/configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache2.4/bin/apxs--with-config-file-path=/usr/ Local/php/etc--with-mysql=/usr/local/mysql--with-pdo-mysql=/usr/local/mysql--with-mysqli=/usr/local/mysql/bin/ Mysql_config--with-libxml-dir--with-gd--with-jpeg-dir--with-png-dir--with-freetype-dir--with-iconv-dir-- With-zlib-dir--with-bz2--with-openssl--with-mcrypt--enable-soap--enable-gd-native-ttf--enable-mbstring-- Enable-sockets--enable-exif
182 Make
184 make Install
186 CP Php.ini-production/usr/local/php/etc/php.ini
187/usr/local/apache2.4/bin/apachectl-m
188 vi/usr/local/apache2.4/conf/httpd.conf
189/usr/local/apache2.4/bin/apachectl-t
191 vi/usr/local/apache2.4/htdocs/1.php
192 ls/usr/local/apache2.4/modules/libphp5.so
193 cd/usr/local/apache2.4/htdocs/
195 chmod 755 Index.html
197 vi/usr/local/apache2.4/conf/httpd.conf
199/usr/local/apache2.4/bin/apachectl-m
205/usr/local/apache2.4/bin/apachectl restart
centos6+apache2.4+.mysql5.6+php5.6.30 of Lamp architecture