主机名  IP   服务
master 192.168.30.130  CDN(LuManager)
slave 192.168.30.131  DNS 

软件安装包下载地址及安装方法

http://www.zijidelu.org/thread-47148-1-1.html

安装

master上安装LuMangaer

  1. [root@master ~]# mkdir /zijidelu
  2. [root@master ~]# cd /zijidelu/
  3. [root@master zijidelu]# wget http://down.zijidelu.org/zijidelu_install.tar.gz
  4. [root@master zijidelu]# wget http://down.zijidelu.org/LuNamp_last.tar.gz
  5. [root@master zijidelu]# wget http://down.zijidelu.org/LuManager_last.tar.gz
  6. [root@master zijidelu]# ll -h
  7. total 182M
  8. -rw-r--r-- root root 2.1M Dec LuManager_last.tar.gz
  9. -rw-r--r-- root root 180M Apr LuNamp_last.tar.gz
  10. -rw-r--r-- root root 39K Dec zijidelu_install.tar.gz
  11.  
  12. [root@master zijidelu]# tar -xf zijidelu_install.tar.gz
  13. [root@master zijidelu]# cd zijidelu_install
  14. [root@master zijidelu_install]# mv ../Lu* . #将LuManager.tar.gz和LuNamp_last.tar.gz移动到zijidelu_install目录下
  15. [root@master zijidelu_install]# ls
  16. common.inc.sh i.sh lun_install_config.sh zijidelu_install.sh
  17. config.inc.sh LuManager_last.tar.gz sh zijidelu_update.sh
  18. gogogo LuNamp_last.tar.gz update.sh
  19. [root@master zijidelu_install]# ./i.sh -y #
  20. This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
  21.  
  22. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  23. +
  24. + [] USA download mirror
  25. + [] China telecom download mirror
  26. + [] Cancel.
  27. +
  28. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  29.  
  30. 请选择一个下载点,然后回车!
  31. Please select a download mirror and press enter!
  32.  
  33. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  34. +
  35. + [] Install LuManager 2.1.
  36. + [] Install LuManager 1.1.
  37. + [] Cancel.
  38. +
  39. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  40.  
  41. 请输入您的选择,然后回车!
  42. Please choosing your option and press enter!
  43.  
  44. useradd: warning: the home directory already exists.
  45. Not copying any file from skel directory into it.
  46. useradd: warning: the home directory already exists.
  47. Not copying any file from skel directory into it.
  48. useradd: warning: the home directory already exists.
  49. Not copying any file from skel directory into it.
  50. useradd: warning: the home directory already exists.
  51. Not copying any file from skel directory into it.
  52. useradd: warning: the home directory already exists.
  53. Not copying any file from skel directory into it.
  54. useradd: warning: the home directory already exists.
  55. Not copying any file from skel directory into it.
  56.  
  57. 要使用rpm包来安装LuNamp吗(安装速度更快)?[Y/n]
  58. Do you want use RPM package to install LuNamp(faster)? [Y/n]
  59.  
  60. Y
  61. ---- ::-- http://down.zijidelu.org/rpms/lun2.7/LuNamp_last.x86_64.reh6.rpm
  62. Resolving down.zijidelu.org... 115.29.195.102
  63. Connecting to down.zijidelu.org|115.29.195.102|:... connected.
  64. HTTP request sent, awaiting response... OK
  65. Length: (158M) [application/x-redhat-package-manager]
  66. Saving to: LuNamp_last.x86_64.reh6.rpm
  67.  
  68. 修复完成!
  69. LuManager was repaired successfully!
  70. May :: ntpdate[]: the NTP socket is in use, exiting
  71. pg_ctl: another server might be running; trying to start server anyway
  72. server starting
  73. PgSQL 启动成功!
  74. PgSQL was started successfully.
  75. Apache_LuManager 启动成功!
  76. Apache_LuManager was started successfully.
  77. PgSQL 已经在运行状态!
  78. PgSQL is already running
  79. :: mysqld_safe Logging to '/home/mysql_data/master.err'.
  80. :: mysqld_safe Starting mysqld daemon with databases from /home/mysql_data
  81. MySQL 启动成功!
  82. MySQL was started successfully.
  83. The pid file: /var/run/lu_mysqld.pid
  84.  
  85. Starting php_fpm done
  86. Nginxphp-cgi 启动成功!
  87. Nginx and php-cgi ware started successfully.
  88.  
  89. Pure-ftpd 启动成功!
  90. Pure-ftpd was started successfully.
  91.  
  92. Apache_LuManager 已经在运行状态!
  93. Apache_LuManager is already running
  94. PgSQL 已经在运行状态!
  95. PgSQL is already running
  96.  
  97. Starting test LuNamp status ........................
  98.  
  99. LuManager in good condition.
  100.  
  101. PgSQL in good condition.
  102.  
  103. Nginx in good condition.
  104.  
  105. Apache in good condition.
  106.  
  107. MySQL in good condition.
  108.  
  109. Pure-ftpd in good condition.
  110.  
  111. Thank you for choosing LuNamp and LuManager! [Website support: zijidelu.org]
  112.  
  113. LuManager安装完成,谢谢您的使用!
  114. LuManager was successfully installed, Thank you for choose it!
  115.  
  116. 请使用http://IP:8888或http://domain:8888访问后台管理系统(IP就是您的服务器IP,domain即是指向该IP的域名)。
  117. Please use "http://your ip:8888" or "http://your domain:8888" and login LuManager to manager your system!
  118.  
  119. 为保证所有程序都能正常使用,需重启系统,立即重启吗?[Y/n]
  120. In order to LuManager normal operation, You must reboot the system, reboot now?[Y/n]
    Y

