排序
NGINX日志切割
前言Nginx日志对于统计、系统服务排错很有用。Nginx日志主要分为两种:access_log(访问日志)和error_log(错误日志)。access.log 记录哪些用户,哪些页面以及用户浏览器,IP等访问信息;error.log ...
LINUX运维学习之综合架构篇——Ansible 批量管理服务(中)
1、ansible模块说明:yum模块 name --- 指定安装软件名称 state --- 指定是否安装软件 installed --- 安装软件 present latest absent --- 卸载软件 removed使用方法 ansible 172.16.1.31 -m yum...
Linux top命令详解 — 罗小黑
top 命令是Linux下常用的性能分析工具,能够实时显示各个进程的占用状况 {mtitle title='详解'/}第一行:系统时间 21:53:29、运行时间:up 8 day、当前连接数:1 user 、 负载均衡(uptime):...
Ansible
Ansible部署实验环境准备实验机4台,1台为ansible管理主机,3为被管理主机管理主机名称与IP地址:ansible-server,IP地址:192.168.0.24被管理主机名称与IP地址: web1,IP地址:192.168.0.26we...
Nginx 的配置文件 nginx.conf
Nginx 的配置文件 nginx.conf#user nobody; #主模块命令, 指定Nginx的worker进程运行用户以及用户组,默认由nobody账号运行 worker_processes 1; #指定Nginx要开启的进程数 error_log logs/err...
Nginx负载均衡
角色外网IP内网IP主机名LB0110.0.0.5172.16.1.5lb01web0110.0.0.7172.16.1.7web01web0210.0.0.8172.16.1.8web02web01:mkdir /html/www -p echo "xiaobai" > /html/www/index.html ...
centos7 防火墙firewall命令
基本使用启动:systemctl start firewalld 关闭:systemctl stop firewalld 查看状态:systemctl status firewalld 开机禁用:systemctl disable firewalld 开机启用:systemctl enable firewal...
守护进程服务在企业应用
1、守护进程多模块功能配置 sa sa_data.txt dev dev_data.txt dba dba_data.txt vim /etc/rsync.conf #添加以下信息 [backup] comment = "backup dir by oldboy" path = /backup [dba...
误操作yum导致error: rpmdb解决方法
今天碰到一个问题就是yum 安装软件时会出现error:rpmdb错误,原因就是rpm数据库损坏。错误: error: rpmdb: BDB0113 Thread/process 18967/139716328294400 failed: BDB1507 Thread died in Ber...
shell if语句
if 语句格式单分支结构#第一种 if <条件表达式> then 指令 fi #第二种 if <条件表达式>; then 指令 fi实例1#/bin/bash read -p "请输入两个整数:" a b if (( $a == $b )...




