现在,已经可以全局使用mysql命令了
到此,mysql的安装/配置就完成了。
//////////////////////////////////////////////////////////////////
/etc/init.d/mysqld start 启动Mysql
/etc/init.d/mysqld restart 重启Mysql
/etc/init.d/mysqld stop 关闭Mysql
//////////////////////////////////////////////////////////////////
4、编译安装、配置Apache
tks-gp Downloads # tar zxf apr-1.4.6.tar.gz
tks-gp Downloads # cd apr-1.4.6/
/*编译安装apr*/
tks-gp apr-1.4.6 # ./configure –prefix=/usr/local/apr
tks-gp apr-1.4.6 # make
tks-gp apr-1.4.6 # make install
tks-gp apr-1.4.6 # cd ..
tks-gp Downloads # tar zxf apr-util-1.4.1.tar.gz
tks-gp Downloads # cd apr-util-1.4.1/
/*编译安装apr-util*/
tks-gp apr-util-1.4.1 # ./configure –prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config
tks-gp apr-util-1.4.1 # make
tks-gp apr-util-1.4.1 # make install
tks-gp apr-util-1.4.1 # cd ..
tks-gp Downloads # tar zxf apr-iconv-1.2.1.tar.gz
tks-gp Downloads # cd apr-iconv-1.2.1/
/*编译安装apr-iconv*/
tks-gp apr-iconv-1.2.1 # ./configure –with-apr=/usr/local/apr/bin/apr-1-config
tks-gp apr-iconv-1.2.1 # make
tks-gp apr-iconv-1.2.1 # make install
tks-gp apr-iconv-1.2.1 # cd ..
tks-gp Downloads # tar zxf httpd-2.4.1.tar.gz
tks-gp Downloads # cd httpd-2.4.1/
tks-gp httpd-2.4.1 # ./configure –prefix=/usr/local/apache2
–enable-module=so –enable-module=rewrite
–with-apr=/usr/local/apr/bin/apr-1-config
–with-apr-util=/usr/local/apr-util/bin/apu-1-config –with-libxml2
/*
* –prefix=/usr/local/apache2 #设置apache安装目录
* –enable-module=so #so模块用来提供 DSO 支持的 apache 核心模块
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-32317-5.html