Broadcast message from root@master
(/dev/pts/0) at 15:52 ...

The system is going down for reboot NOW!
You have mail in /var/spool/mail/root

slave上安装DNS

  1. [root@slave ~]# yum install -y bind bind-chroot bind-utils
  2. [root@slave ~]# service named start
  3. Generating /etc/rndc.key: [ OK ]
  4. Starting named: [ OK ]
  5. [root@slave ~]# vim /var/named/chroot/etc/named.conf
  6. ...........
  7. options {
  8. listen-on port { any; };
  9. listen-on-v6 port { ::; };
  10. directory "/var/named";
  11. dump-file "/var/named/data/cache_dump.db";
  12. statistics-file "/var/named/data/named_stats.txt";
  13. memstatistics-file "/var/named/data/named_mem_stats.txt";
  14. allow-query { any; };
  15. recursion yes;
  16.  
  17. # dnssec-enable yes;
  18. # dnssec-validation yes;
  19. # dnssec-lookaside auto;
  20. ...........只需修改这些
  21.  
  22. [root@slave ~]# vim /var/named/chroot/etc/named.rfc1912.zones
  23. .........末尾添加
  24. zone "sishen.cn" IN {
  25. type master;
  26. file "sishen.zone";
  27. allow-update { none; };
  28. };
  29. # 创建sishen.zone文件
  30. [root@slave ~]# cd /var/named/chroot/var/named/
  31. [root@slave named]# cp -p named.localhost sishen.zone
  32. [root@slave named]# vim sishen.zone
  33. $TTL 1D
  34. @ IN SOA dns.sishen.cn root.sishen.cn. (
  35. ; serial
  36. 1D ; refresh
  37. 1H ; retry
  38. 1W ; expire
  39. 3H ) ; minimum
  40. NS dns.sishen.cn.
  41. dns A 192.168.30.131
  42. source A 192.168.30.131
  43. wwww A 192.168.30.130
  44. 修改完成后重启named服务
  45. [root@slave ~]# service named restart
  46. Stopping named: . [ OK ]
  47. Starting named: [ OK ]

在slave安装httpd

  1. [root@slave ~]# yum install -y httpd
  2. [root@slave ~]# cp -r /etc/pa* /var/www/html/ #创建测试文件
  3. [root@slave ~]# vim /etc/httpd/conf.d/welcome.conf
  4. #
  5. # This configuration file enables the default "Welcome"
  6. # page if there is no default index page present for
  7. # the root URL. To disable the Welcome page, comment
  8. # out all the lines below.
  9. #
  10. #<LocationMatch "^/+$">
  11. # Options -Indexes
  12. # ErrorDocument /error/noindex.html
  13. #</LocationMatch>
  14. 重启httpd服务
  15. [root@slave ~]# service httpd restart
  16. Stopping httpd: [FAILED]
  17. Starting httpd: [ OK ]

配置CDN

  1. 启动LuManager
  2. [root@master ~]# lu-start
  3. May :: ntpdate[]: the NTP socket is in use, exiting
  4. PgSQL 已经在运行状态!
  5. PgSQL is already running
  6. Apache_LuManager 启动成功!
  7. Apache_LuManager was started successfully.
  8. PgSQL 已经在运行状态!
  9. PgSQL is already running
  10. MySQL 已经在运行状态!
  11. MySQL is already running
  12. Starting php_fpm done
  13. Nginxphp-cgi 启动成功!
  14. Nginx and php-cgi ware started successfully.
  15.  
  16. Pure-ftpd 启动成功!
  17. Pure-ftpd was started successfully.
  18.  
  19. Apache_LuManager 已经在运行状态!
  20. Apache_LuManager is already running
  21. PgSQL 已经在运行状态!
  22. PgSQL is already running
  23.  
  24. Starting test LuNamp status ........................
  25.  
  26. LuManager in good condition.
  27.  
  28. PgSQL in good condition.
  29.  
  30. Nginx in good condition.
  31.  
  32. Apache in good condition.
  33.  
  34. MySQL in good condition.
  35.  
  36. Pure-ftpd in good condition.
  37.  
  38. Thank you for choosing LuNamp and LuManager! [Website support: zijidelu.org]

win客户端打开浏览器输入192.168.30.131:8888

首先添加一个ftp空间,这是一个bug,否则没办法进行下一步。

如上如所示,如果帐户名使用的是ftp作为用户名,就会抛出错误。

添加完FPT空间后,添加网站

配置完成后,会发现CDN服务器上一些文件的变化

  1. [root@master ~]# cat /etc/hosts
  2.  
  3. #lum_proxy_store start
  4. 192.168.30.131 source.sishen.cn
  5. #lum_proxy_store end
  6.  
  7. #lum_local_domains start
  8. 127.0.0.1 ::1 localhost.localdomain localhost 1.lum www.sishen.cn
  9. #lum_local_domains end
  10. 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
  11. ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
  12. 192.168.30.130 master

修改nameserver使其指向192.168.30.131

  1. [root@master ~]# vim /etc/resolv.conf
  2. # Generated by NetworkManager
  3. #nameserver 119.29.29.29
  4. nameserver 192.168.30.131

win7客户端测试

如果想更改管理员密码则

RHEL 6.5----CDN(lumanger)的更多相关文章

  1. RHEL 7特性说明(七):编译程序及工具

    转载自:RedHat https://access.redhat.com/documentation/zh-CN/Red_Hat_Enterprise_Linux/7/html/7.0_Release ...

  2. RHEL 7特性说明(六):集群

    来自:Linux中国  2014-07-16 00:00:00  ed Hat Enterprise Linux 7.0 是 Red Hat 的下一代操作系统完整套件,旨在用于关键任务企业级计算以及顶 ...

  3. 带宽 VS CDN (转载)

    并发的影响因素:带宽.web server(含php).static server.数据库 带宽价格: 静态IP企业宽带 5M 10M 50M 100M 200M 盛大云 华东双线 216/月 396 ...

  4. CDN(转载)

    CDN是什么? 谈到CDN的作用,可以用8年买火车票的经历来形象比喻: 8年前,还没有火车票代售点一说,12306.cn更是无从说起.那时候火车票还只能在火车站的售票大厅购买,而我所住的小县城并不通火 ...

  5. CDN(翻译)

    http://dojotoolkit.org/documentation/tutorials/1.10/cdn/index.html 从CDN上加载dojo模块时非常有用的.从CDN上加载Dojo并同 ...

  6. oneinstack如何安装ssl证书和配置Let's Encrypt免费SSL证书教程汇总(转)

    OneinStack包含以下组合:lnmp(Linux + Nginx+ MySQL+ PHP) LNMP安装SSL安全证书 部署HTTPS:https://www.gworg.com/ssl/309 ...

  7. Vue(一):简介和安装

    概况 Vue.js(读音 /vjuː/, 类似于 view) 是一套构建用户界面的渐进式框架. Vue 只关注视图层, 采用自底向上增量开发的设计. Vue 的目标是通过尽可能简单的 API 实现响应 ...

  8. .Net Core自动化部署系列(一):Jenkins + GitLab

    项目进行微服化改造后系统发布就变得愈为重要,因为持续集成导致部署变得越来越频繁,人工部署带来的一些问题日渐凸显,大家可能都有被系统部署线问题困扰过的经历. 本篇我们将会使用Jenkins+Gitlab ...

  9. 跟老刘学运维day02~部署虚拟环境安装Linux系统(1)

    第1章 部署虚拟环境安装Linux系统 所谓“工欲善其事,必先利其器” 1.准备工具 VmwareWorkStation  15.5——虚拟机软件(必需) RedHatEnterpriseLinux ...

随机推荐

  1. Linux下编译安装源码包软件 configure ,make, make install, make test/check, make clean

    http://www.360doc7.net/wxarticlenew/541275971.html 一.什么是源码包软件? 顾名思义,源码包就是源代码的可见的软件包,基于Linux和BSD系统的软件 ...

  2. spring mvc带参数重定向

    http://blog.csdn.net/jackpk/article/details/19121777/ https://isudox.com/2017/02/16/spring-mvc-redir ...

  3. css3的渐变效果

    1.css3 渐变的属性 例子: #grad { background: -webkit-linear-gradient(red, blue); /* Safari 5.1 - 6.0 */ back ...

  4. Maze 解题报告

    Maze Description   You are given a special Maze described as an n*m matrix, please find the shortest ...

  5. POJ - 2115 C Looooops(扩展欧几里德求解模线性方程(线性同余方程))

    d.对于这个循环, for (variable = A; variable != B; variable += C) statement; 给出A,B,C,求在k位存储系统下的循环次数. 例如k=4时 ...

  6. 小米2在Eclipse 调试,要注意下列步骤。(转)

    小米2在Eclipse 调试,要注意下列步骤.1.连接线,打开设置:USB线连接小米2,在设置-->开发者选项->USB 调是打开.如果这一步,就业在Eclipse中真机调试,下面的步骤不 ...

  7. skynet实践(8)-接入websocket

    我从开源项目(https://github.com/lipp/lua-websockets,这里我们简称LWS)中抽出了websocket的部分处理,步骤如下: 1)首先是解决LWS的几个依赖问题.L ...

  8. async-await原理解析

    在用async包裹的方法体中,可以使用await关键字以同步的方式编写异步调用的代码.那么它的内部实现原理是什么样的呢?我们是否可以自定义await以实现定制性的需求呢?先来看一个简单的例子: cla ...

  9. BZOJ_1563_[NOI2009]诗人小G_决策单调性

    BZOJ_1563_[NOI2009]诗人小G_决策单调性 Description Input Output 对于每组数据,若最小的不协调度不超过1018,则第一行一个数表示不协调度若最小的不协调度超 ...

  10. bzoj1017 [JSOI2008]魔兽地图DotR——DP

    题目:https://www.lydsy.com/JudgeOnline/problem.php?id=1017 好难想的状态啊!f[i][j][k]表示i号物品有j个向上贡献,一共花了k钱的最大力量 ...