安装lamp前务必做以下动作

 一 安装前务必做以下动作
(1)使用yum 进行安装
yum install ntp  gcc gcc-c++ gcc-g77 flex bison autoconf automake bzip2-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel kernel
(2)定时校正服务器时钟,定时与中国国家授时中心授时服务器同步
crontab -e
加入一行:
* * */1 * * ntpdate 210.72.145.44
 
需要安装的软甲
(1) gd2
 
tar xzvf /usr/local/src/gd-2.0.34.tar.gz 
cd /usr/local/src/gd-2.0.34
./configure --prefix=/usr/local/gd
make
make install
(2) libxml2  
tar xzvf /usr/local/src/libxml2-2.7.3.tar.gz
cd /usr/local/src/libxml2-2.7.3
./configure --prefix=/usr/local/libxml2
make
make install
(3) libmcrypt
tar xzvf /usr/local/src/libmcrypt-2.5.8.tar.gz
cd /usr/local/src/libmcrypt-2.5.8
./configure --prefix=/usr/local/libmcrypt
make
make install
(4) Apache日志截断程序
 
tar xzvf /usr/local/src/cronolog-1.7.0-beta.tar.gz
cd /usr/local/src/cronolog-1.7.0
./configure --prefix=/usr/local/cronolog
make
make install
(5)
tar xzvf /usr/local/src/curl-7.17.1.tar.gz
cd /usr/local/src/curl-7.17.1
./configure --prefix=/usr/local/curl
make
make install
 

你可能感兴趣的:(安装,服务器,local,libxml2,libmcrypt,gd2)