文章分类 - linux
摘要:创建www用户组和用户 id wwwid: www: no such usergroupadd wwwgroupadd: group 'www' already exists//开始添加www用户useradd -g www -s /sbin/nologin www find查找文件 1、查找/va
阅读全文
摘要:一、将域名取出并根据域名进行计数排序处理http://www.etiantian.org/index.htmlhttp://www.etiantian.org/1.htmlhttp://post.etiantian.org/index.htmlhttp://mp3.etiantian.org/ind
阅读全文
摘要:SSH KEY免密码登录统一备份方案 [环境]CentOS release 5.8 (Final)2.6.18-308.el5中心分发服务器A:Center-A:10.0.0.56接收节点服务器B:Client-B:10.0.0.57接收节点服务器C:Client-C:10.0.0.58######
阅读全文
摘要:一、简介 1. 定义 NFS (Network File System),最初由 Sun Microsystems 于1984年开发的分布式系统协议,允许客户端上的用户通过网络访问文件,其方式与访问本地存储的方式类似。基于 Open Network Computing Remote Procedur
阅读全文
摘要:一、安装rsync服务端 1.查看是否安装rsync ps -ef | grep rsync系统一般默认已安装,安装方法:yum -y install rsync(没有亲自验证)。 2.添加配置文件 rsync没有默认配置文件,需要手动创建/etc/rsyncd.conf 服务端配置文件/etc/r
阅读全文
摘要:简介 Linux 上常用的压缩/解压工具,介绍了zip、rar、tar的使用。 文件打包和压缩 Linux 上的压缩包文件格式,除了 Windows 最常见的*.zip、*.rar、.7z 后缀的压缩文件,还有 .gz、.xz、.bz2、.tar、.tar.gz、.tar.xz、tar.bz2 文件
阅读全文
摘要:今天在CentOS系统执行yum命令时出现错误提示: Loaded plugins: fastestmirrorSetting up Install ProcessLoading mirror speeds from cached hostfileYumRepo Error: All mirror
阅读全文
摘要:一、用ssh-keygen创建公钥 haifeng@haifeng-EX38-DS4:/$ ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/home/haife
阅读全文
摘要:1. pkill方式# pkill -u ttlsa2. killall方式# killall -u ttlsa3. ps方式ps列出ttlsa的pid,然后依次kill掉,比较繁琐.# ps -ef | grep ttlsa | awk '{ print $2 }' | sudo xargs ki
阅读全文
摘要:curl -H 'Host:www.test.com' http://127.0.0.1/1.php curl -x 127.0.0.1 http://www.test.com/1.php
阅读全文
摘要:快速复制文件夹: getfacl chinajm_qa8 | setfacl --set-file=- chinajm_qa81 获取文件的ACL getfacl hhh 更改文件的ACL,添加一个用户的权限 setfacl -m u:omc:rwx hhh setfacl -m g:omc:r-w
阅读全文
摘要:https://blog.csdn.net/zhujing16/article/details/88677253 CentOS7安装VMware Tools的具体步骤如下:一、准备工作 菜单栏》安装VMware Tools 点击VMware菜单栏【虚拟机】,选择【安装VMware Tools】;如果
阅读全文
摘要:修改CentOS默认yum源为mirrors.163.com 1、首先备份系统自带yum源配置文件/etc/yum.repos.d/CentOS-Base.repo 1 [root@localhost ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum
阅读全文
摘要:1.查询块设备及mount位置[root@slave143 ~]# lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTsr0 11:0 1 3.6G 0 rom #type=rom表示sr0为 cdrom设备,目前没有mountsda 8:0 0 100G 0
阅读全文
摘要:使用awk批量杀进程的命令: ps -ef | grep firefox | grep -v grep | awk '{print "kill -9 "$2}'|sh #列出了当前主机中运行的进程中包含firefox关键字的进程 ps -ef | grep firefox | grep -v gre
阅读全文
摘要:第一种 samba共享 1、安装samba:可以先检查下是否已经安装:rpm -qa | grep samba,没有的话自己安装下,这里介绍下基于RPM包的一种在线安装模式yum yum是一种快速安装模式,它会自动解决软件安装时的依赖问题并自动去特定的服务器下载相应的软件进行安装,安装命令:yum
阅读全文
摘要:更新线上3台web nginx配置(53、54、77)1、ssh到Master(192.168.101.52)2、修改/srv/salt/nginx/vhosts/路径下的配置文件,保存3、执行刷新state配置,将同步修改minion web服务器的指定配置文件# salt -N 'webgrou
阅读全文
posted @ 2018-01-30 14:15
飞鹰之歌
摘要:mysql高可用 双主复制+keepalived ·双主+keepalived架构 两个MYSQL Server互相将对方作为自己的Master ·方案描述: 本方案中keepalived实现故障转移,服务器单点写入,当网络、mysql服务、keepalived服务、服务器出现故障后,会自动切换到b
阅读全文
posted @ 2018-01-27 10:26
飞鹰之歌
摘要:使用rsync服务从Linux到Windows进行远程备份 67机器使用cwrsync实现windows定时同步,将61上所有备份数据(线上lvs、web、mysql服务器备份数据),并设置定时任务每天备份,提高备份冗余,增强数据安全性 rsync官网下载http://rsync.samba.org
阅读全文
posted @ 2018-01-27 10:19
飞鹰之歌
摘要:LVS+keepalived能很好的实现:系统高可用性 、系统可扩展性 、负载均衡能力;LVS提供负载均衡,keepalived提供健康检查,故障转移,提高系统的可用性!采用这样的架构以后很容易对现有系统进行扩展。 LVS目前有三种IP负载均衡技术(VS/NAT、VS/TUN和VS/DR),此文档采
阅读全文
posted @ 2018-01-27 10:10
飞鹰之歌

浙公网安备 33010602011771号