当前位置:网站首页>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 blogIt'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 .
边栏推荐
- [game theory complete information static game] Nash equilibrium
- Get properties of class
- 第115页的gtk+编程例子——最简单的进度条2附带使用Anjuta写gtk程序的步骤
- Common shell script development specifications
- Four ways to install MySQL in Linux
- es6删除对象的某个属性
- 17. how to understand multi version concurrency control and read / write sets of fabric smart contracts? (vernacular version)
- Edge浏览器如何安装BdTab(BD)新标签页插件(图文教程)
- 本地靶场2-文件上传漏洞(三)-网络安全
- How to dynamically delete data rows in a table through JS (keep the head)
猜你喜欢

HCIP_ OSPF irregular area

Operation of simulated examination platform for examination question bank of G3 boiler water treatment operation certificate in 2022

ERP basic data Huaxia

Microservice project construction III: automatic code generation

BD新标签页(BdTab)插件如何登入?

EHD ether coin, the hottest dpoc mining project

使用kvm创建三台能通局域网的虚拟机

Overall process analysis of account book operation in fabric0.6

Install cuda+cusp environment and create the first helloword starter project

Overview of cross chain protocol IBC
随机推荐
[game theory complete information static game] Nash equilibrium
Microservice system architecture construction I: Environment Construction
EHD ether coin, the hottest dpoc mining project
What software can be used to solve the problems faced by the auto parts industry
4. fabric2.2 create and join channels (use the official demo)
MySQL interview questions
【完全信息静态博弈-Nash均衡的特性】
Using KVM to create three virtual machines that can communicate with local area network
HCIP_ Static experiment
AcWing 1977. 信息中继(基环树,并查集)
Idea shortcut summary
本地靶场2-文件上传漏洞(三)-网络安全
ERP basic data Huaxia
The way of distributed system: Lamport logical clock
IPFs cluster setup process
How does the BD new tab plug-in log in?
Word中批注的使用方法
Effective Go - The Go Programming Language
钉钉小程序 父子传参数对象 子组件页面不更新?
MySQL query exercise