dacongyun.com
分享国内外服务器主机优惠信息

CloudFlare (CF) CDN安装并配置Railgun服务端教程

全文:https://www.liujason.com/article/775.html

有兴趣可以加云筏CF交流群768412349 大佬们现场教学各种极限优化,另外不限量免费送Railgun token

英文原版教程点击这里查看:https://www.cloudflare.com/docs/railgun/installation.html
这里简化一下,直接放代码:

CentOS6

  1. sudo rpm –import https://pkg.cloudflare.com/pubkey.gpg
  2. sudo rpm -e gpg-pubkey-8e5f9a5d-*
  3. sudo rpm -ivh http://pkg.cloudflare.com/cloudflare-release-latest.el6.rpm
  4. vi /etc/railgun/railgun.conf
  5. #修改以下字段
  6. #activation.token = 找云筏要来的token
  7. #activation.railgun_host = 本服务器的IP
  8. systemctl enable memcached
  9. systemctl start memcached
  10. systemctl enable railgun
  11. systemctl start railgun
  12. #完成安装

复制代码

CentOS7

  1. sudo rpm –import https://pkg.cloudflare.com/pubkey.gpg
  2. sudo rpm -e gpg-pubkey-8e5f9a5d-*
  3. sudo rpm -ivh http://pkg.cloudflare.com/cloudflare-release-latest.el7.rpm
  4. yum install railgun-stable -y
  5. vi /etc/railgun/railgun.conf
  6. #修改以下字段
  7. #activation.token = 找云筏要来的token
  8. #activation.railgun_host = 本服务器的IP
  9. systemctl enable memcached
  10. systemctl start memcached
  11. systemctl enable railgun
  12. systemctl start railgun
  13. #完成安装

复制代码

Debian9

  1. echo ‘deb http://pkg.cloudflare.com/ stretch main’ |
  2. sudo tee /etc/apt/sources.list.d/cloudflare-main.list
  3. curl -C – https://pkg.cloudflare.com/pubkey.gpg | sudo apt-key add –
  4. sudo apt-get update
  5. apt-get install railgun-stable -y
  6. nano /etc/railgun/railgun.conf
  7. #修改以下字段
  8. #activation.token = 找云筏要来的token
  9. #activation.railgun_host = 本服务器的IP
  10. systemctl enable memcached
  11. systemctl start memcached
  12. systemctl enable railgun
  13. systemctl start railgun
  14. #完成安装

复制代码

Debian8

  1. echo ‘deb http://pkg.cloudflare.com/ jessie main’ |
  2. sudo tee /etc/apt/sources.list.d/cloudflare-main.list
  3. curl -C – https://pkg.cloudflare.com/pubkey.gpg | sudo apt-key add –
  4. sudo apt-get update
  5. apt-get install railgun-stable -y
  6. nano /etc/railgun/railgun.conf
  7. #修改以下字段
  8. #activation.token = 找云筏要来的token
  9. #activation.railgun_host = 本服务器的IP
  10. systemctl enable memcached
  11. systemctl start memcached
  12. systemctl enable railgun
  13. systemctl start railgun
  14. #完成安装

复制代码

Ubuntu 16.04

  1. echo ‘deb http://pkg.cloudflare.com/ xenial main’ |
  2. sudo tee /etc/apt/sources.list.d/cloudflare-main.list
  3. curl -C – https://pkg.cloudflare.com/pubkey.gpg | sudo apt-key add –
  4. sudo apt-get update
  5. apt-get install railgun-stable -y
  6. nano /etc/railgun/railgun.conf
  7. #修改以下字段
  8. #activation.token = 找云筏要来的token
  9. #activation.railgun_host = 本服务器的IP
  10. systemctl enable memcached
  11. systemctl start memcached
  12. systemctl enable railgun
  13. systemctl start railgun
  14. #完成安装

复制代码

Ubuntu 14.04

  1. echo ‘deb http://pkg.cloudflare.com/ trusty main’ |
  2. sudo tee /etc/apt/sources.list.d/cloudflare-main.list
  3. curl -C – https://pkg.cloudflare.com/pubkey.gpg | sudo apt-key add –
  4. sudo apt-get update
  5. apt-get install railgun-stable -y
  6. nano /etc/railgun/railgun.conf
  7. #修改以下字段
  8. #activation.token = 找云筏要来的token
  9. #activation.railgun_host = 本服务器的IP
  10. systemctl enable memcached
  11. systemctl start memcached
  12. systemctl enable railgun
  13. systemctl start railgun
  14. #完成安装

复制代码

网友回复:

注册 现在出的教程应当是Debain 9 + 10,Ubuntu18 + 20

CloudRaft 帮顶                 

h20 路过帮顶  

work mark

b66667777 Centos7的 Centos8可以用吧?

logo Railgun加速的是cf到小机还是全程加速?

柯林斯 gh静态博客用不到

leefable 没什么用其实。

lfu0327 虽然搜索引擎一大堆,但是楼主整合放在一起了,点赞。

注册 前排支持要是有Ubuntu 18.04就更好了

注册 感谢分享,貌似我还没有那么高的配置,另外据说这个有机会使得CFP翻车?

肤白貌美天然呆 源站到cloudflare

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人支付接口

云免签H5支付