场景: 主从服务器项目文件实时双向同步(参考:http://www.xcx1024.com/ArtInfo/3026389.html) 一.rsync安装 yum在线: yum install -y rsync 离线: cd /usr/local wget https://download.samb ...
分类:
其他好文 时间:
2020-01-19 19:23:53
阅读次数:
82
本文 Linux 环境 centos 6.8 (此处是单独一台虚拟机安装 和 下面两篇文章 主从 哨兵安装的路径不一样) 下载 进入 https://redis.io/ 点击 下载5.0.7 将tar包放在 /opt 目录下 解压 tar -zxvf redis-5.0.7.tar.gz -C /u ...
分类:
其他好文 时间:
2020-01-19 00:23:17
阅读次数:
166
参考文档:https://www.linuxidc.com/Linux/2017-10/147646.htm[root@centos6~]#yum-yinstallxorg*[root@centos6~]#yum-ygroupinstall"XWindowSystem"[root@centos6~]#yum-ygroupinstallDesktop[root@centos6~]#yum-ygrou
分类:
系统相关 时间:
2020-01-18 19:16:23
阅读次数:
259
安装centos直接装在VM虚拟机中,内存1G,直接把我的IP地址配置好了【之前用过centos6.5手工配置的】,等待安装成功ping一下百度,没有问题 1、检查内核, uname -r 2、如果低于3.10,执行升级命令 yum update 3、安装需要的软件包。执行下面命令 yum inst ...
分类:
其他好文 时间:
2020-01-18 00:48:32
阅读次数:
96
打开/etc/grub.conf文件 在内核后边添加vga=ask 开机后查看支持的分辨率输入前面的16进制代码如333 进入终端后将vag=ask修改为vga=0x333 ...
分类:
其他好文 时间:
2020-01-17 13:37:56
阅读次数:
173
nginx 使用 一、概述 有一个域名,有一台服务器,有多个服务。 为了可以通过域名来访问 服务器上的不同服务,而不将端口 对外 暴露。 采用 nginx 来进行 转发。 二、nginx 安装 不同的操作系统上,需要安装不同的包。 这里以在 centos6.5 上安装为例。 在 "官网下载" 最新的 ...
分类:
其他好文 时间:
2020-01-15 19:50:25
阅读次数:
64
系统优化 关闭系统安全服务 iptables Centos6防火墙 临时关闭 永久关闭 firewalled Centos7防火墙 临时关闭 永久关闭 SELinux安全服务 临时关闭 永久关闭 替换第7行的 为`disabled` 或者直接输入命令执行 字符集优化 临时调整 LANG="en_US ...
分类:
系统相关 时间:
2020-01-15 10:08:19
阅读次数:
94
1.下载repo文件 方法一 http://mirrors.163.com/.help/CentOS7-Base-163.repo 方法二:Linux服务器直接下载: wget –P /home/backup/ http://mirrors.163.com/.help/CentOS6-Base-16 ...
分类:
其他好文 时间:
2020-01-14 22:12:46
阅读次数:
119
1.CentOS6 (1)以rsync为例 bash !/bin/bash chkconfig: 2345 20 80 description: rsync.sh function start_rsync { if [ ! s /var/run/rsyncd.pid ];then /usr/bin/ ...
分类:
其他好文 时间:
2020-01-14 20:20:43
阅读次数:
236
1、centos6的网卡重启方法:service network restart centos7的网卡重启方法:systemctl restart network 2、DNS配置文件:cat /etc/resolv.conf设置主机和IP绑定信息:cat /etc/hosts设置主机名:cat /e ...
分类:
其他好文 时间:
2020-01-14 09:41:03
阅读次数:
79