RHEL 6.5----CDN(lumanger)

 

主機名  IP   服務
master 192.168.30.130  CDN(LuManager)
slave 192.168.30.131  DNS 

 

 

 

 

 

軟件安裝包下載地址及安裝方法php

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

安裝mysql

master上安裝LuMangaersql

[root@master ~]# mkdir /zijidelu
[root@master ~]# cd /zijidelu/
[root@master zijidelu]# wget http://down.zijidelu.org/zijidelu_install.tar.gz
[root@master zijidelu]# wget http://down.zijidelu.org/LuNamp_last.tar.gz
[root@master zijidelu]# wget http://down.zijidelu.org/LuManager_last.tar.gz
[root@master zijidelu]# ll -h 
total 182M
-rw-r--r-- 1 root root 2.1M Dec  2  2015 LuManager_last.tar.gz
-rw-r--r-- 1 root root 180M Apr  9  2014 LuNamp_last.tar.gz
-rw-r--r-- 1 root root  39K Dec  5  2015 zijidelu_install.tar.gz

[root@master zijidelu]# tar -xf zijidelu_install.tar.gz 
[root@master zijidelu]# cd zijidelu_install
[root@master zijidelu_install]# mv ../Lu* .  #將LuManager.tar.gz和LuNamp_last.tar.gz移動到zijidelu_install目錄下
[root@master zijidelu_install]# ls
common.inc.sh  i.sh                   lun_install_config.sh  zijidelu_install.sh
config.inc.sh  LuManager_last.tar.gz  sh                     zijidelu_update.sh
gogogo         LuNamp_last.tar.gz     update.sh
[root@master zijidelu_install]# ./i.sh -y  #
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+ [2] USA download mirror
+ [1] China telecom download mirror
+ [0] Cancel.
+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

請選擇一個下載點,而後回車!
Please select a download mirror and press enter! 

1


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+ [2] Install LuManager 2.1.2
+ [1] Install LuManager 1.1.10
+ [0] Cancel.
+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

請輸入您的選擇,而後回車!
Please choosing your option and press enter! 

2
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.

要使用rpm包來安裝LuNamp嗎(安裝速度更快)?[Y/n]
Do you want use RPM package to install LuNamp(faster)? [Y/n]

Y
--2018-05-24 15:20:21--  http://down.zijidelu.org/rpms/lun2.7/LuNamp_last.x86_64.reh6.rpm
Resolving down.zijidelu.org... 115.29.195.102
Connecting to down.zijidelu.org|115.29.195.102|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 165173928 (158M) [application/x-redhat-package-manager]
Saving to: 「LuNamp_last.x86_64.reh6.rpm」
 

修復完成!
LuManager was repaired successfully! 
24 May 15:45:47 ntpdate[51286]: the NTP socket is in use, exiting
pg_ctl: another server might be running; trying to start server anyway
server starting
PgSQL 啓動成功!
PgSQL was started successfully. 
Apache_LuManager 啓動成功!
Apache_LuManager was started successfully. 
PgSQL 已經在運行狀態!
PgSQL is already running! 
180524 15:45:51 mysqld_safe Logging to '/home/mysql_data/master.err'.
180524 15:45:51 mysqld_safe Starting mysqld daemon with databases from /home/mysql_data
MySQL 啓動成功!
MySQL was started successfully. 
The pid file: /var/run/lu_mysqld.pid
1
Starting php_fpm  done
Nginx和php-cgi 啓動成功!
Nginx and php-cgi ware started successfully. 

Pure-ftpd 啓動成功!
Pure-ftpd was started successfully. 

Apache_LuManager 已經在運行狀態!
Apache_LuManager is already running! 
PgSQL 已經在運行狀態!
PgSQL is already running! 

Starting test LuNamp status ........................ 

LuManager in good condition. 

PgSQL in good condition. 

Nginx in good condition. 

Apache in good condition. 

MySQL in good condition. 

Pure-ftpd in good condition. 

Thank you for choosing LuNamp and LuManager! [Website support: zijidelu.org] 

LuManager安裝完成,謝謝您的使用!
LuManager was successfully installed, Thank you for choose it!


