allowoverride all nginx_override和new_override wamp(3)

电脑杂谈  发布时间:2017-04-06 10:09:28  来源:网络整理

--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

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...