Laravel+Vue front-end and back-end separation project (1) quickly build an LNMP environment

Install niginx:

sudo apt-get update

sudo apt-get install nginx

Install php:

sudo apt -y install software-properties-common apt-transport-https lsb-release ca-certificates

sudo add-apt-repository ppa:ondrej/php

sudo apt update

sudo apt install php7.2-fpm php7.2-mysql php7.2-curl php7.2-gd php7.2-mbstring php7.2-xml php7.2-xmlrpc php7.2-zip php7.2-opcache

Install mysql:

sudo apt-get install mysql-server mysql-client // will let you enter your password twice

Install git:

sudo apt-get install git 

Install composer:

sudo apt-get install composer 

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

Install unzip:

sudo apt-get install unzip 

Guess you like

Origin blog.csdn.net/qq_33514421/article/details/103850014