1.下载源码
$cd /usr/local/src
mariadb10.5.9
nginx1.18
php7.4.16
tomcat9.044
httpd-2.4.46 apr-util-1.6.1 apr-1.7.0
2.安装
2.1 http
apr
cd /usr/local/src/apr1.7.0;
./configure --prefix=/usr/local/apr
make && make install
apr-util
sudo yum install expat-devel -y
cd /usr/local/src/apr-util-1.6.1/
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install
httpd
sudo yum install pcre-devel -y
sudo yum install openssl-devel -y
sudo yum install libxml2-devel -y
cd /usr/local/src/httpd-2.4.46
./configure --prefix=/usr/local/apache --enable-so --enable-ssl --enable-cgi --enable-rewrite --with-zlib --with-pcre --enable-modules=most --enable-mpms-shared=all --with-mpm=prefork --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
make && make install
2.2mariadb
sudo yum install ncurses-devel -y
sudo yum install gcc-c++ -y
sudo yum install libcurl-devel -y
sudo yum install bison-devel -y
sudo yum install boost-devel -y
sudo useradd maria
cd /usr/local/src/mariadb-10.5.9
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mariadb -DMYSQL_UNIX_ADDR=/tmp/mysql.sock -DMYSQL_DATADIR=/data/mysql -DSYSCONFDIR=/etc -DMYSQL_USER=maria -DMYSQL_TCP_PORT=3306 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DENABLED_LOCAL-INFILE=1 -DWITH_EXTRA_CHARSETS=1 -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DEXTRA_CHARSETS=all -DWITH_BIG_TABLES=1 -DWITH_DEBUG=0
make && make install