想搞一下小程序,又不想从头开始写代码,在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安装
所以对于新手站长们,如果时间允许的话,推荐使用编译安装
安装过程:
等待。。。。