You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

260 lines
11 KiB

10 months ago
1 year ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="renderer" content="webkit" />
  6. <meta name="force-rendering" content="webkit" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  8. <title>宝塔面板安装脚本</title>
  9. <link rel="stylesheet" type="text/css" href="/static/css/sanren.css" />
  10. <link rel="stylesheet" type="text/css" href="/static/css/style.css" />
  11. <link rel="stylesheet" type="text/css" href="/static/css/download.css" />
  12. </head>
  13. <body>
  14. <div class="down-main">
  15. <div class="d1">
  16. <div class="wrap">
  17. <div class="i1t textcenter">
  18. <h1 class="disflex flex_center flex_lrcenter textcenter">宝塔面板安装脚本<img class="ml10" src="/static/images/i1ico_03.png"></h1>
  19. <div class="text20 mt_25 wap_mt15 textcenter cl8">
  20. <p>2分钟装好面板,一键管理服务器</p>
  21. <p>集成LAMP/LNMP环境安装,网站、FTP、数据库、文件管理、软件安装等功能</p>
  22. </div>
  23. <div class="disflex flex_lrcenter mt_50 install-list">
  24. <div class="install-box linux">
  25. <div class="img">
  26. <img src="/static/images/prd_1_03.png">
  27. </div>
  28. <div class="cont">
  29. <div class="top">
  30. <div class="title">Linux面板 {:config_get('new_version')}</div>
  31. <div class="desc">
  32. 支持Centos、Ubuntu、Deepin、Debian、Fedora等Linux系统。
  33. <a class="link" href="https://demo.bt.cn/login" target="_blank" style="margin-left: 5px; font-weight: 700" rel="noreferrer">查看演示</a>
  34. </div>
  35. <div class="mark">
  36. <span>2分钟装好</span>
  37. <span>阿里云推荐</span>
  38. <span>腾讯云推荐</span>
  39. </div>
  40. </div>
  41. <div class="bottom">
  42. <a class="btn" href="javascript:;" id="goInstallLinux">查看安装脚本</a>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="install-box windows">
  47. <div class="img">
  48. <img src="/static/images/prd_2_03.png">
  49. </div>
  50. <div class="cont">
  51. <div class="top">
  52. <div class="title">Windows面板 {:config_get('new_version_win')}</div>
  53. <div class="desc">支持Windows Server 2008 R2/2012/2016/2019/2022,64位系统</div>
  54. <div class="mark">
  55. <span>操作简单</span>
  56. <span>使用方便</span>
  57. </div>
  58. </div>
  59. <div class="bottom">
  60. <a class="btn" href="javascript:;" id="goInstallWindows">查看安装方法</a>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. {if config_get('new_version_btm')}<div class="disflex flex_lrcenter mt_30 install-list">
  66. <div class="install-box monitor">
  67. <div class="img">
  68. <img src="/static/images/bt_monitor.png" style="height: 96px;"/>
  69. </div>
  70. <div class="cont">
  71. <div class="top">
  72. <div class="title">云安全监控</div>
  73. <div class="desc">多机跨平台安全管理和监控</div>
  74. </div>
  75. <div class="bottom">
  76. <a class="btn" href="javascript:;" id="goInstallMonitor">查看安装脚本</a>
  77. </div>
  78. </div>
  79. </div>
  80. </div>{/if}
  81. </div>
  82. </div>
  83. </div>
  84. <div class="d2" id="instal-linux">
  85. <div class="wrap">
  86. <div class="wrap-title linux-title">
  87. <div class="text">Linux面板{:config_get('new_version')}安装脚本</div>
  88. </div>
  89. <div class="desc">
  90. 使用 SSH 连接工具,如
  91. <a class="link" href="https://www.putty.org/" target="_blank" rel="noreferrer">PUTTY</a>
  92. 连接到您的 Linux 服务器后,
  93. <a class="link" href="https://www.bt.cn/bbs/thread-50002-1-1.html" target="_blank" rel="noreferrer">挂载磁盘</a>
  94. ,根据系统执行相应命令开始安装:
  95. </div>
  96. <div class="install-code">
  97. <span class="osname">Centos安装脚本</span>
  98. <div class="code-cont">
  99. <div class="command" title="点击复制Centos安装脚本">yum install -y wget && wget -O install.sh {$siteurl}/install/install_6.0.sh && sh install.sh</div>
  100. <span class="ico-copy" title="点击复制Centos安装脚本" data-clipboard-text="yum install -y wget && wget -O install.sh {$siteurl}/install/install_6.0.sh && sh install.sh">复制</span>
  101. </div>
  102. </div>
  103. <div class="install-code">
  104. <span class="osname">Ubuntu/Debian安装脚本</span>
  105. <div class="code-cont">
  106. <div class="command" title="点击复制Ubuntu/Debian安装脚本">wget -O install.sh {$siteurl}/install/install_6.0.sh && bash install.sh</div>
  107. <span class="ico-copy" title="点击复制Ubuntu/Debian安装脚本" data-clipboard-text="wget -O install.sh {$siteurl}/install/install_6.0.sh && bash install.sh">复制</span>
  108. </div>
  109. </div>
  110. <div class="install-code">
  111. <span class="osname">一键更新脚本</span>
  112. <div class="code-cont">
  113. <div class="command" title="点击复制一键更新脚本">curl {$siteurl}/install/update6.sh|bash</div>
  114. <span class="ico-copy" title="点击复制一键更新脚本" data-clipboard-text="curl {$siteurl}/install/update6.sh|bash">复制</span>
  115. </div>
  116. </div>
  117. <div class="tips" style="color: orangered; font-weight: 700">
  118. <p>注意:必须为没装过其它环境如Apache/Nginx/php/MySQL的新系统,推荐使用centos 7.X的系统安装宝塔面板</p>
  119. <p style="text-indent: 3em">推荐使用Chrome、火狐、edge浏览器,国产浏览器请使用极速模式访问面板登录地址</p>
  120. <p style="text-indent: 3em">如果使用过官方版或其他第三方云端的版本,使用一键更新脚本即可切换到此云端</p>
  121. </div>
  122. </div>
  123. </div>
  124. <div class="d4" id="instal-windows" style="background-color: #edf6ef;">
  125. <div class="wrap">
  126. <div class="wrap-title">
  127. <div class="text">Windows面板{:config_get('new_version_win')}安装方法</div>
  128. </div>
  129. <div class="desc">
  130. <p>1、使用<a class="link" href="https://download.bt.cn/win/panel/BtSoft.zip" target="_blank" rel="noreferrer">官方安装程序</a>进行安装,安装完先不要进入面板。</p>
  131. <p>2、在命令提示符(cmd)输入以下一键更新命令,然后重启面板。</p>
  132. </div>
  133. <div class="install-code">
  134. <div class="code-cont">
  135. <div class="command" title="点击复制一键更新命令">wget {$siteurl}/win/panel/data/setup.py -O C:/update.py && &quot;C:\Program Files\python\python.exe&quot; C:/update.py update_panel {:config_get('new_version_win')}</div>
  136. <span class="ico-copy" title="点击复制一键更新命令" data-clipboard-text="wget {$siteurl}/win/panel/data/setup.py -O C:/update.py && &quot;C:\Program Files\python\python.exe&quot; C:/update.py update_panel {:config_get('new_version_win')}">复制</span>
  137. </div>
  138. </div>
  139. <div class="tips" style="color: orangered; font-weight: 700">
  140. <p>注意:仅支持Windows Server 2008 R2/2012/2016/2019/2022,64位系统(中文简体),且未安装其它环境</p>
  141. </div>
  142. </div>
  143. </div>
  144. {if config_get('new_version_btm')}
  145. <div class="d4" id="instal-monitor">
  146. <div class="wrap">
  147. <div class="wrap-title">
  148. <div class="text" style="margin-right: 12px;">云安全监控{:config_get('new_version_btm')}安装脚本</div>
  149. </div>
  150. <div class="desc">
  151. 使用 SSH 连接工具,如
  152. <a class="link" href="https://www.putty.org/" target="_blank" rel="noreferrer">PUTTY</a>
  153. 连接到您的 Linux 服务器后,根据系统执行相应命令开始安装:
  154. </div>
  155. <div class="install-code">
  156. <span class="osname">云安全监控安装脚本</span>
  157. <div class="code-cont">
  158. <div class="command" title="点击复制安装脚本">curl -sS {$siteurl}/install/install_btmonitor.sh -o /tmp/install_btmonitor.sh && bash /tmp/install_btmonitor.sh</div>
  159. <span class="ico-copy" title="点击复制安装脚本" data-clipboard-text="curl -sS {$siteurl}/install/install_btmonitor.sh -o /tmp/install_btmonitor.sh && bash /tmp/install_btmonitor.sh">复制</span>
  160. </div>
  161. </div>
  162. <div class="install-code">
  163. <span class="osname">云安全监控更新脚本</span>
  164. <div class="code-cont">
  165. <div class="command" title="点击复制更新脚本">curl {$siteurl}/install/update_btmonitor.sh|bash</div>
  166. <span class="ico-copy" title="点击复制更新脚本" data-clipboard-text="curl {$siteurl}/install/update_btmonitor.sh|bash">复制</span>
  167. </div>
  168. </div>
  169. <div class="tips" style="color: orangered; font-weight: 700">
  170. <p>注意:安装完成后推荐使用Chrome、火狐、edge浏览器,国产浏览器(极速模式)访问登录系统</p>
  171. </div>
  172. </div>
  173. </div>{/if}
  174. <div class="animate-bg"></div>
  175. </div>
  176. <div class="foot">
  177. <div class="wrap">
  178. <div class="fb textcenter">
  179. <div class="fb1 textcenter">
  180. <a href="http://www.bt.cn/new/agreement_open.html" target="_blank" rel="noreferrer">《开源许可协议》</a>
  181. <i></i>
  182. <a href="http://www.bt.cn/new/agreement_user.html" target="_blank" rel="noreferrer">《用户协议》</a>
  183. <i></i>
  184. <a href="http://www.bt.cn/new/agreement_privacy.html" target="_blank" rel="noreferrer">《隐私声明》</a>
  185. </div>
  186. <div class="fb2 mt_15">
  187. <p>
  188. Copyright © {:date('Y')} 宝塔面板安装脚本
  189. </p>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. <script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.6.0/jquery.min.js" type="text/javascript" charset="utf-8"></script>
  195. <script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/layer/3.5.1/layer.js" type="text/javascript" charset="utf-8"></script>
  196. <script type="text/javascript" src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/clipboard.js/1.7.1/clipboard.min.js"></script>
  197. <script type="text/javascript" src="/static/js/dx.js"></script>
  198. <script>
  199. $(function () {
  200. var userId = '';
  201. // 复制安装命令
  202. var clipboard = new Clipboard('.ico-copy', {
  203. text: function (element) {
  204. return $(element).prev().text();
  205. },
  206. });
  207. clipboard
  208. .on('success', function (e) {
  209. layer.msg(e.trigger.title + '成功', { icon: 1 });
  210. })
  211. .on('error', function (e) {
  212. layer.msg('复制失败,请手动选中文本Ctrl+c复制内容', { icon: 2 });
  213. });
  214. $('.install-code .command').click(function () {
  215. $(this).next('.ico-copy').click();
  216. });
  217. $('#goInstallLinux').click(function () {
  218. scrollTop('#instal-linux');
  219. });
  220. $('#goInstallWindows').click(function () {
  221. scrollTop('#instal-windows');
  222. });
  223. $('#goInstallCloud').click(function () {
  224. scrollTop('#instal-cloud');
  225. });
  226. $('#goInstallMonitor').click(function () {
  227. scrollTop('#instal-monitor');
  228. });
  229. function GetRequest() {
  230. var url = location.search;
  231. //获取url中"?"符后的字串
  232. var theRequest = new Object();
  233. if (url.indexOf('?') != -1) {
  234. var str = url.substr(1);
  235. }
  236. return str;
  237. }
  238. if (GetRequest() == 'bt') {
  239. scrollTop('#instal-linux');
  240. }
  241. // 滚动到指定位置
  242. function scrollTop(el) {
  243. var headHeight = 0;
  244. $('html, body').animate({ scrollTop: $(el).offset().top - headHeight }, { duration: 200, easing: 'swing' });
  245. }
  246. });
  247. </script>
  248. </body>
  249. </html>