64 yum install wget
65 wget http://mirrors.sohu.com/mysql/MySQL-5.6/mysql-5.6.35-linux-glibc2.5-
x86_64.tar.gz
66 tar zxvf mysql-5.6.35-linux-glibc2.5-x86_64.tar.gz
67 mv mysql-5.6.35-linux-glibc2.5-x86_64 /usr/local/mysql
68 cd /usr/local/mysql/
70 mkdir /data/mysql
71 mkdir -p /data/mysql
72 useradd mysql
73 ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql
75 yum install -y perl*
76 ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql
78 cp support-files/my-default.cnf /etc/my.cnf
79 vi /etc/my.cnf
80 cp support-files/mysql.server /etc/init.d/mysqld
81 vi /etc/init.d/mysqld
82 chmod 755 /etc/init.d/mysqld
83 chkconfig --add mysqld
84 chkconfig --list
85 /etc/init.d/mysqld start
86 service mysqld start
87 netstat -lnp
88 ps aux |grep mysqld
二、安装HTTP
96 cd /usr/local/src
98 wget http://mirrors.sohu.com/apache/httpd-2.4.33.tar.gz
99 tar zxvf httpd-2.4.33.tar.gz
149 wget http://mirrors.cnnic.cn/apache/apr/apr-1.6.3.tar.gz
150 tar zxvf apr-1.6.3.tar.gz
151 cd apr-1.6.3
154 ./configure --prefix=/usr/local/apr
156 yum install libtool* -y
157 ./configure --prefix=/usr/local/apr
159 make
160 make install
162 cd ..
166 yum install bzip2*
169 tar jxvf apr-util-1.6.1.tar.bz2
170 cd apr-util-1.6.1
172 ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
174 make
175 yum install -y expat*
176 ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
177 make
179 make install
185 cd ..
186 wget https://jaist.dl.sourceforge.net/project/pcre/pcre/8.41/pcre-8.41.tar.gz
188 tar zxvf pcre-8.41.tar.gz
190 cd pcre-8.41
192 ./configure --prefix=/usr/local/pcre
193 make
195 make install
197 cd ..
198 cd httpd-2.4.33
201 ./configure --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
202 make
204 make install
208 cd /usr/local/apache2.4/conf
210 vi httpd.conf
211 /usr/local/apache2.4/bin/apachectl start
212 netstat -lnp
213 systemctl status firewalld
214 systemctl stop firewalld
215 systemctl disable firewalld
216 systemctl status firewalld
原文地址:http://blog.51cto.com/goldstar52/2114619