当前位置:网站首页>Homestead environment setup
Homestead environment setup
2022-06-13 08:18:00 【Parthenocissus still works】
according to laravel Community document steps , install VirtualBox, install Vagrant, download Homestead And import Homestead Box, install git, download Homestead Manage scripts (git clone https://git.coding.net/summerblue/homestead.git Homestead) And initialize (bash init.sh),Homestead.yaml The configuration file can be modified ip, Site services , database ,ssh Key login , Shared file configuration, etc , Refer to the documentation for details .
Good configuration Homestead.yaml File, you can start vagrant 了 (vagrant up), adopt vagrant ssh Sign in vagrant, But here's a question : The built environment lacks redis and mongo. The document says that these should be installed by default , Later on Homestead.yaml In the configuration features: Combined with the redis and mongodb, It still doesn't work ( I look forward to hearing from my friends ).
Go to the site directory (~/Code) Download laravel Source code , Various errors are reported during downloading . Check the document and switch to composer Source :
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
Then download again :
composer create-project --prefer-dist laravel/laravel blog
It's a success this time , Occasionally, sometimes composer The failure of the update command may be caused by the poor network , Just execute it again .
According to the site name and nginx Configure and set up the site , Directory and local hosts After the document , Visit Site http://homestead.test, Tips 500 Error. Check that all necessary services are started normally . see nginx Error log ,PHP Fatal error: Declaration of TranslatorInterface::setLocale($locale) must be compatible with LocaleAwareInterface::setLocale(string $locale), Seems to follow php of , I have tried several times to locate php On the issue of version . stay shell perform php Is, indeed, php7.4 But in laravel Printed out in the code php The version is 7.1, stay Homestead.yaml Add... Under site configuration php:"7.4" Restarting still doesn't work , Finally, manually in nginx The configuration file has been modified fastcgi_pass by 7.4. heavy load nginx To configure . Refresh the browser and the website displays normally .
边栏推荐
- Dfinity (ICP) identity authentication and ledger quick start-3
- 将solidworks建的机器人模型导入到ros中
- Edge浏览器如何安装BdTab(BD)新标签页插件(图文教程)
- set实现名单查找与排除
- Methods of importing and exporting settings in Altium Designer
- Free file server storage technology
- LVM management exercise
- 汽配行业面临的难题用什么软件帮忙解决呢
- 有什么好的管理软件来解决茶叶批发商面临的难题
- Document contains question type
猜你喜欢
HCIP_ MGRE comprehensive experiment
AcWing 1977. 信息中继(基环树,并查集)
How to install the bdtab (BD) new tab plug-in in edge browser (Graphic tutorial)
HCIP_ MGRE experiment
HCIP_ Static experiment
Bidirectional retransmission step experiment
ERP basic data Huaxia
从零开始-实现JpetStore网站-1-建立项目框架以及项目介绍
How to efficiently manage commodities and inventory in the beverage wholesale industry
The way of distributed system: Lamport logical clock
随机推荐
Do not update the sub component page of parameter object passed from parent to child of nailing applet?
【PYTORCH】Expected object of type torch. xxxTensor but found type torch. cuda. xxxTensor(torch0.4.0)
How to hide tabs in nailing applet
Four ways to install MySQL in Linux
杨氏矩阵查找数字是否存在
mysql面试题
What software can be used to solve the problems faced by the auto parts industry
Install cuda+cusp environment and create the first helloword starter project
MySQL query exercise 3
MySQL interview questions
Disk C is full? A few simple tips teach you to release and clean up tens of gigabytes of space on the C disk, the most effective way to clean up the C disk
CCNP_ Bt- Reissue
AcWing 1977. 信息中继(基环树,并查集)
SQL injection question type (manual injection +sqlmap)
redis面试题
6. fabric2.2 stop clustering and delete data (use the official demo)
Amino encoding protocol
Set implements list search and exclusion
Recognition of COVID-19 based on paddlepaddle
名次的确定