Pages

Monday, 25 November 2019

OpenCDN_Node

###Node端安装手册
###配置
本文档以 Centos 6.x 86_64 为蓝本 本文档约定 所有命令以#打头
#wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

#wget http://58.215.133.101:801/rpm/inotify-tools-3.14-1.el6.x86_64.rpm

#wget http://58.215.133.101:801/rpm/nginx-1.2.0-5.el6.x86_64.rpm

#wget http://58.215.133.101:801/rpm/opencdn-node-1.1-2.el6-noarch.rpm

#rpm -ivh epel-release-6-8.noarch.rpm

#rpm -ivh inotify-tools-3.14-1.el6.x86_64.rpm

#rpm -ihv nginx-1.2.0-5.el6.x86_64.rpm

**yum -y localinstall opencdn-node-1.1-2.el6-noarch**推荐这么安装。会动解决依赖关系.

检查Selinux状态

#sestatus

如果输出不为 SELinux status:    disabled .可以昨时先关闭 .命令如下:

#setenforce 0

永久关闭方法:

#vim  /etc/sysconfig/selinux  把SELINUX=disabled 并重启系统
####修改配置
#sed -i 's#localhost#8.8.8.8.#g' /usr/local/opencdn/conf/opencdn.conf  设置为你主控端ip 这里以8.8.8.8.为例

#sed -i  's#0.0.0.0#119.147.0.239#g' /etc/syslog-ng/syslog-ng.conf 修改syslog-ng 上传的日志中心(一般为主控端)
####重启webserver->http
/etc/init.d/httpd restart
####启动opencdn
#/etc/init.d/opencdn restart
检查一下opencdn开启状态,查看日志。查看有没有异常.
#cd /var/log/opencdn/ 相看相关日志
 
from https://github.com/firefoxbug/OpenCDN_Node
------------------------------------------------
 
CDN software 
 
INTROUCDE:
1.Full free CDN deployment tools, including CDN nodes management platform and accelerate the deployment package. OpenCDN provides a convenient tool builders, real-time self-creation of CDN acceleration services
2.OpenCDN is Based on nginx + proxy_cache cache module, without operator profiles, click the mouse to set up high availability CDN acceleration system
3.OpenCDN management center capable of operating status of each node, the system load and network traffic in real-time monitoring and unified management and control node's cache strategy to synchronize all the nodes.

BEFORE INSTALL:
1.OpenCDN2.0 provides centralized control center, no longer need to deploy separate control center.After you install OpenCDN2.0 Node software on your multiple CDN nodes,you can visit our official website to manage your CDN nodes.
2.OpenCDN2.0 Console center communicates with CDN nodes by TCP port 80 default,but if it doesn't work,communication port will change to 9242 automatically.
3.OpenCDN2.0 Node installtion will uninstall your nginx and stop httpd running.Be careful before you install.

INSTALL on Linux:
Platform : CentOS 5.X CentOS 6.x 32bits 64bits
wget https://github.com/firefoxbug/OpenCDN2.0/archive/master.zip
unzip master.zip
cd OpenCDN2.0-master/
./install.sh
 
USAGE:
After install you will get a token which identifys your host.
service opencdn start
service nginx start
Visit http://opencdn.secon.me/login

UNINSTALL:
./unstall.sh
 
from https://github.com/firefoxbug/OpenCDN_Node2.0
----------------------------------------------------
 
###主控端安装手册
###LAMP环境配置
本文档以 Centos 6.x 86_64 为蓝本 本文档约定 所有命令以#打头
#wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm #wget http://58.215.133.101:801/rpm/inotify-tools-3.14-1.el6.x86_64.rpm #wget http://58.215.133.101:801/rpm/opencdn-console-1.1-2.el6-noarch.rpm #rpm -ivh epel-release-6-8.noarch.rpm #rpm -ivh inotify-tools-3.14-1.el6.x86_64.rpm **yum -y localinstall opencdn-console-1.1-2.el6-noarch.rpm** 推荐这么安装。会动解决依赖关系. 检查Selinux状态 #sestatus 如果输出不为 SELinux status: disabled .可以昨时先关闭 .命令如下: #setenforce 0 永久关闭方法: #vim /etc/sysconfig/selinux 把SELINUX=disabled 并重启系统 #启动Mysql 并设置密码 #service mysqld start #/usr/bin/mysqladmin -u root password '123' 设置mysql密码 ####导入数据
#cd /usr/local/opencdn/ocdn #mysql -uroot -p123 -e 'create database cdn_info' 新建cdn_info数据库 #mysql -uroot -p123 cdn_info ####重启webserver->http
/etc/init.d/httpd restart ####启动opencdn
#/etc/init.d/opencdn restart 检查一下opencdn开启状态,查看日志。查看有没有异常.
#cd /var/log/opencdn/ 相看相关日志 ####启动服务
#service httpd restart 访问http://x.x.x.x/ocdn/index.php
默认用户名:admin@ocdn.me 密码:ocdn.me

from https://github.com/firefoxbug/OpenCDN_Console