安装前需修改php.ini配置文件;
找到disable_functions=
删除其中的proc_get_status和proc_open;
新建项目文件夹;
composer create-project --prefer-dist laravel/laravel 文件夹名;
如报错:The following exception is caused by a lack of memory or swap, or not having swap configured
则执行:
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1
安装完成后
chmod
777 -R storage/
原文地址:https://www.cnblogs.com/didiaoge/p/10876928.html
时间: 2024-10-10 15:47:07