多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 京推推CMS2.0版本搭建流程 **文档用的是备案域名和阿里云虚拟主机(Linux系统)作为参考教程,如果有云服务器,可以百度phpstudy建站教程** [TOC] ## 第一步:准备好个人域名和空间 1.个人域名需要备案或者主机为香港的时候可以免备案域名(建议备案) 2.新购买的空间设置好密码后,进入主机管理控制台,记住FTP登录用户名密码,FTP登录主机地址,后面上传部署文件需要,记住IP地址,解析域名需要。(空间需要支持php环境) ![](https://git.kancloud.cn/repos/huamanlou2018/jingtuitui/raw/9e75eaf381c847aeea33e5ad1ad687ec323f3d08/images/cms01.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzYwOTU2NDQsImlhdCI6MTU3NjA1MjQ0NCwicmVwb3NpdG9yeSI6Imh1YW1hbmxvdTIwMThcL2ppbmd0dWl0dWkiLCJ1c2VyIjp7InVzZXJuYW1lIjoiaHVhbWFubG91MjAxOCIsIm5hbWUiOiJcdTgyYjFcdTZlZTFcdTY5N2MiLCJlbWFpbCI6IjgzNjcyNTkyMUBxcS5jb20iLCJ0b2tlbiI6IjExMmU4Y2EyMTQyYzI3ZTdhZGEwYTFiMDUxMDgxMjAzIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.BXoUDQ9E3ZkjWqr_B12_QDIv9jn2EXEN6rtRuBN4iO4) ![](https://git.kancloud.cn/repos/huamanlou2018/jingtuitui/raw/9e75eaf381c847aeea33e5ad1ad687ec323f3d08/images/cms02.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzYwOTU2NDQsImlhdCI6MTU3NjA1MjQ0NCwicmVwb3NpdG9yeSI6Imh1YW1hbmxvdTIwMThcL2ppbmd0dWl0dWkiLCJ1c2VyIjp7InVzZXJuYW1lIjoiaHVhbWFubG91MjAxOCIsIm5hbWUiOiJcdTgyYjFcdTZlZTFcdTY5N2MiLCJlbWFpbCI6IjgzNjcyNTkyMUBxcS5jb20iLCJ0b2tlbiI6IjExMmU4Y2EyMTQyYzI3ZTdhZGEwYTFiMDUxMDgxMjAzIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.BXoUDQ9E3ZkjWqr_B12_QDIv9jn2EXEN6rtRuBN4iO4) ## 第二步:下载部署文件 1.登陆注册京推推个人中心网址:[http://user.jingtuitui.com/8odx1af](http://user.jingtuitui.com/8odx1af) ![](https://git.kancloud.cn/repos/huamanlou2018/jingtuitui/raw/9e75eaf381c847aeea33e5ad1ad687ec323f3d08/images/cms03.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzYwOTU2NDQsImlhdCI6MTU3NjA1MjQ0NCwicmVwb3NpdG9yeSI6Imh1YW1hbmxvdTIwMThcL2ppbmd0dWl0dWkiLCJ1c2VyIjp7InVzZXJuYW1lIjoiaHVhbWFubG91MjAxOCIsIm5hbWUiOiJcdTgyYjFcdTZlZTFcdTY5N2MiLCJlbWFpbCI6IjgzNjcyNTkyMUBxcS5jb20iLCJ0b2tlbiI6IjExMmU4Y2EyMTQyYzI3ZTdhZGEwYTFiMDUxMDgxMjAzIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.BXoUDQ9E3ZkjWqr_B12_QDIv9jn2EXEN6rtRuBN4iO4) 1. 点击购买充值-购买软件-选择京推推CMS-支付1元 ![](https://git.kancloud.cn/repos/huamanlou2018/jingtuitui/raw/9e75eaf381c847aeea33e5ad1ad687ec323f3d08/images/cms04.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzYwOTU2NDQsImlhdCI6MTU3NjA1MjQ0NCwicmVwb3NpdG9yeSI6Imh1YW1hbmxvdTIwMThcL2ppbmd0dWl0dWkiLCJ1c2VyIjp7InVzZXJuYW1lIjoiaHVhbWFubG91MjAxOCIsIm5hbWUiOiJcdTgyYjFcdTZlZTFcdTY5N2MiLCJlbWFpbCI6IjgzNjcyNTkyMUBxcS5jb20iLCJ0b2tlbiI6IjExMmU4Y2EyMTQyYzI3ZTdhZGEwYTFiMDUxMDgxMjAzIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.BXoUDQ9E3ZkjWqr_B12_QDIv9jn2EXEN6rtRuBN4iO4) 2. 回到个人中心,我的站点里,右侧点击修改,弹出的页面下载部署文件index.php ![](https://git.kancloud.cn/repos/huamanlou2018/jingtuitui/raw/9e75eaf381c847aeea33e5ad1ad687ec323f3d08/images/cms05.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzYwOTU2NDQsImlhdCI6MTU3NjA1MjQ0NCwicmVwb3NpdG9yeSI6Imh1YW1hbmxvdTIwMThcL2ppbmd0dWl0dWkiLCJ1c2VyIjp7InVzZXJuYW1lIjoiaHVhbWFubG91MjAxOCIsIm5hbWUiOiJcdTgyYjFcdTZlZTFcdTY5N2MiLCJlbWFpbCI6IjgzNjcyNTkyMUBxcS5jb20iLCJ0b2tlbiI6IjExMmU4Y2EyMTQyYzI3ZTdhZGEwYTFiMDUxMDgxMjAzIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.BXoUDQ9E3ZkjWqr_B12_QDIv9jn2EXEN6rtRuBN4iO4) ![](https://git.kancloud.cn/repos/huamanlou2018/jingtuitui/raw/9e75eaf381c847aeea33e5ad1ad687ec323f3d08/images/cms06.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzYwOTU2NDQsImlhdCI6MTU3NjA1MjQ0NCwicmVwb3NpdG9yeSI6Imh1YW1hbmxvdTIwMThcL2ppbmd0dWl0dWkiLCJ1c2VyIjp7InVzZXJuYW1lIjoiaHVhbWFubG91MjAxOCIsIm5hbWUiOiJcdTgyYjFcdTZlZTFcdTY5N2MiLCJlbWFpbCI6IjgzNjcyNTkyMUBxcS5jb20iLCJ0b2tlbiI6IjExMmU4Y2EyMTQyYzI3ZTdhZGEwYTFiMDUxMDgxMjAzIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.BXoUDQ9E3ZkjWqr_B12_QDIv9jn2EXEN6rtRuBN4iO4) ## 第三步:上传部署文件 1. 群文件下载FlashFXP.zip,解压后打开flashfxp.exe,点击输入代码,然后点击确认 2. 点击连接--快速连接,输入刚刚记下的地址、用户名和密码后链接 ![](https://git.kancloud.cn/repos/huamanlou2018/jingtuitui/raw/9e75eaf381c847aeea33e5ad1ad687ec323f3d08/images/cms07.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzYwOTU2NDQsImlhdCI6MTU3NjA1MjQ0NCwicmVwb3NpdG9yeSI6Imh1YW1hbmxvdTIwMThcL2ppbmd0dWl0dWkiLCJ1c2VyIjp7InVzZXJuYW1lIjoiaHVhbWFubG91MjAxOCIsIm5hbWUiOiJcdTgyYjFcdTZlZTFcdTY5N2MiLCJlbWFpbCI6IjgzNjcyNTkyMUBxcS5jb20iLCJ0b2tlbiI6IjExMmU4Y2EyMTQyYzI3ZTdhZGEwYTFiMDUxMDgxMjAzIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.BXoUDQ9E3ZkjWqr_B12_QDIv9jn2EXEN6rtRuBN4iO4) 3. 点击进入htdocs文件夹(该文件夹为网站根目录),选择全部文件,右键删除,然后左边目录选择下载的index.php文件的目录,选择index.php文件右键传输即可传输入htdocs文件夹。 ![](https://git.kancloud.cn/repos/huamanlou2018/jingtuitui/raw/9e75eaf381c847aeea33e5ad1ad687ec323f3d08/images/cms08.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzYwOTU2NDQsImlhdCI6MTU3NjA1MjQ0NCwicmVwb3NpdG9yeSI6Imh1YW1hbmxvdTIwMThcL2ppbmd0dWl0dWkiLCJ1c2VyIjp7InVzZXJuYW1lIjoiaHVhbWFubG91MjAxOCIsIm5hbWUiOiJcdTgyYjFcdTZlZTFcdTY5N2MiLCJlbWFpbCI6IjgzNjcyNTkyMUBxcS5jb20iLCJ0b2tlbiI6IjExMmU4Y2EyMTQyYzI3ZTdhZGEwYTFiMDUxMDgxMjAzIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.BXoUDQ9E3ZkjWqr_B12_QDIv9jn2EXEN6rtRuBN4iO4) ## 第四步:解析绑定域名 1. 域名解析,添加解析,记录类型选择A,主机记录填写@和www解析,记录值填写刚刚的主机IP地址 ![](https://git.kancloud.cn/repos/huamanlou2018/jingtuitui/raw/9e75eaf381c847aeea33e5ad1ad687ec323f3d08/images/cms09.png?access-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzYwOTU2NDQsImlhdCI6MTU3NjA1MjQ0NCwicmVwb3NpdG9yeSI6Imh1YW1hbmxvdTIwMThcL2ppbmd0dWl0dWkiLCJ1c2VyIjp7InVzZXJuYW1lIjoiaHVhbWFubG91MjAxOCIsIm5hbWUiOiJcdTgyYjFcdTZlZTFcdTY5N2MiLCJlbWFpbCI6IjgzNjcyNTkyMUBxcS5jb20iLCJ0b2tlbiI6IjExMmU4Y2EyMTQyYzI3ZTdhZGEwYTFiMDUxMDgxMjAzIiwiYXV0aG9yaXplIjp7InB1bGwiOnRydWUsInB1c2giOnRydWUsImFkbWluIjp0cnVlfX19.BXoUDQ9E3ZkjWqr_B12_QDIv9jn2EXEN6rtRuBN4iO4) 2. 域名绑定,到虚拟主机管理控制台中,绑定刚刚解析的域名 ## 第五步:编辑站点 回到京推推个人中心-我的站点,点击修改,网站域名和联盟ID推广位ID(有网站推广位就填写网站的,没有就填写设计媒体推广位)为必填项,其他项自己填写后提交即可完成搭建。 ## **共用空间的情况如何搭建** ### 虚拟主机想绑定二级域名,但主机又没有绑定子目录的功能,解决方案如下: 1. 新建个.htaccess文件,用notepad++打开编辑,在此文件中加入以下语句: ~~~ <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / #绑定京东子域名jd.abc.com开始,文件放置在jd子目录 RewriteCond %{HTTP_HOST} ^jd\.abc\.com$ [NC] RewriteCond %{REQUEST_URI} !^/jd/ RewriteRule ^(.*)$ jd/$1 [L,QSA] #绑定京东子域名jd.abc.com结束 #绑定京东子域名jd2.abc.com开始,文件放置在jd2子目录 RewriteCond %{HTTP_HOST} ^jd2\.abc\.com$ [NC] RewriteCond %{REQUEST_URI} !^/jd2/ RewriteRule ^(.*)$ jd2/$1 [L,QSA] #绑定京东子域名jd2.abc.com结束 </IfModule> ~~~ 2. 根据自己的域名对应修改上面代码,上面的整套语句是绑定一个子目录,绑定多个子目录,可以重复添加以上的全套语句! 3. 上传.htaccess文件到网站根目录下,然后在根目录下创建一个子目录,比如jd2.abc.com就创建一个jd2的子目录,index.php文件放入jd2目录中。 ### (举例)需要空间支持二级域名绑定子目录(以下以阿里云Linux虚拟主机空间为例) 1.修改.htaccess文件(最好用notepad++打开,没有的话用记事本),按提示修改成自己对应的域名 2.修改好了后保存上传.htaccess文件到htdocs文件夹下 3.在htdocs文件夹下创建二级域名对应的子目录,[比如yyy.abc.com](http://xn--yyy-eo8er22f.abc.com/)那么就创建一个子目录叫“yyy” 4.上传index.php到“yyy”文件夹下 6.京推推后台设置好对应内容