<?xml version="1.0"?>
<rss version="2.0"><channel><title>&#x535A;&#x5BA2;</title><link>https://www.qiankuntang.com/blogs/blog/18-%E5%8D%9A%E5%AE%A2/</link><description></description><language>zh</language><item><title>&#x4E7E;&#x5764;&#x89C6;&#x9891;&#x7CFB;&#x7EDF;&#x7B80;&#x8981;&#x5B89;&#x88C5;&#x8BF4;&#x660E;</title><link>https://www.qiankuntang.com/blogs/entry/203-%E4%B9%BE%E5%9D%A4%E8%A7%86%E9%A2%91%E7%B3%BB%E7%BB%9F%E7%AE%80%E8%A6%81%E5%AE%89%E8%A3%85%E8%AF%B4%E6%98%8E/</link><description><![CDATA[<h1><strong>乾坤视频系统简要安装说明</strong></h1><p><strong>首先感谢购买此套源码</strong></p><p><strong>环境要求：Linux/Apache/Nginx/PHP7.4+/Mysql5.7+ */NodeJS/</strong></p><p><strong>扩展安装：PHP需安装fileinfo/exif/intl/calendar扩展，不装扩展会出现莫名错误和工作室404</strong></p><h4><strong>第一步：上传安装包至网站根目录并解压</strong></h4><h4><strong>第二步：导入数据库文件至数据库中（根目录中的qiankun_tv.sql）</strong></h4><h4><strong>第三步：创建站点数据库并配置好根目录的config.php文件</strong></h4><ul><li><p><code>$sql_db_host = "localhost";</code>（9-18行）</p></li><li><p><code>$sql_db_user = "你的数据库用户名";</code></p></li><li><p><code>$sql_db_pass = "你的数据库密码";</code></p></li><li><p><code>$sql_db_name = "你的数据库名称";</code></p></li><li><p><code>$site_url = "你的域名";</code></p></li></ul><h4><strong>第四步：配置伪静态（如果是Nginx的话需要手动配置一下，Apache则不用）</strong></h4><p>Nginx伪静态如下（Nginx和Apache伪静态配置文件在根目录中也）：</p><pre spellcheck="" class="ipsCode language-plaintext" data-language="Plain Text"><code>location / {
  if (!-e $request_filename){
    rewrite ^/$ /index.php?link1=home;
  }
  rewrite ^/@([^\/]+)(\/|)$ /index.php?link1=timeline&amp;id=$1;
  if (!-e $request_filename){
    rewrite ^/([^\/]+)(\/|)$ /index.php?link1=$1;
  }
}

location /reset {
  rewrite ^/reset-password/([^\/]+)(\/|)$ /index.php?link1=reset-password&amp;code=$1;
}

location /confirm {
  rewrite ^/confirm/(.*)/(.*)$ /index.php?link1=confirm&amp;code=$1&amp;email=$2;
}
location /finish {
  rewrite ^/finish/(.*)/(.*)$ /index.php?link1=finish&amp;code=$1&amp;email=$2;
}

location = /two_factor_login {
  rewrite ^(.*)$ /index.php?link1=two_factor_login;
}

location = /two_factor_submit {
  rewrite ^(.*)$ /index.php?link1=two_factor_submit;
}

location /v {
  rewrite ^/v/(.*)$ /index.php?v=$1;
}

location /api {
  rewrite ^/api/v(([0-9])([.][0-9]+))(\/|)$ /api.php?v=$1;
}

location /admin {
  rewrite ^/admin-cp$ /admincp.php;
  rewrite ^/admin-cp/(.*)$ /admincp.php?page=$1;
}

location /admin-cdn/ {
  alias /admin-panel/;
}

location /videos {
  rewrite ^/videos/category/(.*)/rss(\/|)$ /index.php?link1=videos&amp;page=category&amp;id=$1&amp;feed=rss;
  rewrite ^/videos/category/(.*)/(.*)$ /index.php?link1=videos&amp;page=category&amp;id=$1&amp;sub_id=$2;
  rewrite ^/videos/category/(.*)$ /index.php?link1=videos&amp;page=category&amp;id=$1;
  rewrite ^/videos/(.*)/rss(\/|)$ /index.php?link1=videos&amp;page=$1&amp;feed=rss;
  rewrite ^/videos/(.*)$ /index.php?link1=videos&amp;page=$1;
}

location /articles {
  rewrite ^/articles(\/|)$ /index.php?link1=articles;
  rewrite ^/articles/category/(.*)(\/|)$ /index.php?link1=articles&amp;category_id=$1;
  rewrite ^/articles/read/(.*)(\/|)$ /index.php?link1=read&amp;id=$1;
}

