ab命令

网站性能压力测试是服务器网站性能调优过程中必不可缺少的一环。只有让服务器处在高压情况下,才能真正体现出软件、硬件等各种设置不当所暴露出的问题。

性能测试工具目前最常见的有以下几种:ab、http_load、webbench、siege。今天我们专门来介绍ab。

ab是apache自带的压力测试工具。ab非常实用,它不仅可以对apache服务器进行网站访问压力测试,也可以对或其它类型的服务器进行压力 …

阅读更多

ansible

  1. 安装

yum -y install ansible

ansible –version

  1. 添加控制机器

ssh-copy-id -i .ssh/id_rsa.pub root@192.168.100.20

  1. 添加到hosts文件中

vim /etc/ansible/hosts

Ansible 通过设备列表以分组的方式添加到 /etc/ansible/hosts 文件来实现对设备的 …

阅读更多

apollo配置中心

1.下载 git clone git@gitcode.net:mirrors/ctripcorp/apollo.git

  1. 数据库配置 a.scripts/sql/apolloconfigdb.sql b.scripts/sql/apolloportaldb.sql 3.修改build.sh
# apollo config db info …

阅读更多

bashrc

# .bashrc

# Source global definitions

if [ -f /etc/bashrc ]; then

        . /etc/bashrc

fi

# User specific aliases and functions

#alias cdlog='cd /home/work/var/log/`date +%Y%m%d` ' …

阅读更多