摘要: 原文:https://book.2cto.com/201304/19609.html 人们在了解新事物时,往往习惯通过类比来帮助自己理解事物的概貌。那么,我们在学习Nginx时也采用同样的方式,先来看看Nginx的竞争对手—Apache、Lighttpd、Tomcat、Jetty、IIS,它们都是Web服务器,或者叫做WWW(World Wide Web)服务器,相应地也都具备W... 阅读全文
posted @ 2018-01-22 17:27 huiy_小溪 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.mayongfa.cn/193.html 一、安装 Nginx 和 fastdfs-nginx-module 安装 Nginx 请看:从零开始学 Java - CentOS 下安装 Nginx,其实我只想放这一句话。但想想我还是一步一步写详细吧。 1.下载 Nginx 和 fastdfs-nginx-module ,这里是通过wget下载(我喜欢这种方式)。 wget... 阅读全文
posted @ 2018-01-22 17:05 huiy_小溪 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.mayongfa.cn/192.html 一、安装 libfastcommon 和 FastDFS 1.下载安装 libfastcommon ,这里是通过wget下载(我喜欢这种方式)。wget https://github.com/happyfish100/libfastcommon/archive/V1.0.7.tar.gz 解压 libfastcommon,命... 阅读全文
posted @ 2018-01-22 17:02 huiy_小溪 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.linuxidc.com/Linux/2011-12/49635p2.htm (一) 使用前提 中心主机连接远程主机可以通过ssh密钥无密码连接 (二) 命令格式 pssh 总是通过清单 文件指定主机 其中的每行采用 [user] host[:port] 形式。 (三) 创建servers.txt文件 文件的内容为远程主机的ip,和用于连接ssh的用户名和... 阅读全文
posted @ 2018-01-22 16:59 huiy_小溪 阅读(2002) 评论(0) 推荐(0) 编辑
摘要: 在A和B两个机器上安装lvs+keepalived yum -y install lvs keepalived LVS: vi /etc/init.d/realserver.sh 用上面命令在A上建立realserver.sh文件,内容见下。 #!/bin/bash # # Script to start LVS DR real server. # description: LVS DR real... 阅读全文
posted @ 2018-01-22 13:36 huiy_小溪 阅读(167) 评论(0) 推荐(0) 编辑