随笔分类 - 运维
摘要:[root@test ~]# pvcreate /dev/sdc Physical volume "/dev/sdc" successfully created. [root@test ~]# vgcreate centos_home /dev/sdc Volume group "centos_ho
阅读全文
摘要:virsh qemu-monitor-command redis-slave-1.6 --hmp --cmd info balloonvirsh qemu-monitor-command redis-slave-1.6 --hmp --cmd balloon 28096virsh qemu-moni
阅读全文
摘要:问题:rpmbuild打包报错:Segmentation fault,实际上已经打包成功。 下面不执行了。 1、加sudo /usr/bin/rpmbuild --define '_topdir '`pwd` -ba SPECS/xxx.spec 2、sudo 问题:sorry, you must
阅读全文
摘要:ufw disable ufw enable ufw status sudo ufw statussudo ufw allow from 10.7.0.0/16sudo ufw status
阅读全文
摘要:1、把zabbix_agents_3.0.4.win.zip 解压在C盘下。2、导出windows性能计数器已管理员的方式运行命令提示符输入以下命令:typeperf -qx > c:\windows-item.txt此时C盘下出现windows-item.txt文件。3、 安装zabbix-age
阅读全文
摘要:#xtrabackup备份: #备份/data/mysql_backup/percona-xtrabackup-2.4.9-Linux-x86_64/bin/xtrabackup --defaults-file=/etc/my.cnf --backup --target-dir=/data/back
阅读全文
摘要:rewrite ^/$ $scheme://www.xxx.com$request_uri permanent;rewrite ^/.*\.html$ $scheme://www.xxx.com$request_uri permanent;
阅读全文
摘要:简介 Xtrabackup是由percona提供的mysql数据库备份工具,据官方介绍,这也是世界上惟一一款开源的能够对innodb和xtradb数据库进行热备的工具。特点: (1)备份过程快速、可靠; (2)备份过程不会打断正在执行的事务; (3)能够基于压缩等功能节约磁盘空间和流量; (4)自动
阅读全文
摘要:1.1 nfs01主机配置 1.1.1 安装rsync服务 1.安装rsync [root@nfs ~]# yum install rsync -y 2.配置rsync #创建密码表 [root@nfs01 ~]# echo "123456" > /etc/rsync.password [root@
阅读全文
摘要:1.1 backup主机配置1.1.1 安装rsync服务1.安装rsync [root@backup ~]# yum install rsync -y 2.配置rsync [root@backup ~]# vi /etc/rsyncd.conf uid = www gid = www port =
阅读全文
摘要:mysqldump -uroot -p -A -B -R --master-data=2 --events --single-transaction|gzip > /opt/all.sql.gz
阅读全文
摘要:rpm -ivh http://repo.saltstack.com/yum/redhat/salt-repo-latest-3.el7.noarch.rpm
阅读全文
摘要:LB01(nginx+keepalived) 192.168.56.11 VIP:192.168.56.21LB02(nginx+keepalived) 192.168.56.12 WEB1 192.168.56.13 LNMP RS1WEB2 192.168.56.14 LMMP RS2 3.7
阅读全文
摘要:centos7的rabbitmq升级到3.7.10集群#卸载[root@linux-node1 ~]# systemctl stop rabbitmq-server [root@linux-node1 ~]# yum remove rabbitmq-server -y [root@linux-nod
阅读全文
摘要:#centos7部署rabbitmq集群 [root@linux-node1 yum.repos.d]# yum install rabbitmq-server -y[root@linux-node1 yum.repos.d]# systemctl enable rabbitmq-server.se
阅读全文
摘要:master:server-id:3slave:server-id:4master开启binlog show variables like 'log_bin';#master授权:grant replication slave on *.* to 'rep'@'192.168.1.%' identi
阅读全文
摘要:]# netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'TIME_WAIT 260CLOSE_WAIT 913FIN_WAIT1 9FIN_WAIT2 129ESTABLISHED 1683
阅读全文
摘要:1.1 nfs01主机配置 1.1.1 安装nfs-utils服务 1.安装 [root@nfs01 ~]# yum install -y nfs-utils rpcbind [root@nfs01 ~]# yum install -y nfs-utils rpcbind 2.配置nfs [root
阅读全文
摘要:解决413 Request Entity Too Large 修改nginx配置 这是最简单的一个做法,着报错原因是nginx不允许上传配置过大的文件,那么件把nginx的上传大小配置调高就好。 1、打开nginx主配置文件nginx.conf,一般在/usr/local/nginx/conf/ng
阅读全文
摘要:#安装php的yaf模块,参考 https://www.cnblogs.com/shifu204/p/6743578.html https://www.cnblogs.com/jiqing9006/p/9646872.html CentOS 用 phpize 安装 PHP 扩展出现 Can't find PHP headers in /usr/include/php 原因:https://wa...
阅读全文