Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
ouankou
V2EX  ›  Linux

请教Linux下关于Nginx网站目录写入权限的问题

  •  
  •   ouankou ·
    ouankou · Mar 22, 2013 · 6019 views
    This topic created in 4832 days ago, the information mentioned may be changed or developed.
    最近用Jekyll和Nginx搭了个博客,更新时有两种方式。

    ssh登录VPS后:
    1. Jekyll生成_site后,用rsync覆盖到/usr/share/nginx/html(网站根目录)。
    2. Jekyll直接生成到/usr/share/nginx/html。

    环境:Debian 6.0,普通非root用户。

    方式1在第二步rsync写入时需要sudo权限,但方式2就可以直接写入进去。
    请问大家这是什么原因呢?
    1 replies    1970-01-01 08:00:00 +08:00
    ouankou
        1
    ouankou  
    OP
       Mar 22, 2013
    呃……刚发完帖子又重新试了试,居然莫名其妙都不需要sudo了,昨天折腾了一晚上没成功。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1149 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:44 · PVG 07:44 · LAX 16:44 · JFK 19:44
    ♥ Do have faith in what you're doing.