记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
lsyncd+rsync 实现文件自动实时同步 本示例所需要的软件是:lsyncd与rsync 一般rsync软件是通过crond这支后台进行(计划任务)来实现自动同步数据,如今已有更好的开源软件来代替使用crond了,那就是 lsyncd( Live Syncing (Mirror) Daemon),它的工作原理:监视本地(rsync client)的目录,当源数据有文件或目录更新时,更新本地文件或目录到远端机器(rsync server),保持实时文件同步,但是它更新数据时需要远端rsync server运行rsync demon 一、配置环境如下 系统版本CentOS5.8 服务端:rsync(接收同步资源服务器) 客户端:lsyncd+rsync(发送资源服务器) (1)需要配置rsyncd.conf文件的一端,称为rsync server (2)不需要配置rsyncd.conf文件的一端,称为rsync client 二、服务器端安装 1. 安装rsync 2. yum install rsync 默认情况下rsync已安装检查安装 rpm –qa|grep rsync 检查rsync 运行状态 chkco...
 
0

Centos7安装OpenVPN

发表者:admin分类:Devops2015-12-27 20:17:54 阅读[2538]
Centos7安装OpenVPN Centos7上,安装配置OpenVPN。1、安装openvpnyum install -y openvpnyum install -y easy-rsa2、配置openvpn拷贝配置文件cp /usr/share/doc/openvpn-*/sample/sample-config-files/server.conf  /etc/openvpn编辑配置文件vim /etc/openvpn/server.conf主要修改以下几个配置,把前边的分号注释去掉,其中DNS配置项,改成阿里公共DNS地址。################################################## Sample OpenVPN 2.0 config file for            ## multi-client server.                          ##                                               ## This file is for the server side &nbs...
Centos安装桌面后在远程终端管理里面无法使用键盘和鼠标 桌面安装好以后,通过远程终端管理进去发现鼠标和键盘都是无法使用的: 这个是由于键盘和驱动的原因,改成evdev 就可以了,具体操作方法如下:1、安装 evdevyum install xorg-x11-drv-evdev 2、生成/etc/X11/xorg.conf这个文件默认是没有的,要通过Xorg -configure 命令生成一个xorg.conf.new,然后把这个文件拷贝到/etc/X11/,并且命名为xorg.conf 3、修改/etc/X11/xorg.conf,配置鼠标和键盘的驱动为 evdev 就可以了,具体配置如下: Section "InputDevice"Identifier "Keyboard0"Driver "evdev"Option "Device" "/dev/input/event3"EndSectionSection "InputDevice"Identifier "Mouse0"Driver "evdev"Option "Device" "/dev/input/event5"Option "Mode" "Absolute"EndSection  4、修改好以后重启下服务器,重新进入桌面就可以使用鼠标和键盘了。
Linux版Centos 64位配置HTTPS站点:1. 验证主机宝Linux版(Centos 64位)中已经安装openssl,并在编译时添加了对openssl模块的支持,如下图:2. 进入/a/apps/nginx-1.4.7/目录,为站点创建私钥文件和签名证书,步骤如下:3. 进入/a/apps/nginx-1.4.7/vhosts目录,新建配置文件https.conf,文件内容如下:4. 通过/etc/init.d/nginx reload 让配置生效5. 因为主机宝镜像开启了iptables防火墙,需要将https的443端口加入到防火墙中允许访问    iptables -I INPUT -p tcp --dport 443 -j ACCEPT    service iptables save6. 测试可以访问https站点,如下图:
Linux中PHP如何安装curl扩展方法  如果php已经在系统编译好,后来又需要添加新的扩展。一种方式就是重新完全编译php,另一种方式就是单独编译扩展库,以extension的形式扩展。下面以安装curl扩展为例:1、下载curl安装包。(我的php是4.4.4的,下载最新的curl 7.16 不能使用,最后下载7.14的才可以,所以要注意一下版本问题)./configuremakephp要求curl的目录要有include和lib目录,并且include下要有easy.h 和curl.h两个文件,lib下要有libcurl.a。经编译后include下的文件有了,但是lib目录下没有。原来生成到lib/.libs目录下,所以要copy到lib目录。2、进入安装原php的源码目录,cd extcd curlphpize./configure --with-curl=DIRmake就会在PHPDIR/ext/curl/moudles/下生成curl.so的文件。3、复制curl.so文件到extensions的配置目录,修改php.ini就好。
How to fake a VMs guest OS CPUID For the most software products the license verification is done with license keys. During my time in the IT I have also seen some products, where the license is tied to the underlying hardware of your server. Mostly this is realized with license files, which include the ID of your CPU. The application checks if the ID within this file matches to the actual CPU ID to complete this mechanism. I have virtualized some servers with applications, which used this kind of license checks. The normal and probably easiest way is to request / generate a new license file for your new (virtual) hardware. Some weeks ago a customer had the special situation that the software vendor didn´t exists anymore and his physical old server was crashing all the time, which was hosting this special application. He already created a new VM and installed the application but didn´t get any further, because the license file wasn´t accepted. Without a valid license the application d...
ڵȨ鿴־
重定向varnish前端用户的URL请求 Rewriting and redirecting URLs in Varnish Rewriting an URL You can easily rewrite the URL using the regsub() function in VCL. This takes place in vcl_recv. if (req.http.host ~ "^(www\.)?example\.com" && req.url~ "^/images/") { set req.http.host = "images.example.com"; set req.url = regsub(req.url, "^/images/", "/"); } This examples rewrites access to http://www.example.com/images/foo.jpg to http://images.example.com/foo.jpg. This is not visible to the user, but affects how the request to the backend(s) look. This does not affect which backend is used, so images.example.com is not actually resolved. This is useful to avoid double caching of items available from different URIs. For example, to cache www.example.com and example.com identically, one could use: set req.http.host = regsub(req.http.host, "^www\.example\.com___FCKpd___1quot;,"example.com"); Requests to www.exa...
Documentation The official documentation contains a install guide, a tutorial and a reference.We're trying to keep the official documentation in sync with the code. Both are kept in same source repository and both are available online:Documentation for the latest release 4.1Documentation for the stable release 4.0Documentation for version 3.0 (unsupported)Documentation for version 2.1 (unsupported)Documentation for the current development version (git master)You also probably want to have a look at the wiki - especially the VCL Examples. Quick install guides various operating systems: Ubuntu Debian Red Hat Enterprise Linux and Centos FreeBSDThe Varnish BookA comprehensive user guide for System Administrators and Web Developers in book format provided by Varnish Software:Online Reference Guide for the current stable  release (4.0)Online Reference Guide for version ...
IPSEC L2TP VPN on Ubuntu 14.04 with OpenSwan, xl2tpd and pppThis is a guide on setting up an IPSEC/L2TP vpn server with Ubuntu 14.04 using Openswan as the IPsec server, xl2tpd as the l2tp provider and ppp or local users / PAM for authentication. It has a detailed explanation with every step. We choose the IPSEC/L2TP protocol stack because of recent vulnerabilities found in pptpd VPNs and because it is supported on all major operating systems by defaultWhy a VPN?More than ever, your freedom and privacy when online is under threat. Governments and ISPs want to control what you can and can't see while keeping a record of everything you do, and even the shady-looking guy lurking around your coffee shop or the airport gate can grab your bank details easier than you may think. A self hosted VPN lets you surf the web the way it was intended: anonymously and without oversight.A VPN (virtual private network) creates a secure, encrypted tunnel through which all of your online data passes back a...
    总共268页,当前第105页 | 页数:
  1. 95
  2. 96
  3. 97
  4. 98
  5. 99
  6. 100
  7. 101
  8. 102
  9. 103
  10. 104
  11. 105
  12. 106
  13. 107
  14. 108
  15. 109
  16. 110
  17. 111
  18. 112
  19. 113
  20. 114
  21. 115