服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服务器之家 - 服务器系统 - Centos - Centos5.2配置LAMP与Centos5.3配置LAMP(36)

Centos5.2配置LAMP与Centos5.3配置LAMP(36)

2019-10-11 14:12Centos教程网 Centos

ft_min_word_len=2 运行以下命令即可启动 MySQL 服务器: # /etc/rc.d/init.d/mysqld start //启动 MySQL # bin/mysqladmin -u root password password_for_root # service mysqld stop //关闭 My

ft_min_word_len=2 
运行以下命令即可启动 MySQL 服务器: 
# /etc/rc.d/init.d/mysqld start //启动 MySQL 
# bin/mysqladmin -u root password "password_for_root" 
# service mysqld stop //关闭 MySQL 

8. 编译安装 Apache 
# cd /usr/local/src 
# wget http://www.ip97.com/apache.org/httpd/httpd-2.2.6.tar.gz 
# tar zxvf httpd-2.2.6.tar.gz 
# cd httpd-2.2.6 
先依次安装apr和apr-util 
# cd srclib/apr 
# CHOST="i686-pc-linux-gnu" CFLAGS="-O3 -msse2 -mmmx -Wall -W -mfpmath=sse -mcpu=pentium4 -march=pentium4 -pipe -fomit-frame-pointer" CXXFLAGS="-O3 -msse2 -mmmx -Wall -W -mfpmath=sse -funroll-loops -mcpu=pentium4 -march=pentium4 -pipe -felide-constructors -fno-exceptions -fno-rtti -fomit-frame-pointer" ./configure --prefix=/usr/local/apr --enable-threads --enable-other-child --enable-static 
# make && make install 
# cd ../apr-util 
# CHOST="i686-pc-linux-gnu" CFLAGS="-O3 -msse2 -mmmx -Wall -W -mfpmath=sse -mcpu=pentium4 -march=pentium4 -pipe -fomit-frame-pointer" CXXFLAGS="-O3 -msse2 -mmmx -Wall -W -mfpmath=sse -funroll-loops -mcpu=pentium4 -march=pentium4 -pipe -felide-constructors -fno-exceptions -fno-rtti -fomit-frame-pointer" ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/ --with-mysql=/usr/local/mysql 
# make && make install 
cd /usr/local/src/httpd-2.2.6 
# CHOST="i686-pc-linux-gnu" CFLAGS="-O3 -msse2 -mmmx -Wall -W -mfpmath=sse -mcpu=pentium4 -march=pentium4 -pipe -fomit-frame-pointer" CXXFLAGS="-O3 -msse2 -mmmx -Wall -W -mfpmath=sse -funroll-loops -mcpu=pentium4 -march=pentium4 -pipe -felide-constructors -fno-exceptions -fno-rtti -fomit-frame-pointer" ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --with-mysql=/usr/local/mysql --enable-cache --enable-file-cache --enable-mem-cache --enable-disk-cache --enable-static-support --enable-static-htpasswd --enable-static-htdigest --enable-static-rotatelogs --enable-static-logresolve --enable-static-htdbm --enable-static-ab --enable-static-checkgid --disable-cgid --disable-cgi --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --enable-ssl --with-ssl=/usr/include/openssl --with-pcre 

延伸 · 阅读

精彩推荐