--with-readline --with-ssl --with-embedded-server --enable-local-infile \
--without-debug --with-mysqld-ldflags=-ltcmalloc_minimal
# make
# make install
# cd ../
# groupadd -g 27 mysql
# useradd -u 27 -g 27 -d /var/lib/mysql -M mysql
# cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf
# /usr/local/mysql/bin/mysql_install_db --user=mysql
# chown -R mysql /usr/local/mysql/var
# chgrp -R mysql /usr/local/mysql/.
# cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysql
# chmod 755 /etc/init.d/mysql
# echo "/usr/local/mysql/lib/mysql" >> /etc/ld.so.conf
# echo "/usr/local/lib" >>/etc/ld.so.conf
# ldconfig
# ln -s /usr/local/mysql/lib/mysql /usr/lib/mysql
# ln -s /usr/local/mysql/include/mysql /usr/include/mysql
# service mysql start
# /usr/local/mysql/bin/mysqladmin -u root password 123456 #指定MySQL的密码
# vim ~/.bashrc
#在最后一行加入为了更方便使用MySQL的命令工具,注销后生效。
PATH=$PATH:/usr/local/mysql/bin
编译安装Apache
# cd ~/na
# tar -zxf httpd-2.2.17.tar.gz
# cd httpd-2.2.17
# ./configure --prefix=/usr/local/apache --enable-headers \
--enable-mime-magic --enable-proxy --enable-rewrite --enable-ssl \
--enable-suexec --disable-userdir --with-included-apr --with-mpm=prefork \
--with-ssl=/usr --with-suexec-caller=nobody --with-suexec-docroot=/ \
--with-suexec-gidmin=100 \
--with-suexec-logfile=/usr/local/apache/logs/suexec_log \
--with-suexec-uidmin=100 --with-suexec-userdir=public_html
# make
# make install
# cd ..
# mkdir /usr/local/apache/domlogs
# mkdir /usr/local/apache/conf/vhosts
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-39787-3.html
是它自己撞伤“导弹”的
有没有需要票的