windsofye

请问一下, mbp 当前用户是管理员为什么还是没有权限 Unable to save /Library/WebServer/Documents/hello. PHP

  •  1
     
  •   windsofye · Sep 19, 2018 · 2575 views
    This topic created in 2971 days ago, the information mentioned may be changed or developed.
    2 replies  •  2018-09-20 17:49:41 +08:00
    tianpei
    tianpei
    Sep 20, 2018
    1
    因为你不是当前目录的属主。
    操作时加 sudo,保存好文件之后记得把文件权限改好:
    sudo chmod -R 644 /Library/WebServer/Documents

    还有,请善用搜索引擎
    windsofye
    windsofye
    OP
    Sep 20, 2018
    2
    @tianpei 我是 sublime 直接保存在该路径下,报错,其他的方式可以做到只是很奇怪为什么我是管理员也不行呢?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   819 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 18:26 · PVG 02:26 · LAX 10:26 · JFK 13:26
    ♥ Do have faith in what you're doing.