学会偷懒,并懒出效率

标签:Nginx

共 1 篇文章

Centos搭建Nginx1.10.1 + php5.6.25开发环境

准备工作

下载的源码包都放这里

 mkdir -p /opt/modules/src
 cd /opt/modules/src

安装完CentOS后,先”yum update”,升级下CentOS。
然后运行以下命令,以便安装所需要的程序以及开发库。

yum -y install wget unzip lrzsz git 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 nss_ldap libmcrypt libmcrypt-devel pcre-devel openldap openldap-devel openldap-clients openldap-servers vim-common vim-enhanced gmp-devel pspell-devel libtool-ltdl-devel

yum -y install patch gcc-g77 flex bison file libtool libtool-libs  kernel-devel libpng10 libpng10-devel gd gd-devel libevent libevent-devel vim-minimal nano sendmail fonts-chinese gettext gettext-devel mhash-devel mcrypt-devel

添加用户

groupadd www
useradd -g www -s /sbin/nologin www
阅读全文