安装nginx
sudo apt update
sudo apt install nginx
安装php7.4
1.add-apt-repository ppa:ondrej/php 2.apt-get update 3.apt-get install php7.4 php7.4-common php7.4-cli apt-get install php7.4-curl php7.4-json php7.4-gd php7.4-mbstring php7.4-intl php7.4-bcmath php7.4-bz2
php7.4-readline php7.4-zip php7.4-fpm php7.4-mysql php7.4-simplexml php7.4-xml php7.4-xslapt-get install php7.4-memcached
版本查看
update-alternatives --config php
安装mysql 8.0
sudo apt -y install mysql-server ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by '123456'; flush privileges;
端口设置
查看端口状态 ufw status ufw allow 80/tcp 添加想开放的端口 ufw status firewall-cmd --state firewall-cmd --zone=public --add-port=80/tcp --permanent
标签:20,get,--,php7.4,apt,Lamp,install,Ubuntu,mysql From: https://www.cnblogs.com/eatmore/p/17637984.html