LAMP环境的搭建实例
7、为了文便启动mysql服务,我们把它加到系统服务当中 [root@centos5 mysql]# cp /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysqld 把mysql 添加到服务项,并随开机启动 [root@centos5 mysql]# chkconfig --add mysqld [root@centos5 mysql]# chkconfig mysqld on 这样我们就可以方便的用 service mysqld start 来启动mysqld服务了!! 三、PHP安装 在安装PHP之前,先把一些必备的组件安装好,要注意安装顺序!反正GD一般要最后安装。 1、freetype安装 [root@centos5 freetype-2.4.6]# ./configure --prefix=/usr/local/freetype [root@centos5 freetype-2.4.6]# make;make install 2、jpeg安装 [root@centos5 jpeg-6b]# ./configure --prefix=/usr/local/jpeg [root@centos5 jpeg-6b]# make [root@centos5 jpeg-6b]# make install .... .... /usr/bin/install: cannot create regular file `/usr/local/jpeg/bin/cjpeg.1': No such file or directory make: *** [install] Error 1 安装时候出现了错误,这个错误是比较明显的,根据上面的提示可以知道,找不到jpeg/bin 这个目录,既然没有,我们就自己创建: [root@centos5 jpeg-6b]# make -p /usr/local/jpeg/bin 下面我们继续安装: [root@centos5 jpeg-6b]# make install .... .... /usr/bin/install: cannot create regular file `/usr/local/jpeg/man/man1/cjpeg.1': No such file or directory make: *** [install] Error 1 与上面一样: [root@centos5 jpeg-6b]# make -p /usr/local/jpeg/man/man1 下面我们继续安装就OK了!! [root@centos5 jpeg-6b]# make install 3、libpng安装 [root@centos5 libpng-1.2.8-config]# ./configure --prefix=/usr/local/libpng [root@centos5 libpng-1.2.8-config]# make [root@centos5 libpng-1.2.8-config]# make install (编辑:滁州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |