linux_ftp+nginx图像服务器搭建

创建用户并设置访问权限
$ cd /home/ftpuser/
$ mkdir /home/ftpuser/www
$ mkdir /home/ftpuser/www/images
$ chmod -R 777 /home/ftpuser

/usr/local/nginx/conf/nginx.conf # 配置文件

server {
    listen       80;
    server_name  image.beidiancloud.com;

    location / {
        root   /home/ftpuser/www;
        index  index.html index.htm;
    }
}

image

posted @ 2025-12-25 15:01  姬雨晨  阅读(2)  评论(0)    收藏  举报