淘客网站配置教程

淘客网站


02自有服务器自有数据库自有域名方式安装

<h1>本教程本文针对安装宝塔面板的用户</h1> <pre><code> 如果你是其他面板,请参考下面的教程,步骤都是类似的。主要是数据库授权部分可能存在较大区别。 如果自己搞不定,请下载向日葵远程控制软件,联系客服帮你远程处理</code></pre> <h2><strong>对主机的要求:</strong></h2> <table> <thead> <tr> <th><strong>环境</strong></th> <th><strong>要求</strong></th> <th><strong>其它说明</strong></th> </tr> </thead> <tbody> <tr> <td>主机</td> <td>window,linux,mac</td> <td>建议用apache,nginx ,IIS运行php问题多</td> </tr> <tr> <td>php版本</td> <td>5.6以及以上</td> <td>建议php 7.x 系列 已获得更好的性能</td> </tr> <tr> <td>mysql版本</td> <td>5.5以及以上</td> <td>5.5以下无法支持utf8mb4字段格式会导致微信和用户功能异常</td> </tr> <tr> <td>数据库大小</td> <td>最好100M以上</td> <td></td> </tr> <tr> <td>网页空间</td> <td>至少100M</td> <td></td> </tr> <tr> <td>需要扩展或函数</td> <td>mysql_pdo扩展、curl扩展、fsockopen 函数</td> <td></td> </tr> <tr> <td>开启功能</td> <td>需要支持文件上传功能</td> <td></td> </tr> </tbody> </table> <h1><strong>第一部分配置宝塔PHP运行环境(如果您的环境已经满足,请忽略)</strong></h1> <h2>第一步:在宝塔软件管理中安装php5.6 / 7.0/ php7.1(本文选择7.1) 其中一个即可(已安装请跳过)</h2> <p><img src="https://bb.ffxia.cn/help/wp-content/uploads/2019/04/002%E5%AE%89%E8%A3%85php71.png" alt="" /></p> <h2>第二步:在宝塔软件管理中安装mysql5.5/5.6/5.7 (本文选择5.5) 其中一个即可(已安装请跳过)</h2> <p><img src="https://bb.ffxia.cn/help/wp-content/uploads/2019/04/003%E5%AE%89%E8%A3%85mysql.png" alt="" /></p> <h2>第三步:在宝塔软件管理中安装 apache(一般window选择) 或 nginx (本文linux选择nginx) 其中一个即可(已安装请跳过)</h2> <p><img src="https://bb.ffxia.cn/help/wp-content/uploads/2019/04/004%E5%AE%89%E8%A3%85nginx.png" alt="" /></p> <h2>第四步:创建网站和数据库 并绑定域名(请提前解析)</h2> <p><img src="https://bb.ffxia.cn/help/wp-content/uploads/2019/04/004%E6%96%B0%E5%BB%BA%E7%BD%91%E7%AB%99.png" alt="" /></p> <h2>第五步:数据库配置访问权限 ,指定 <strong>47.94.3.245,47.93.128.143</strong> 可以访问</h2> <p><img src="https://bb.ffxia.cn/help/wp-content/uploads/2020/03/9818bce268570f5195e0f6d4be213d76.png" alt="" /></p> <p><img src="https://bb.ffxia.cn/help/wp-content/uploads/2019/04/005%E6%8C%87%E5%AE%9Aip%E8%AE%BF%E9%97%AE.png" alt="" /></p> <h2>第六步:配置防火墙权限 ,允许IP :47.94.3.245和47.93.128.143 访问您的3306端口</h2> <p><img src="https://bb.ffxia.cn/help/wp-content/uploads/2019/04/006%E6%94%BE%E8%A1%8C3306%E7%AB%AF%E5%8F%A3.png" alt="" /></p> <ul> <li>请注意:对于阿里云,腾讯云,可能还需要开通一下安全策略(在服务器管理后台不是宝塔面板),这个策略都支持指定IP的,所以一定要只允许IP: 47.94.3.245和47.93.128.143 访问您的3306端口。</li> </ul> <h1>第二部分:安装网站程序</h1> <h2>第一步:配置数据库 ,找到宝塔面板的数据库管理,把刚刚创建的数据库写入到</h2> <p><img src="https://bb.ffxia.cn/help/wp-content/uploads/2019/04/1.png" alt="" /></p> <h2><strong>第二步:通过更多功能— 找到 初始化数据库按钮</strong>,完成数据库初始化</h2> <p><img src="https://bb.ffxia.cn/help/wp-content/uploads/2021/10/3e1494e9223e120d3fcc9cc8b939799b.png" alt="" /></p> <h2><strong>第三步:生成完整安装包并下载</strong></h2> <p><img src="https://bb.ffxia.cn/help/wp-content/uploads/2021/10/cdce64e13196404536762e3b084e4fdf.png" alt="" /></p> <h3>下载得到的文件如图</h3> <p><img src="https://bb.ffxia.cn/help/wp-content/uploads/2021/09/7.png" alt="" /></p> <h2>第四步:通过宝塔后台上传到网站</h2> <p><img src="https://bb.ffxia.cn/help/wp-content/uploads/2019/04/009%E4%B8%8A%E4%BC%A0%E7%BD%91%E7%AB%99%E6%96%87%E4%BB%B6.png" alt="" /></p> <p><img src="https://bb.ffxia.cn/help/wp-content/uploads/2019/04/010%E7%BD%91%E7%AB%99%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0%E5%AE%8C%E6%88%90.png" alt="" /></p> <p>解压文件</p> <p><img src="https://bb.ffxia.cn/help/wp-content/uploads/2019/04/011%E8%A7%A3%E5%8E%8B%E4%B8%8A%E4%BC%A0%E7%9A%84%E6%96%87%E4%BB%B6.png" alt="" /></p> <ul> <li><strong>!!!删除网站压缩包程序,减少数据库被泄露的风险(这个请放心删除,因为你随时可以从后台下载最新压缩包)!!!(注意!注意!注意!注意! 不要把压缩包上传到网站根目录,这将造成别人可以直接下载您的网站程序,如果你已经上传请马上移动或删除)</strong></li> </ul> <p><img src="https://bb.ffxia.cn/help/wp-content/uploads/2019/04/012%E5%88%A0%E9%99%A4%E7%BD%91%E7%AB%99%E7%A8%8B%E5%BA%8F.png" alt="" /></p> <h2>第五步:配置伪静态规则</h2> <h3>1.复制下面的内容</h3> <pre><code>location / { try_files $uri $uri/ /index.php$is_args$args; } location /pages/ { try_files $uri $uri/ /index.html$is_args$args; } location ~ ^/cache { deny all; } location ~* \.(jpg|jpeg|css|js|png|gif) { expires 1d; }</code></pre> <h3>2.把上面的四个location 放到 网站-设置 伪静态配置选卡中,如图</h3> <p><img src="https://bb.ffxia.cn/help/wp-content/uploads/2019/04/013nginx%E9%85%8D%E7%BD%AE%E4%BC%AA%E9%9D%99%E6%80%81%E8%A7%84%E5%88%99.png" alt="" /></p> <h3>3.如果你是apache服务器,则无需配置伪静态规则</h3> <h1>至此,独立服务器安装飞飞侠程序完成。接下来你可以访问一下网站是否正常了</h1>

页面列表

ITEM_HTML