1、前提准备


yum -y install  yum-fastestmirror cairo cairo-devel cgilib cpp e2fsprogs-devel flex fontconfig fontconfig-devel freetype freetype-demos freetype-devel freetype-utils gcc gcc-c++ gd gd-devel glib glib2-devel glibc glibc-common ImageMagick ImageMagick-deve krb5-devel libart_lgpl libart_lgpl-devel libcgi libjpeg-devel libpangocairo libpng libpng10 libpng10-devel libpng-devel  libtool libxml2 libxml2-devel ncurses ncurses-devel openssl-devel pango pango-devel php-gd pixman pkg-config zlib zlib-devel



echo " /usr/bin/rdate -s time-a.nist.gov" >> /etc/rc.local   //执行rdate指令,向其他主机询问系统时间并显示出来 –S是说同步别的服务器时间 –P就只是显示而已,此步骤如果做了NTP略