记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
RedHat7.1系统配置pptp client客户端拨号VPN由于 RedHat7.1系统非常古老,所以连系统盘基本上都找不到了。好在找到了pptp client的安装源码包。wget http://downloads.sourceforge.net/project/pptpclient/pptp/pptp-1.8.0/pptp-1.8.0.tar.gz?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fpptpclient%2Ffiles%2Fpptp%2Fpptp-1.8.0%2F&ts=1462894082&use_mirror=tenet从这里下载好软件安装包,查看安装包的install安装说明Installation Instructions - Brief 1. install pppd (with MPPE if you require it), 2. if pppd is not in /usr/sbin, edit Makefile, variable PPPD, 3. 'make' 4. 'make install'Installation Instructions - Detailed 1. install PPP, and make sure it is working. On most distributions, use the package called ppp or pppd. If your PPTP server requires MPPE, make sure the pppd program  ...
安装LAMP环境,以下是命令。apt-get install apache2 libapache2-mod-php5 php5 php5-gd mysql-server php5-mysql phpmyadminapt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl安装伪静态环境。#: a2enmod rewrite重启web服务器/etc/init.d/apache2 restartwget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gztar zxvf ioncube_loaders_lin_x86-64.tar.gz #:vim.tiny /etc/php5/apache2/php.ini [ionCube Loader] zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.3.so 注意: 如果以前装有Zend Guard,为了避免ionCube和Zend Guard发生冲突, ...
Centos6.6 64位服务器修改MAC地址/etc/sysconfig/network-scripts/ifcfg-eth0HWADDR=00:24:E8:63:7A:05修改为:HWADDR=00:24:E8:63:7A:08这里重启网络,会有如下提示,实际修改未成功:[root@ns1 ~]# /etc/init.d/network restartShutting down interface eth0: Device eth0 has MAC address 00:24:E8:63:7A:05, instead of configured address 00:24:E8:63:7A:08. Ignoring. [FAILED]Shutting down loopback interface: [ OK ]Bringing up loopback interface: &...
安装好Centos6.7最新版系统,然后防火墙上作映射80映射口到内网机器IP: 192.168.1.16 Centos6.7 系统,安装squid代理IP: 192.168.1.17 安装内网OA与网站IP: 192.168.1.11 安装网站服务器都放于内网,所以需要路由器或防火墙作映射。先保证内网可以正常访问服务器网站,然后配置squid。安装squid很简单。#: yum install squid -y然后配置相关域名的转发代理,具体配置如下。[root@localhost ~]# cat /etc/squid/squid.conf## Recommended minimum configuration:#acl manager proto cache_objectacl localhost src 127.0.0.1/32 ::1acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1# Example rule allowing access from your local networks.# Adapt to list your (internal) IP networks from where browsing# should be allowedacl localnet src 10.0.0.0/8 # RFC1918 possible internal networkacl localnet src 172.16.0.0/12 # RFC1918 possible internal networkacl localnet src 192.168.0.0/16 # RFC1918 possible internal networkacl localnet src fc00::/7 ...
Table of Contents Steps for a Fresh Installation of MySQL Installing Additional MySQL Products and Components Upgrading MySQL with the MySQL Yum Repository Replacing a Native Third-Party Distribution of MySQLSteps for a Fresh Installation of MySQLNote The following instructions assume that MySQL is not already installed on your system using a third-party-distributed RPM package; if that is not the case, follow the instructions given in Replacing a Native Third-Party Distribution of MySQL.Adding the MySQL Yum Repository First, add the MySQL Yum repository to your system's repository list. Follow these steps: Go to the download page for MySQL Yum repository at http://dev.mysql.com/downloads/repo/yum/. Select and download the release package for your platform. ...
把原来的yum源卸载掉# rpm -qa | grep yum | xargs rpm -e –-nodeps 添加并安装下载的yum的rpm包 wget http://mirrors.163.com/centos/6.8/os/x86_64/Packages/python-urlgrabber-3.9.1-11.el6.noarch.rpm# rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm # rpm -Uvh python-urlgrabber-3.9.1-11.el6.noarch.rpm # rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm# rpm -ivh yum-3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm[注]:最后这两个包必须同时安装,因两个是相互依赖关系。 添加163的yum源# cd/etc/yum.repos.d/# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo 修改CentOS6-Base-163.repo#CentOS-Base.repo## The mirrorsystem uses the connecting IP address of the client and the# update statusof each mirror to pick mirrors that are updated to and# geographicallyclose to the client. You should use thisfor CentOS updates# unless you aremanually picking other mirrors.## If the mirrorlist=does not work for ...
Rsync+sersync环境:centos 7 or centos 7.1 x64前言:一、为什么要用Rsync+sersync架构?1、sersync是基于Inotify开发的,类似于Inotify-tools的工具2、sersync可以记录下被监听目录中发生变化的(包括增加、删除、修改)具体某一个文件或某一个目录的名字,然后使用rsync同步的时候,只同步发生变化的这个文件或者这个目录。二、Rsync+Inotify-tools与Rsync+sersync这两种架构有什么区别?1、Rsync+Inotify-tools(1):Inotify-tools只能记录下被监听的目录发生了变化(包括增加、删除、修改),并没有把具体是哪个文件或者哪个目录发生了变化记录下来;(2):rsync在同步的时候,并不知道具体是哪个文件或者哪个目录发生了变化,每次都是对整个目录进行同步,当数据量很大时,整个目录同步非常耗时(rsync要对整个目录遍历查找对比文件),因此,效率很低。2、Rsync+sersync(1):sersync可以记录下被监听目录中发生变化的(包括增加、删除、修改)具体某一个文件或某一个目录的名字;(2):rsync在同步的时候,只同步发生变化的这个文件或者这个目录(每次发生变化的数据相对整个同步目录数据来说是很小的,rsync在遍历查找比对文件时,速度很快),因此,效率很...
现实中,服务器可能会因为各种原因而crash掉,从而造成数据丢失或者服务的暂时不可用。为了提高服务的可用性以及数据的安全性,就需要对数据进行备份,以便数据恢复或者服务的动态切换(将访问请求动态重定向到备份服务器)。常见的备份方法是定时的rsync任务或者远程拷贝。但这种方式,如果定时的间隔较大,那么服务器宕掉后,还是会丢失部分数据,动态切换的服务也不是宕机前的最新状态。为了支持实时数据同步,Linux 2.6.13 内核中新引入文件系统变化通知机制inotify,一旦对文件系统有改动,就会触发相关事件任务。通过结合rsync,inotify能够很好地完成实时同步任务。主服务器:1.1.1.1 备份服务器:0.0.0.0配置步骤:1. 主服务器,备份服务器上安装rsync:sudo yum install rsync
2. 主服务器上安装inotify-tools:sudo yum install inotify-tools
3. 备份服务器上添加配置文件/etc/rsyncd.confreadonly=no
chroot=no
uid=root
gid=root
hosts allow=1.1.1.1
hosts deny=0.0.0.0/32
max connections=10
log file=/var/log/rsyncd.log
pid file=/var/run/rsyncd.pid
lock file=/var/run/rsync.lock
auth users=tongbu
secrets file=/etc/rsync.pass
[websit...
最新评论