您的位置:首页 > 运维架构 > Nginx

安装nginx并搭建nginx图片服务器

2016-06-22 14:13 573 查看
1.安装所需的包:yum install -y apr* autoconf automake bison bzip2 bzip2* cloog-ppl compat* cpp curl curl-develfontconfig fontconfig-devel freetype freetype* freetype-devel gcc gcc-c++gtk+-devel gd gettext gettext-devel glibc kernel kernel-headers keyutilskeyutils-libs-devel krb5-devel libcom_err-devel libpng libpng-devel libjpeg*libsepol-devel libselinux-devel libstdc++-devel libtool* libgomp libxml2libxml2-devel libXpm* libtiff libtiff* make mpfr ncurses* ntp opensslopenssl-devel patch pcre-devel perl php-common php-gd policycoreutils telnett1lib t1lib* nasm nasm* wget zlib-devel gcc gcc-c++autoconf automake zlib zlib-devel openssl openssl-devel pcre-devel 2.下载Nginx:http://nginx.org/en/download.html3.解压与安装:tar -zxvfnginx-1.9.2.tar.gzcd nginx-1.9.2/./configuremake && make install缺什么包就yum补什么包,然后重新./configure 4.启动nginx:/usr/local/nginx/sbin/nginx -c /usr/local/src/nginx-1.9.2/conf/nginx.conf查看端口有没有起来:netstat-anput|grep 80设置端口在/usr/local/src/nginx-1.9.2/conf/nginx.conf文件里面

搭建nginx图片服务器: http://blog.csdn.net/csdn_lqr/article/details/53334583
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  nginx