设为首页 加入收藏

TOP

详细的最新版fastdfs单机版搭建(五)
2019-09-17 18:19:36 】 浏览:99
Tags:详细 最新版 fastdfs 单机版 搭建
    [root@fastdfs2 fdfs]# cd /opt

                     [root@fastdfs2 opt]# yum -y install zlib zlib-devel openssl openssl--devel pcre pcre-devel

              解压nginx

                     [root@fastdfs2 opt]# tar -zxvf nginx-1.13.12.tar.gz

              安装nginx并添加fastdfs模块

                     [root@fastdfs2 opt]# cd nginx-1.13.12

                     [root@fastdfs2 nginx-1.13.12]# ./configure --prefix=/usr/local/nginx --add-module=/usr/local/fastdfs-nginx-module-master/src

                     [root@fastdfs2 nginx-1.13.12]# make

                     [root@fastdfs2 nginx-1.13.12]# make install

              检查nginx模块

                     [root@fastdfs2 nginx-1.13.12]# cd /usr/local/nginx/sbin/

                     [root@fastdfs2 sbin]# ./nginx -V

nginx version: nginx/1.13.12
uilt by gcc 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)
configure arguments: --prefix=/usr/local/nginx --add-module=/usr/local/fastdfs-nginx-module-master/src

                     已经把fastdfs模块添加进去了。

              配置nginx配置文件

                     [root@fastdfs2 sbin]# cd /usr/local/nginx/conf

                     [root@fastdfs2 conf]# vi nginx-fdfs.conf

                     内容如下,ip注意改成自己的:

events {
    use epoll;

    worker_connections  1024;
}
http {
    server {
        listen       80;
        server_name  192.168.1.207;

        location /group1/M00/{
                #root /home/FastDFS/fdfs_storage/data;
                ngx_fastdfs_module;
        }
    }
    server {
        listen 8888;
    server_name 192.168.1.207;
        location / {
            root   html;
            index  index.html index.htm;
        }
    }
}
View Code

  启动nginx

               &n

首页 上一页 2 3 4 5 6 下一页 尾页 5/6/6
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇浅识微服务架构 下一篇领域驱动单元测试

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目