One: Installation mariadb
Extract
Move to/USR/LOCAL/MAIADB
Mkdir/data/mariadb
User MySQL
./scripts/mysql_install_db--user=mysql--basedir=/usr/local/mariadb/--datadir=/data/mariadb
See if there are two OK
echo $?
A value of 0 is correct
CP SUPPORT-FILES/MY-SMALL.CNF/USR/LOCAL/MARIADB/MY.CNF
VI/USR/LOCAL/MARIADB/MY.CNF//define BASEDIR and DataDir
CP SUPPORT-FILES/MYSQL.SERVER/ETC/INTI.D/MARIADB
VIM/ETC/INIT.D/MARIADB//define BASEDIR, DataDir, conf, and startup parameters
/ETC/INTI.D/MARIADB start
II: Apache Installation
Considerations for installing Apache2.4 versions
The CENTOS6 yum installed Apr version is no longer applicable to the httpd-2.4 version, so the following error occurs at compile time
Configure:error:Bundled APR requested but not found at./srclib/. Download and unpack the corresponding APR and Apr-util packages to./srclib/.
Therefore, the source code is required to compile APR and Apr-util
- Download Source:
cd/usr/local/src/
wget http://mirrors.cnnic.cn/apache/httpd/httpd-2.4.12.tar.bz2
wget http://mirrors.hust.edu.cn/apache/apr/apr-1.6.3.tar.bz2
wget http://mirrors.hust.edu.cn/apache/apr/apr-util-1.6.1.tar.bz2
- Install Apr
Tar jxvf apr-1.5.2.tar.bz2
CD apr-1.5.2
./configure--PREFIX=/U01/APR
Make && make install
Install APR error rm:cannot remove ' Libtoolt ': No such file or, directly open/usr/local/src/apr-1.4.6/configure remove $RM "$cfgfile" line
$RM "$cfgfile"
And then run it again./configure--PREFIX=/USR/LOCAL/APR.
- Installing Apr-util
Tar zxvf apr-util-1.5.4.tar.gz
CD apr-util-1.5.4
./configure--prefix=/u01/apr-util--with-apr=/u01/apr/
Make && make install
- Installing httpd
Yum install gcc make cmake pcre-devel
#./configure \
--PREFIX=/U01/APACHE2 \
--WITH-INCLUDED-APR \
--ENABLE-SO \
--enable-mods-shared=most \
--with-pcre
Make && make install
Each step checks to see if the echo $ is executed correctly?
Launch Apache
/usr/local/apache2/bin/apachectl start
Installation of MARIADB, Apache installation