分类 安全 中的文章

inotify+rsync实现实时同步

1.5.6.1  修改输出的日期格式 2.2.2.1  inotifywait和inotifywatch的作用: 目录 1.1 什么是实时同步:如何实现实时同步 要利用监控服务(inotify),监控同步数据服务器目录中信息的变化 发现目录中数据产生变化,就利用rsync服务推送到备份服务器上 1.2 实现实时同步的方法  inotify+rsync 方式实现数据……

阅读全文

高并发场景 LVS 安装及高可用实现

1.1 负载均衡介绍 1.1.1 负载均衡的妙用  负载均衡(Load Balance)集群提供了一种廉价、有效、透明的方法,来扩展网络设备和服务器的负载、带宽、增加吞吐量、加强网络数据处理能力、提高网络的灵活性和可用性。 ü 单台计算机无法承受大规模的并发访问或数据流量了……

阅读全文

inotify+rsync实现实时同步

第1章 数据实时同步介绍 1.1 什么是实时同步:如何实现实时同步 A. 要利用监控服务(inotify),监控同步数据服务器目录中信息的变化 B. 发现目录中数据产生变化,就利用rsync服务推送到备份服务器上 1.2 实现实时同步的方法  inotify+rsync 方式实现数据同步  sersync 方式实现实时数据同步 1.2.1……

阅读全文

全站HTTPS简单实践

第一个里程碑:创建https证书 1 [root@web01 backup]# openssl req -new -x509 -nodes -out server.crt -keyout server.key 2 3 Generating a 2048bit RSA private key 4 ......................................................+++ 5 ...................................+++ 6 7 writing new private key to 'server.key' 8 ----- 9 You are about to be asked to enter information that will be incorporated 10 into your certificate request. 11 What you are about to enter is what is called a Distinguished Name or a DN. 12 There are quite a few fields but you can leave some blank 13 For some fields there will be a default value, 14 If you enter '.', the field will be left blank. 15 ----- 16 Country Name (2letter code) [XX]:CH #国家名称 17 State or Province Name (full name)……

阅读全文

zabbix 2.2.20 安装详解(Centos6.9)

环境说明 [root@centos ~]# cat /etc/redhat-release CentOS release 6.9 (Final) [root@centos ~]# uname -a Linux lb02 2.6.32-696.el6.x86_64 #1 SMP Tue Mar 21 19:29:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux 服务端配置 第一个里程碑:在m01上部署LNP架构 cd /server/scripts sh nginx_install.sh sh php_install.sh _nginx_install.sh _脚本内容 #!/bin/bash # base setting mkdir -p /server/tools ## install nginx killall nginx yum install -y pcre-devel openssl-devel useradd -M -s /sbin/nologin www -u 501 cd /server/tools/ \rm -rf /application/nginx-1.10.2 wget http://nginx.org/download/nginx-1.10.2.tar.gz tar xf nginx-1.10.2.tar.gz cd /server/tools/nginx-1.10.2 ./configure --prefix=/application/nginx-1.10.2 --user=www --group=www --with-http_stub_status_module --with-http_ssl_module make make install ln -sf /application/nginx-1.10.2 /application/nginx cd /application/nginx/conf/ egrep -v "#|^$" nginx.conf.default nginx.conf /application/nginx/sbin/nginx _php_install.sh _脚本内容 #!/bin/bash killall php-fpm killall php-fpm # devel anzhuang yum install……

阅读全文

PPTP服务器搭建

第一个里程碑:检查系统是否支持ppp [root@m01 ~]# cat /dev/ppp cat: /dev/ppp: No such device or address 如果出现以上提示则说明ppp是开启的,可以正常架设pptp服务,若出现Permission denied等其他提示,你需要先去VPS面板里看看有没有enable ppp的功能开关。    第二个里程碑:设置内核转发 [root@m01 ~]# grep forw /etc/sysctl.conf # Controls IP packet……

阅读全文

用iptables 做NAT代理上网

背景: 有一台A服务器不能上网,和B服务器通过内网来连接,B服务器可以上网,要实现A服务器也可以上网。 内网主机: A eth1:172.16.1.8 外网主机: B eth0:10.0.0.6 外网主机: B eth1:172.16.1.6 SNAT:改变数据包的源地址。防火墙会使用外部地址,替换数据包的本地网络地址。这样使网络内部主机能够与网络外部通信。 1.在可以上网那台服务……

阅读全文

setup 命令中防火墙配置选项无法打开

故障提示 1.1 如何让setup 命令中防火墙配置生效 1.1.1 CentOS系统找不到setup命令工具的解决方法 yum -y install setuptool #安装setup命令工具 yum -y install ntsysv #安装setup工具配套的系统服务组件 yum -y install system-config-securitylevel-tui #安装setup工具配套的防火墙配置组件 yum -y install system-config-network-tui #安装setup工具……

阅读全文