useradd -s /sbin/nologin -M nginx
时间: 2024-04-25 18:24:54 浏览: 160
linux 环境下的nginx
这个命令是用来创建一个名为nginx的用户,并且指定了用户的shell为/sbin/nologin,表示该用户无法登录系统。同时,使用了-M参数,表示不创建用户的家目录。\[1\]\[2\]
#### 引用[.reference_title]
- *1* *3* [nginx笔记—安装配置](https://blog.csdn.net/m0_50744953/article/details/112302165)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Nginx的安装与配置](https://blog.csdn.net/qq_45538179/article/details/122378881)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文