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.

158 lines
5.7 KiB

3 years 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="mt_30 i1ta wap_mt15">
  24. <a href="https://demo.bt.cn" target="_block" rel="noreferrer">查看演示</a>
  25. <a href="javascript:;" id="goInstallLinux">
  26. <img class="middle mr10" src="/static/images/i1aico_03.png">
  27. 立即免费安装
  28. </a>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="d2" id="instal-linux">
  34. <div class="wrap">
  35. <div class="wrap-title linux-title">
  36. <div class="text">使用此云端的宝塔面板(版本:{:config_get('new_version')})</div>
  37. </div>
  38. <div class="desc">
  39. 使用 SSH 连接工具,如
  40. <a class="link" href="https://www.putty.org/" target="_blank" rel="noreferrer">PUTTY</a>
  41. 连接到您的 Linux 服务器后,
  42. <a class="link" href="https://www.bt.cn/bbs/thread-50002-1-1.html" target="_blank" rel="noreferrer">挂载磁盘</a>
  43. ,根据系统执行相应命令开始安装:
  44. </div>
  45. <div class="install-code">
  46. <span class="osname">一键安装脚本</span>
  47. <div class="code-cont">
  48. <div class="command" title="点击复制一键安装脚本">wget -O install.sh {$siteurl}/install/install_6.0.sh && sh install.sh</div>
  49. <span class="ico-copy" title="点击复制一键安装脚本" data-clipboard-text="wget -O install.sh {$siteurl}/install/install_6.0.sh && sh install.sh">复制</span>
  50. </div>
  51. </div>
  52. <div class="install-code">
  53. <span class="osname">一键更新脚本</span>
  54. <div class="code-cont">
  55. <div class="command" title="点击复制一键更新脚本">curl {$siteurl}/install/update6.sh|bash</div>
  56. <span class="ico-copy" title="点击复制一键更新脚本" data-clipboard-text="curl {$siteurl}/install/update6.sh|bash">复制</span>
  57. </div>
  58. </div>
  59. <div class="tips" style="color: orangered; font-weight: 700">
  60. <p>注意:必须为没装过其它环境如Apache/Nginx/php/MySQL的新系统,推荐使用centos 7.X的系统安装宝塔面板</p>
  61. <p style="text-indent: 3em">推荐使用Chrome、火狐、edge浏览器,国产浏览器请使用极速模式访问面板登录地址</p>
  62. <p style="text-indent: 3em">如果使用过官方版或其他第三方云端的版本,使用一键更新脚本即可切换到此云端</p>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="d4" id="instal-cloud">
  67. <div class="wrap">
  68. <div class="wrap-title">
  69. <div class="text">更新日志</div>
  70. </div>
  71. <div class="desc">
  72. <p>宝塔Linux面板更新到{:config_get('new_version')}</p>
  73. </div>
  74. </div>
  75. </div>
  76. <div class="animate-bg"></div>
  77. </div>
  78. <div class="foot">
  79. <div class="wrap">
  80. <div class="fb textcenter">
  81. <div class="fb1 textcenter">
  82. <a href="http://www.bt.cn/new/agreement_open.html" target="_blank" rel="noreferrer">《开源许可协议》</a>
  83. <i></i>
  84. <a href="http://www.bt.cn/new/agreement_user.html" target="_blank" rel="noreferrer">《用户协议》</a>
  85. <i></i>
  86. <a href="http://www.bt.cn/new/agreement_privacy.html" target="_blank" rel="noreferrer">《隐私声明》</a>
  87. </div>
  88. <div class="fb2 mt_15">
  89. <p>
  90. Copyright © 2022 宝塔面板安装脚本
  91. </p>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. <script src="//cdn.staticfile.org/jquery/3.6.0/jquery.min.js" type="text/javascript" charset="utf-8"></script>
  97. <script src="//cdn.staticfile.org/layer/3.5.1/layer.js" type="text/javascript" charset="utf-8"></script>
  98. <script type="text/javascript" src="//cdn.staticfile.org/clipboard.js/1.7.1/clipboard.min.js"></script>
  99. <script type="text/javascript" src="/static/js/dx.js"></script>
  100. <script>
  101. $(function () {
  102. var userId = '';
  103. // 复制安装命令
  104. var clipboard = new Clipboard('.ico-copy', {
  105. text: function (element) {
  106. return $(element).prev().text();
  107. },
  108. });
  109. clipboard
  110. .on('success', function (e) {
  111. layer.msg(e.trigger.title + '成功', { icon: 1 });
  112. })
  113. .on('error', function (e) {
  114. layer.msg('复制失败,请手动选中文本Ctrl+c复制内容', { icon: 2 });
  115. });
  116. $('.install-code .command').click(function () {
  117. $(this).next('.ico-copy').click();
  118. });
  119. $('#goInstallLinux').click(function () {
  120. scrollTop('#instal-linux');
  121. });
  122. $('#goOnlineInstall').click(function () {
  123. scrollTop('#online-instal');
  124. });
  125. $('#goInstallCloud').click(function () {
  126. scrollTop('#instal-cloud');
  127. });
  128. function GetRequest() {
  129. var url = location.search;
  130. //获取url中"?"符后的字串
  131. var theRequest = new Object();
  132. if (url.indexOf('?') != -1) {
  133. var str = url.substr(1);
  134. }
  135. return str;
  136. }
  137. if (GetRequest() == 'bt') {
  138. scrollTop('#instal-linux');
  139. }
  140. // 滚动到指定位置
  141. function scrollTop(el) {
  142. var headHeight = 0;
  143. $('html, body').animate({ scrollTop: $(el).offset().top - headHeight }, { duration: 200, easing: 'swing' });
  144. }
  145. });
  146. </script>
  147. </body>
  148. </html>