RedHat/CentOs系统搭建lnmp环境
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-03-31
1、用yum安装系统lib库 yum -y install gcc gcc-c autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers2、所需要的件包 libiconv-1.13.1.tar.gzmcrypt-2.6.8.tar.gz mysql-5.1.31.tar.gz pcre-7.9.tar.gz php-5.2.13-fpm-0.5.13.diff.gz php-5.2.13.tar.gz libmcrypt-2.5.8.tar.gz mhash-0.9.9.9.tar.gz nginx-1.0.4.tar.gz pcre-8.01.tar.gz memcache-2.2.5.tgz eaccelerator-0.9.6.1.tar.bz2 PDO_MYSQL-1.0.2.tgz ImageMagick.tar.gz imagick-2.3.0.tgz 3、安装mysql cd /usr/local/src echo ''install mysql...'' sleep 3 cd /usr/local/src groupadd mysql useradd -g mysql -s /sbin/nologin mysql tar xzvf mysql-5.1.31.tar.gz cd mysql-5.1.31/ ./configure --prefix=/usr/local/mysql --with-extra-charset=all --without-isam --exec-prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/var --sysconfdir=/usr/local/mysql/etc --with-tcp-port=3306 --with-innodb --with-partition make -j8 make install cd /usr/local/mysql/ chown -R mysql . chgrp -R mysql . cd /usr/local/src/mysql-5.1.31/support-files cp my-medium.cnf /etc/my.cnf sed -i ''s/skip-federated/#skip-federated/g'' /etc/my.cnf chown -R mysql:mysql var chmod 755 var cd /usr/local/src/sql-5.1.31/support-files/ cp mysql.server /etc/init.d/mysqld chmod 755 /etc/init.d/mysqld chkconfig --add mysqld 拥有帝国一切,皆有可能。欢迎访问phome.net chkconfig mysqld on rm -rf /usr/local/mysql/var/* /usr/local/mysql/bin/mysql_install_db --user=mysql service mysqld restart echo ''mysql install suecc!'' 执行sh instal_mysql.sh mysql就安装好了. tar zxvf libiconv-1.13.1.tar.gz cd libiconv-1.13.1/ ./configure --prefix=/usr/local make make install cd ../ tar zxvf libmcrypt-2.5.8.tar.gz cd libmcrypt-2.5.8/ ./configure make make install /sbin/ldconfig cd libltdl/ ./configure --enable-ltdl-install make make install cd ../../ tar zxvf mhash-0.9.9.9.tar.gz cd mhash-0.9.9.9/ ./configure make make install cd ../ ln -s /usr/local/lib/libmcrypt.la /usr/lib/libmcrypt.la ln -s /usr/local/lib/libmcrypt.so /usr/lib/libmcrypt.so ln -s /usr/local/lib/libmcrypt.so.4 /usr/lib/libmcrypt.so.4 ln -s /usr/local/lib/libmcrypt.so.4.4.8 /usr/lib/libmcrypt.so.4.4.8 ln -s /usr/local/lib/libmhash.a /usr/lib/libmhash.a ln -s /usr/local/lib/libmhash.la /usr/lib/libmhash.la ln -s /usr/local/lib/libmhash.so /usr/lib/libmhash.so ln -s /usr/local/lib/libmhash.so.2 /usr/lib/libmhash.so.2 ln -s /usr/local/lib/libmhash.so.2.0.1 /usr/lib/libmhash.so.2.0.1 ln -s /usr/local/bin/libmcrypt-config /usr/bin/libmcrypt-config tar |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于RedHat/CentOs系统搭建lnmp环境的所有评论