location /aj {
  rewrite ^/aj/([^/.]+)/?$ /ajax.php?type=$1;
  rewrite ^/aj/([^/.]+)/([^/.]+)/?$ /ajax.php?type=$1&amp;first=$2;
  rewrite ^/aj/([^/.]+)/([^/.]+)/([^/.]+)/?$ /ajax.php?type=$1&amp;first=$2&amp;second=$3;
}

location /edit {
  rewrite ^/edit-video/(.*)?$ /index.php?link1=edit-video&amp;id=$1;
}
location /video_text {
  rewrite ^/video_text/(.*)?$ /index.php?link1=video_text&amp;id=$1;
}

location /watch {
  rewrite ^/watch/([^\/]+)(\/|)?$ /index.php?link1=watch&amp;id=$1;
  rewrite ^/watch/([^\/]+)/list/([^\/]+)(\/|)?$ /index.php?link1=watch&amp;id=$1&amp;list=$2;
}

location /embed {
  rewrite ^/embed/(.*)?$ /index.php?link1=embed&amp;id=$1;
}

location /resend {
  rewrite ^/resend/(.*)/(.*)?$ /index.php?link1=resend&amp;id=$1&amp;u_id=$2;
}

location /redirect {
  rewrite ^/redirect?$ /index.php?link1=redirect;
  rewrite ^/redirect/(.*)?$ /index.php?link1=redirect&amp;id=$1;
}

location /settings {
  rewrite ^/settings$ /index.php?link1=settings;
  rewrite ^/settings/(.*)/(.*)$ /index.php?link1=settings&amp;page=$1&amp;user=$2;
  rewrite ^/settings/(.*)$ /index.php?link1=settings&amp;page=$1;
}

location /terms {
  rewrite ^/terms/([^\/]+)(\/|)$ /index.php?link1=terms&amp;type=$1;
}

location /go_pro {
  rewrite ^/go_pro(\/|)$ /index.php?link1=go_pro;
}

location /ads {
  rewrite ^/ads(\/|)$ /index.php?link1=ads;
  rewrite ^/ads/create(\/|)$ /index.php?link1=create_ads;
  rewrite ^/ads/edit/(\d+)(\/|)$ /index.php?link1=edit_ads&amp;id=$1;
  rewrite ^/ads/analytics/(\d+)(\/|)$ /index.php?link1=ads_analytics&amp;id=$1;
}

location /contact {
  rewrite ^/contact-us(\/|)$ /index.php?link1=contact;
}

location /messages {
  rewrite ^/messages$ /index.php?link1=messages;
  rewrite ^/messages/(.*)$ /index.php?link1=messages&amp;id=$1;
}

location /view_analytics {
  rewrite ^/view_analytics/(.*)$ /index.php?link1=view_analytics&amp;id=$1;
}

location /video_studio {
  rewrite ^(.*)$ /index.php?link1=video_studio;
}

location = /comments {
  rewrite ^(.*)$ /index.php?link1=comments;
}

location = /dashboard {
  rewrite ^(.*)$ /index.php?link1=dashboard;
}

location = /popular_channels {
  rewrite ^(.*)$ /index.php?link1=popular_channels;
}

location /shorts {
  rewrite ^/shorts/(.*)$ /index.php?link1=shorts&amp;id=$1;
}

location = /shorts {
  rewrite ^(.*)$ /index.php?link1=shorts;
}

location = /create_article {
  rewrite ^(.*)$ /index.php?link1=create_article;
}

location = /my_articles {
  rewrite ^(.*)$ /index.php?link1=my_articles;
}

location /edit_articles {
  rewrite ^/edit_articles/(.*)?$ /index.php?link1=edit_articles&amp;id=$1;
}

location = /age_block {
  rewrite ^(.*)$ /index.php?link1=age_block;
}

location /site {
  rewrite ^/site-pages/(.*)$ /index.php?link1=site-pages&amp;page_name=$1;
}

location /post {
  rewrite ^/post/(.*)(\/|)$ /index.php?link1=post&amp;id=$1;
}

location /edit_activity {
  rewrite ^/edit_activity/(.*)(\/|)$ /index.php?link1=edit_activity&amp;id=$1;
}
</code></pre><h4><strong>第四步：访问你的域名即可打开网站</strong></h4><ul><li><p>进入网站后请先登陆账号（默认账号：admin 默认密码：admin123）</p></li><li><p>登陆后即可访问地址进入后台（后台地址：域名/admin-cp）</p></li></ul><ul><li><p>至此安装已完成！</p></li></ul><hr><h4><strong>备注一：（安装完成并测试好后请删除演示数据，谢谢！）</strong></h4><h4><strong>备注二：（FFMPEG转码功能开启会占用大量的服务器资源，请根据情况开启！）</strong></h4><ul><li><p><strong><em>安装过程中有任何问题请联系QQ：1859389</em></strong></p></li></ul>]]></description><guid isPermaLink="false">203</guid><pubDate>Tue, 24 Dec 2024 14:42:08 +0000</pubDate></item></channel></rss>
