Skip to content

Latest commit

 

History

History
23 lines (23 loc) · 1.85 KB

购买设置服务器.md

File metadata and controls

23 lines (23 loc) · 1.85 KB

阿里云服务器,安装php7,MySQL,Nginx,TP5记录

  1. https://blog.csdn.net/zhezhebie/article/details/73325663,这篇文,写的是用yum安装php7的方法,最后有php7.2的安装方法
  2. https://www.cnblogs.com/ianduin/p/7679239.html,这篇文,写的是用yum安装MySQL5.7的方法
  3. https://blog.csdn.net/lnboxue/article/details/74783885,这篇文,写的是用yum安装nginx的方法 关于nginx的使用: 1、这个是nginx的conf详解:https://www.cnblogs.com/zhang-shijie/p/5428640.html
  4. https://www.kancloud.cn/manual/thinkphp5/118006,这篇文章,是tp5官网的安装方法 1、可以用composer安装; 可以用git安装; 可以在官网下载安装 2、分为两部分,一个是应用项目,一个是框架核心
  5. tp5在nginx上,index.php要取消掉的话,需要修改xxx.conf,具体可以参看 1、https://www.cnblogs.com/wuheng1991/p/6962878.html 2、最好设置为强制使用路由 3、如果想用?aa=xx的方式传get值,可以将config里面的app.php的url_common_param的值改成true 4、可以修改nginx的conf,将其版本号隐藏,参见:https://www.cnblogs.com/toughlife/p/5475180.html
  6. 升级wget到1.19.2以上,参见:https://blog.csdn.net/rczrj/article/details/78931007
  7. Linux使用 1、查看端口被什么进程占用 使用netstat 和lsof(list open files)命令,并用grep来过滤你需要查看的端口。 参见:https://www.cnblogs.com/CEO-H/p/7794306.html 2、查找文件或者文件中的内容,grep方法,eg: grep -r "xxx" 递归查询
  8. 要安装https的免费证书,先从酷壳中的方法,按照基本安装,会有0.14newer的bug。 然后参见:https://www.aliyun.com/jiaocheng/528093.html?spm=5176.100033.1.23.7hB3M7 阿里云买的域名,也可以通过域名管理界面,点击ssl证书,下载免费证书,但是证书只有一年