請使用http://IP:8888或http://domain:8888訪問後臺管理系統(IP就是您的服務器IP,domain便是指向該IP的域名)。
Please use "http://your ip:8888" or "http://your domain:8888" and login LuManager to manager your system!


爲保證全部程序都能正常使用,需重啓系統,當即重啓嗎?[Y/n]
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 ...vim

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

 

slave上安裝DNS服務器

[root@slave ~]# yum install -y bind bind-chroot bind-utils
[root@slave ~]# service  named start 
Generating /etc/rndc.key:                                  [  OK  ]
Starting named:                                            [  OK  ]
[root@slave ~]# vim /var/named/chroot/etc/named.conf
...........
options {
        listen-on port 53 { any; };
        listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        allow-query     { any; };
        recursion yes;

#       dnssec-enable yes;
#       dnssec-validation yes;
#       dnssec-lookaside auto;
...........只需修改這些

[root@slave ~]# vim /var/named/chroot/etc/named.rfc1912.zones 
.........末尾添加
zone "sishen.cn" IN {
        type master;
        file "sishen.zone";
        allow-update { none; };
};
# 建立sishen.zone文件
[root@slave ~]# cd /var/named/chroot/var/named/
[root@slave named]# cp -p named.localhost  sishen.zone
[root@slave named]# vim sishen.zone
$TTL 1D
@       IN SOA  dns.sishen.cn root.sishen.cn. (
                                        0       ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
        NS      dns.sishen.cn.
dns     A       192.168.30.131
source  A       192.168.30.131
wwww    A       192.168.30.130
修改完成後重啓named服務
[root@slave ~]# service named restart 
Stopping named: .                                          [  OK  ]
Starting named:                                            [  OK  ]

在slave安裝httpdapp

[root@slave ~]# yum install -y httpd 
[root@slave ~]# cp -r /etc/pa* /var/www/html/       #建立測試文件
[root@slave ~]# vim /etc/httpd/conf.d/welcome.conf 
# 
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
#<LocationMatch "^/+$">
#    Options -Indexes
#    ErrorDocument 403 /error/noindex.html
#</LocationMatch>
重啓httpd服務
[root@slave ~]# service httpd restart 
Stopping httpd:                                            [FAILED]
Starting httpd:                                            [  OK  ]

配置CDNdom

啓動LuManager
[root@master ~]# lu-start 
24 May 16:19:34 ntpdate[3953]: the NTP socket is in use, exiting
PgSQL 已經在運行狀態!
PgSQL is already running! 
Apache_LuManager 啓動成功!
Apache_LuManager was started successfully. 
PgSQL 已經在運行狀態!
PgSQL is already running! 
MySQL 已經在運行狀態!
MySQL is already running! 
Starting php_fpm  done
Nginx和php-cgi 啓動成功!
Nginx and php-cgi ware started successfully. 

Pure-ftpd 啓動成功!
Pure-ftpd was started successfully. 

Apache_LuManager 已經在運行狀態!
Apache_LuManager is already running! 
PgSQL 已經在運行狀態!
PgSQL is already running! 

Starting test LuNamp status ........................ 

LuManager in good condition. 

PgSQL in good condition. 

Nginx in good condition. 

Apache in good condition. 

MySQL in good condition. 

Pure-ftpd in good condition. 

Thank you for choosing LuNamp and LuManager! [Website support: zijidelu.org] 

win客戶端打開瀏覽器輸入192.168.30.131:8888socket

首先添加一個ftp空間,這是一個bug,不然沒辦法進行下一步。

如上如所示,若是賬戶名使用的是ftp做爲用戶名,就會拋出錯誤。

添加完FPT空間後,添加網站

 

 

配置完成後,會發現CDN服務器上一些文件的變化

[root@master ~]# cat /etc/hosts

#lum_proxy_store start
192.168.30.131 source.sishen.cn #lum_proxy_store end #lum_local_domains start 127.0.0.1 ::1 localhost.localdomain localhost 1.lum www.sishen.cn #lum_local_domains end 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.30.130 master

修改nameserver使其指向192.168.30.131

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

win7客戶端測試

 若是想更改管理員密碼則

相關文章
相關標籤/搜索