天道酬勤,学无止境

个人网址导航

WebStack-Laravel+nginx搭建个人网址导航

环境centos 7.8nginx 1.16.1(自行编译安装)mysql 8.0.16(自行编译安装)php 7.2.12(自行编译安装)Composer 1.10.21(直接用yum安装) 下载程序包 mkdir /data/www/www.fafdy.com/ cd /data/www/www.fafdy.com/ git clone https://github.com/hui-ho/WebStack-Laravel.git 或者git clone https://gitee.com/feko/WebStack-Laravel.git cd WebStack-Laravel 安装依赖(可能有报错,提示连接数据库不上) composer install 创建数据库和用户 mysql -uroot -p123456 -e "create database wls2021;" mysql -uroot -p123456 -e "create user 'wls2021'@'127.0.0.1' identified with mysql_native_password by 'wls2021';" mysql -uroot -p123456 -e "grant all on wls2021.* to 'wls2021'@'127.0.0.1';" 编辑配置文件 cp .env

2021-05-19 06:50:04    分类:博客    WebStack-Laravel   nginx   个人网址导航   运维干货