2

Nginx创建发布站点用户

 1 year ago
source link: https://syxdevcode.github.io/2022/11/16/Nginx%E5%88%9B%E5%BB%BA%E5%8F%91%E5%B8%83%E7%AB%99%E7%82%B9%E7%94%A8%E6%88%B7/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Nginx创建发布站点用户

2022-11-16Nginx

252 1 分钟

# 新建用户
useradd lims

# 给用户设置密码
passwd lims

# 设置相应的文件夹的用户名和用户组
chown -R lims:lims /opt/nginx/www

# 给文件夹赋权
chmod -R 775 /opt/nginx/www

# 查看目录的所属者和操作权限
ls -la /opt/nginx/www

# 到 sudoers 文件中增加新的用户,否则无法使用 sudo 命令
vim /etc/sudoers ====> 增加一行与 ROOT 相同的配置,然后输入 wq! 强制强制退出

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK