重置騰訊雲服務器,安裝linux寶塔面板


 

 

 

 

 

 

 

 

想搞一下小程序,又不想從頭開始寫代碼,在gitee上找了個開源的商城項目,雖然這類項目實在是很多,但是找到一個后台php開發而且有完整文檔的還可真不容易。

結果一看文檔,是寶塔面板部署的

https://gitee.com/xany/bestshop-php

想着榨汁機也壞掉了,oj還得重新安裝一下,倒不如直接把服務器重裝了

原配置

linux--Ubuntu 14

1核2G

重置為:

linux--centos7.8

1核2G

 

重置之前備份快照

寶塔面板

命令行極速安裝:

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

安裝完成

Starting Bt-Panel....    done
Starting Bt-Tasks...     done
username: tzrs4uby
Stopping Bt-Tasks...    done
Stopping Bt-Panel...    done
Starting Bt-Panel....    done
Starting Bt-Tasks...     done
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Package firewalld-0.6.3-8.el7_8.1.noarch already installed and latest version
Nothing to do
Created symlink from /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service to /usr/lib/systemd/system/firewalld.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/firewalld.service to /usr/lib/systemd/system/firewalld.service.
success
==================================================================
Congratulations! Installed successfully!
==================================================================
外網面板地址: http://xx.xx.xx.xx:8888/58a6521b
內網面板地址: http://xx.xx.xx.xx:8888/58a6521b
username: tzrs4uby
password: xxxxx
If you cannot access the panel,
release the following panel port [8888] in the security group
若無法訪問面板,請檢查防火牆/安全組是否有放行面板[8888]端口
==================================================================
Time consumed: 1 Minute!
[root@VM-0-10-centos ~]# ^C
[root@VM-0-10-centos ~]# 

打開外網面板地址:

安裝成功的話,直接顯示面板,輸入帳密,登陸

(在linux上安裝完成之后控制台顯示帳密)

讓選擇環境

我選擇的 是:

LNMP  編譯安裝 

快速安裝和編譯安裝的優缺點:

復制粘貼:

編譯安裝也叫源碼安裝,寶塔官方給出的提示是 安裝時間長(30-3小時)適合生產環境,極速安裝也叫RPM安裝,安裝時間極快,性能與穩定性略低於編譯安裝。

實際上用RPM包安裝的概率遠遠大於編譯安裝。在部署軟件的時候可能會遇到特定版本中間件(如NGINX,PHP等),需要安裝定制的插件,需要制定需要的路徑,這個時候選用源碼安裝就顯得更容易勝任。但是如果成規模的管理服務器比如1000以上,至少100以上,如果相同的環境,需要相同的軟件,源碼安裝就顯得有點捉襟見肘了。使用安裝腳本只能避免不會出現差異化的環境,在部署效率上會大大降低。至少你還需要在每台機器上安裝編譯環境,至少降低了系統的安全和穩定性。(擁有編譯環境的生產服務器多少還是有一些危險),而RPM執行效率就體現出來了。

 

簡單點說就是 當機器少的時候,擴展要求高就用編譯安裝,如果管理幾十台、上百台,批量安裝環境的時候,大家很都用RPM安裝
所以對於新手站長們,如果時間允許的話,推薦使用編譯安裝

 

 

安裝過程:

 

 

等待。。。。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM