标签:unp pre 1.5 sql sed tar.bz2 rip move init
一:安装mariadb解压
移动到/usr/local/maiadb
mkdir /data/mariadb
用户mysql
./scripts/mysql_install_db --user=mysql --basedir=/usr/local/mariadb/ --datadir=/data/mariadb
看看是否有两个ok
echo $?
值为0则为正确
cp support-files/my-small.cnf /usr/local/mariadb/my.cnf
vi /usr/local/mariadb/my.cnf //定义basedir和datadir
cp support-files/mysql.server /etc/inti.d/mariadb
vim /etc/init.d/mariadb //定义basedir、datadir、conf以及启动参数
/etc/inti.d/mariadb start
安装Apache2.4版本注意事项
centos6 yum安装的apr版本已经不适用httpd-2.4版本了,所以编译时会出现如下错误
configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.
所以,需要源码编译apr以及apr-util
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
./configure --prefix=/u01/apr
make && make install
安装apr报错rm: cannot remove `libtoolT‘: No such file or ,直接打开/usr/local/src/apr-1.4.6/configure 把 $RM “$cfgfile” 那行删除掉
$RM “$cfgfile”
然后再重新运行 ./configure --prefix=/usr/local/apr 就可以了
cd apr-util-1.5.4
./configure --prefix=/u01/apr-util --with-apr=/u01/apr/
make && make install
make && make install
每一步都检查是否正确执行 echo $?
启动apache
/usr/local/apache2/bin/apachectl start
标签:unp pre 1.5 sql sed tar.bz2 rip move init
原文地址:http://blog.51cto.com/10941098/2152344