- 浏览: 325815 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (342)
- drupal7 (14)
- ecommerce (10)
- frontend (8)
- web (9)
- xmpp (3)
- ecshop (1)
- magento (14)
- YII (1)
- manage (6)
- SNS (1)
- PHP (20)
- JQuery (4)
- Tool (1)
- APP (1)
- Linux Command (4)
- Git (3)
- drupal8 (2)
- JS (7)
- python (1)
- JSP (1)
- Tomcat (2)
- CSS3 (2)
- Shell (8)
- SCORM (1)
- MySQL (1)
- Perl (1)
- LDAP (1)
- Apache (2)
- WebService (1)
- Scrum (2)
- PMP (0)
- SVN (1)
最新评论
-
bu123dian:
都没有中文了么?英文看起来真的比较费劲
JIRA Git Plugin -
haohappy2:
We can call it dynamic content ...
Varnish and Nginx -
spidersea:
文中提到“利用 Varnish cache 减少了90%的数据 ...
Varnish and Nginx
由一前HP 360DL做为前端,由三台4U盘柜做为存储连接而成的一个视频上传,点播系统的结构。
219.235.241.237
建立目录设置权限
drwxrwxrwx 2 www www 512 Jun 11 10:50 cnzmkmfiles1
drwxrwxrwx 2 www www 512 Jun 11 10:50 cnzmkmfiles2
drwxrwxrwx 2 www www 512 Jun 11 10:50 cnzmkmfiles3
修改虚拟主机配置文件
/usr/local/apache/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerAdmin webmaster@unidee.com
DocumentRoot /files/web/cnzmkmfiles1
ServerName flv1.cnzmkm.com
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog "|/usr/local/sbin/cronolog /usr/local/logfiles/flv2cnzmkm_log%Y%m%d.log" combined
CBandRemoteSpeed 80Kb/s 3 10
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@unidee.com
DocumentRoot /files/web/cnzmkmfiles2
ServerName flv2.cnzmkm.com
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog "|/usr/local/sbin/cronolog /usr/local/logfiles/flv2cnzmkm_log%Y%m%d.log" combined
CBandRemoteSpeed 80Kb/s 3 10
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@unidee.com
DocumentRoot /files/web/cnzmkmfiles3
ServerName flv3.cnzmkm.com
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog "|/usr/local/sbin/cronolog /usr/local/logfiles/flv2cnzmkm_log%Y%m%d.log" combined
CBandRemoteSpeed 80Kb/s 3 10
</VirtualHost>
检查配置文件语法,重新加载配置文件,查看虚拟主机参数
flvserver2# ../../bin/apachectl -t
Syntax OK
flvserver2# ../../bin/apachectl -k graceful
flvserver2# ../../bin/apachectl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server flv1.unidee.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:27)
port 80 namevhost flv1.unidee.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:27)
port 80 namevhost flv2.unidee.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:40)
port 80 namevhost flv3.unidee.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:53)
port 80 namevhost flv1.cnzmkm.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:66)
port 80 namevhost flv2.cnzmkm.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:75)
port 80 namevhost flv3.cnzmkm.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:84)
Syntax OK
219.235.241.236
建立目录设置权限
drwxrwxrwx 2 www www 512 Jun 11 11:05 cnzmkmfiles4
drwxrwxrwx 2 www www 512 Jun 11 11:06 cnzmkmfiles5
drwxrwxrwx 2 www www 512 Jun 11 11:06 cnzmkmfiles6
修改虚拟主机配置文件
/usr/local/apache/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerAdmin webmaster@unidee.com
DocumentRoot /files/web/cnzmkmfiles4
ServerName flv4.cnzmkm.com
CBandRemoteSpeed 80Kb/s 3 10
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog "|/usr/local/sbin/cronolog /usr/local/logfiles/flv3cnzmkm_log%Y%m%d.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@unidee.com
DocumentRoot /files/web/cnzmkmfiles5
ServerName flv5.cnzmkm.com
CBandRemoteSpeed 80Kb/s 3 10
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog "|/usr/local/sbin/cronolog /usr/local/logfiles/flv3cnzmkm_log%Y%m%d.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@unidee.com
DocumentRoot /files/web/cnzmkmfiles6
ServerName flv6.cnzmkm.com
CBandRemoteSpeed 80Kb/s 3 10
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog "|/usr/local/sbin/cronolog /usr/local/logfiles/flv3cnzmkm_log%Y%m%d.log" combined
</VirtualHost>
检查配置文件语法,重新加载配置文件,查看虚拟主机参数
flvserver3# ../../bin/apachectl -t
Syntax OK
flvserver3# ../../bin/apachectl -k graceful
flvserver3# ../../bin/apachectl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server flv4.unidee.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:28)
port 80 namevhost flv4.unidee.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:28)
port 80 namevhost flv5.unidee.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:40)
port 80 namevhost flv6.unidee.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:52)
port 80 namevhost flv4.cnzmkm.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:65)
port 80 namevhost flv5.cnzmkm.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:74)
port 80 namevhost flv6.cnzmkm.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:83)
Syntax OK
219.235.241.235
建立目录设置权限
drwxrwxrwx 2 www www 512B Jun 11 11:09 cnzmkmfiles7
drwxrwxrwx 2 www www 512B Jun 11 11:09 cnzmkmfiles8
drwxrwxrwx 2 www www 512B Jun 11 11:09 cnzmkmfiles9
修改虚拟主机配置文件
/usr/local/apache/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerAdmin webmaster@unidee.com
DocumentRoot /files/web/cnzmkmfiles7
ServerName flv7.cnzmkm.com
CBandRemoteSpeed 80Kb/s 3 10
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog "|/usr/local/sbin/cronolog /usr/local/logfiles/flv4cnzmkm_log%Y%m%d.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@unidee.com
DocumentRoot /files/web/cnzmkmfiles8
ServerName flv8.cnzmkm.com
CBandRemoteSpeed 80Kb/s 3 10
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog "|/usr/local/sbin/cronolog /usr/local/logfiles/flv4cnzmkm_log%Y%m%d.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@unidee.com
DocumentRoot /files/web/cnzmkmfiles9
ServerName flv9.cnzmkm.com
CBandRemoteSpeed 80Kb/s 3 10
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog "|/usr/local/sbin/cronolog /usr/local/logfiles/flv4cnzmkm_log%Y%m%d.log" combined
</VirtualHost>
检查配置文件语法,重新加载配置文件,查看虚拟主机参数
flvserver4# ../../bin/apachectl -t
Syntax OK
flvserver4# ../../bin/apachectl -k graceful
flvserver4# ../../bin/apachectl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server flv7.unidee.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:21)
port 80 namevhost flv7.unidee.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:21)
port 80 namevhost flv8.unidee.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:30)
port 80 namevhost flv9.unidee.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:39)
port 80 namevhost flv7.cnzmkm.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:49)
port 80 namevhost flv8.cnzmkm.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:58)
port 80 namevhost flv9.cnzmkm.com (/usr/local/apache/conf/extra/httpd-vhosts.conf:67)
Syntax OK
虚拟主机域名对应目录
219.235.241.237 flv1.cnzmkm.com /files/web/cnzmkmfiles1
219.235.241.237 flv2.cnzmkm.com /files/web/cnzmkmfiles2
219.235.241.237 flv3.cnzmkm.com /files/web/cnzmkmfiles3
219.235.241.236 flv4.cnzmkm.com /files/web/cnzmkmfiles4
219.235.241.236 flv5.cnzmkm.com /files/web/cnzmkmfiles5
219.235.241.236 flv6.cnzmkm.com /files/web/cnzmkmfiles6
219.235.241.235 flv7.cnzmkm.com /files/web/cnzmkmfiles7
219.235.241.235 flv8.cnzmkm.com /files/web/cnzmkmfiles8
219.235.241.235 flv9.cnzmkm.com /files/web/cnzmkmfiles9
219.235.241.231 WEB服务器挂载NFS目录
219.235.241.237:/files/web/files1 /usr/local/www/files1
219.235.241.237:/files/web/files2 /usr/local/www/files2
219.235.241.237:/files/web/files3 /usr/local/www/files3
219.235.241.236:/files/web/files4 /usr/local/www/files4
219.235.241.236:/files/web/files5 /usr/local/www/files5
219.235.241.236:/files/web/files6 /usr/local/www/files6
219.235.241.235:/files/web/files7 /usr/local/www/files7
219.235.241.235:/files/web/files8 /usr/local/www/files8
219.235.241.235:/files/web/files9 /usr/local/www/files9
219.235.241.237:/files/web/cnzmkmfiles1 /usr/local/www/cnzmkmfiles1
219.235.241.237:/files/web/cnzmkmfiles2 /usr/local/www/cnzmkmfiles2
219.235.241.237:/files/web/cnzmkmfiles3 /usr/local/www/cnzmkmfiles3
219.235.241.236:/files/web/cnzmkmfiles4 /usr/local/www/cnzmkmfiles4
219.235.241.236:/files/web/cnzmkmfiles5 /usr/local/www/cnzmkmfiles5
219.235.241.236:/files/web/cnzmkmfiles6 /usr/local/www/cnzmkmfiles6
219.235.241.235:/files/web/cnzmkmfiles7 /usr/local/www/cnzmkmfiles7
219.235.241.235:/files/web/cnzmkmfiles8 /usr/local/www/cnzmkmfiles8
219.235.241.235:/files/web/cnzmkmfiles9 /usr/local/www/cnzmkmfiles9
UNIDEE网站加载NFS目录
mount 219.235.241.237:/files/web/files1 /usr/local/www/files1
mount 219.235.241.237:/files/web/files2 /usr/local/www/files2
mount 219.235.241.237:/files/web/files3 /usr/local/www/files3
mount 219.235.241.236:/files/web/files4 /usr/local/www/files4
mount 219.235.241.236:/files/web/files5 /usr/local/www/files5
mount 219.235.241.236:/files/web/files6 /usr/local/www/files6
mount 219.235.241.235:/files/web/files7 /usr/local/www/files7
mount 219.235.241.235:/files/web/files8 /usr/local/www/files8
mount 219.235.241.235:/files/web/files9 /usr/local/www/files9
CNZMKM加载NFS目录
mount 219.235.241.237:/files/web/cnzmkmfiles1 /usr/local/www/cnzmkmfiles1
mount 219.235.241.237:/files/web/cnzmkmfiles2 /usr/local/www/cnzmkmfiles2
mount 219.235.241.237:/files/web/cnzmkmfiles3 /usr/local/www/cnzmkmfiles3
mount 219.235.241.236:/files/web/cnzmkmfiles4 /usr/local/www/cnzmkmfiles4
mount 219.235.241.236:/files/web/cnzmkmfiles5 /usr/local/www/cnzmkmfiles5
mount 219.235.241.236:/files/web/cnzmkmfiles6 /usr/local/www/cnzmkmfiles6
mount 219.235.241.235:/files/web/cnzmkmfiles7 /usr/local/www/cnzmkmfiles7
mount 219.235.241.235:/files/web/cnzmkmfiles8 /usr/local/www/cnzmkmfiles8
mount 219.235.241.235:/files/web/cnzmkmfiles9 /usr/local/www/cnzmkmfiles9
测试NFS,文件名是写入文件的主机IP,每目录下两个文件分别为客户端和服务端shell下写入的文件
[root@webserver2 /usr/local/www] ll cnzmkmfiles1
total 0
-rw-r--r-- 1 4294967294 www 0B Jun 11 13:19 231
-rw-r--r-- 1 root www 0B Jun 11 13:19 237
[root@webserver2 /usr/local/www] ll cnzmkmfiles2
total 0
-rw-r--r-- 1 4294967294 www 0B Jun 11 13:19 231
-rw-r--r-- 1 root www 0B Jun 11 13:19 237
[root@webserver2 /usr/local/www] ll cnzmkmfiles3
total 0
-rw-r--r-- 1 4294967294 www 0B Jun 11 13:19 231
-rw-r--r-- 1 root www 0B Jun 11 13:19 237
[root@webserver2 /usr/local/www] ll cnzmkmfiles4
total 0
-rw-r--r-- 1 4294967294 www 0B Jun 11 13:32 231
-rw-r--r-- 1 root www 0B Jun 11 13:37 236
[root@webserver2 /usr/local/www] ll cnzmkmfiles5
total 0
-rw-r--r-- 1 4294967294 www 0B Jun 11 13:32 231
-rw-r--r-- 1 root www 0B Jun 11 13:37 236
[root@webserver2 /usr/local/www] ll cnzmkmfiles6
total 0
-rw-r--r-- 1 4294967294 www 0B Jun 11 13:32 231
-rw-r--r-- 1 root www 0B Jun 11 13:37 236
[root@webserver2 /usr/local/www] ll cnzmkmfiles7
total 0
-rw-r--r-- 1 4294967294 www 0B Jun 11 13:34 231
-rw-r--r-- 1 root www 0B Jun 11 13:40 235
[root@webserver2 /usr/local/www] ll cnzmkmfiles8
total 0
-rw-r--r-- 1 4294967294 www 0B Jun 11 13:35 231
-rw-r--r-- 1 root www 0B Jun 11 13:40 235
[root@webserver2 /usr/local/www] ll cnzmkmfiles9
total 0
-rw-r--r-- 1 4294967294 www 0B Jun 11 13:35 231
-rw-r--r-- 1 root www 0B Jun 11 13:40 235
双向读写正常
相关推荐
Something about Moblin 2.0
【标题】"tema.rar_Something About You" 提到的主题涉及到创建和管理动物园的相关知识,而"Something About You"可能是指个人在这个过程中的角色或特殊经验。从描述中我们可以推测,这个压缩包可能包含了关于如何...
标题 "migong.rar_Something About You" 暗示我们关注的是一个关于编程学习的压缩包,特别是C和C++语言,以及它们在数据结构方面的应用。描述中提到的 "c and c++ through it you will realize something about data...
Something About Nginx
SOMETHING ABOUT UNCTAD, UNCTAD IS A INTERNATIONAL ORGANISITION ,THIS PPT IS A SAMPLE INTRODUCTION ABOUT IT
"java_FAQ.rar_Something About You" 提供的"java FAQ.pdf"很可能包含了一系列关于Java编程的常见问题与解答,帮助开发者解决他们在学习和实践中遇到的问题。下面我们将深入探讨一些Java的核心知识点。 1. **Java...
在本资源"一步一步跟我学API.rar_API_Something About You_vss"中,我们可以深入学习API(Application Programming Interface)的相关知识,这将涵盖API的基本概念、类型、用途以及如何使用版本控制系统如VSS...
JavaScript,也被称为JS,是一种广泛应用于网页和网络应用的脚本语言,主要在客户端运行,为用户提供动态交互体验。它与Java虽然名字相似,但两者是完全不同的编程语言。JavaScript由网景公司的Brendan Eich在1995年...
关于机器学习的那些事。论文的报告,主要讲到机器学习中应该注意到的一些民间知识。
在2013年九年级英语下册 Module 1 Travel Something about Travel的文章中,作者分享了她对旅行的理解和感悟。文章背景提到,圣诞节临近,作者和朋友们都开始规划旅行,而这一年她的目的地是英国。这不仅是一次简单...
视频处理,行为识别公开数据集,20bn-something-something-v2-00.zip。v2-00~v2-19 基于RGB的Action Recognition相关的实验,频繁的使用到了Something-Something数据集; Something数据集是一个大型的带有标签的记录...
**jQuery 知识详解** jQuery 是一款非常流行的 JavaScript 库,它极大地简化了 JavaScript 的使用,使得网页交互、动画效果和事件处理变得更加便捷。对于初学者来说,掌握 jQuery 是一个非常明智的选择,因为它能...
关于AI的东西 该存储库用于记录我感兴趣的任何内容。
"Something"这个主题可能涉及到了字体设计的创新、字体在不同场景的应用以及如何通过字体提升设计品质等多个方面。 【描述】:深入探讨字体的美学价值和实用功能,从传统印刷到数字媒体,从基础的宋体、黑体到个性...
《Win32 API 函数大全使用详解》是深入理解Windows操作系统编程的重要参考资料,它涵盖了大量用于构建Windows应用程序的函数和接口。Win32 API(Application Programming Interface)是Microsoft为开发者提供的一个...
例如,"Nobody could deny that Jeff had something about him." 这句话中,"something about him"并不直接等同于"他身上的一些东西",而是暗示杰夫具有某种特质或魅力,可能是他的才华、个性或是影响力,让别人无法...
作者coderqiao,域名Something-About-3D-Touch,本文主要介绍Home Screen Quick Actions,即通过主屏幕的应用Icon,我们可以用3D Touch呼出一个菜单,进行快速定位应用功能模块相关功能的开发。 详细说明:...
标题中的"something.rar"是一个压缩文件,通常用于存储多个相关文件或数据集。根据描述,这个压缩包包含了"something-v1"和"something-v2"两个版本的配置文件,以及训练集、测试集和验证集的CSV文件。CSV(Comma ...
Something has gone wrong." 是一个常见的错误提示,通常表示系统遇到了问题或有软件运行异常。解决这个问题需要一系列步骤,包括诊断错误来源、修复相关组件和确保系统的稳定运行。以下是一些相关的Linux知识和...