소스 검색

日志用户

hatim 5 년 전
부모
커밋
f4e3c0ab39
1개의 변경된 파일11개의 추가작업 그리고 3개의 파일을 삭제
  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
+   ```
+
+