Browse Source

日志用户

hatim 5 years ago
parent
commit
f4e3c0ab39
1 changed files with 11 additions and 3 deletions
  1. 11 3
      规范/运维/部署环境/Ubuntu环境配置.md

+ 11 - 3
规范/运维/部署环境/Ubuntu环境配置.md

@@ -20,14 +20,22 @@
 
 3. 添加IP访问拦截
 
-   ```
+   ```shell
    iptables -I INPUT -s 172.16.0.246 -j DROP
    ```
 
 4. 解除IP访问拦截
 
-   ```
+   ```shell
    iptables -D INPUT -s 172.16.0.246 -j DROP
    ```
 
-5. 
+5. 添加日志查看用户
+
+   ```shell
+   useradd -m log_watcher -d /data/log -s /bin/bash
+   passwd log_watcher
+   wisdomcity@log
+   ```
+
+