nginx:
apt-get install nginx
默认安装在/etc/nginx
mysql8:
找到对应的package
https://dev.mysql.com/downloads/repo/apt/
dpkg -i mysql-apt-config_0.8.13-1_all.deb
点击5.7版本那里进去选择mysql8,退出来点击列表最下方OK
然后
apt update
apt install mysql-server
PHP7.3
apt-get install software-properties-common
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install -y php7.3
apt-get install php-fpm
查看可以安装的模块
apt-cache search php7*
附常用扩展:
sudo apt-get install -y php7.3-bcmath
sudo apt-get install -y php7.3-bz2
sudo apt-get install -y php7.3-calendar
sudo apt-get install -y php7.3-ctype
sudo apt-get install -y php7.3-curl
sudo apt-get install -y php7.3-dom
sudo apt-get install -y php7.3-enchant
sudo apt-get install -y php7.3-exif
sudo apt-get install -y php7.3-fileinfo
sudo apt-get install -y php7.3-ftp
sudo apt-get install -y php7.3-gd
sudo apt-get install -y php7.3-gettext
sudo apt-get install -y php7.3-gmp
sudo apt-get install -y php7.3-iconv
sudo apt-get install -y php7.3-intl
sudo apt-get install -y php7.3-json
sudo apt-get install -y php7.3-ldap
sudo apt-get install -y php7.3-mbstring
sudo apt-get install -y php7.3-mysqli
sudo apt-get install -y php7.3-mysqlnd
sudo apt-get install -y php7.3-opcache
sudo apt-get install -y php7.3-pdo
sudo apt-get install -y php7.3-phar
sudo apt-get install -y php7.3-posix
sudo apt-get install -y php7.3-pspell
sudo apt-get install -y php7.3-readline
sudo apt-get install -y php7.3-shmop
sudo apt-get install -y php7.3-simplexml
sudo apt-get install -y php7.3-snmp
sudo apt-get install -y php7.3-soap
sudo apt-get install -y php7.3-sockets
sudo apt-get install -y php7.3-sqlite3
sudo apt-get install -y php7.3-sysvmsg
sudo apt-get install -y php7.3-sysvsem
sudo apt-get install -y php7.3-sysvshm
sudo apt-get install -y php7.3-wddx
sudo apt-get install -y php7.3-xml
sudo apt-get install -y php7.3-xsl
sudo apt-get install -y php7.3-recode
sudo apt-get install -y php7.3-dba
sudo apt-get install -y php7.3-imap
sudo apt-get install -y php7.3-interbase
sudo apt-get install -y php7.3-odbc
sudo apt-get install -y php7.3-pgsql
sudo apt-get install -y php7.3-tidy
sudo apt-get install -y php7.3-zip
sudo apt-get install -y php7.4-bcmath php7.4-calendar php7.4-Core php7.4-ctype php7.4-curl php7.4-date php7.4-dom php7.4-exif php7.4-fileinfo php7.4-filter php7.4-ftp php7.4-gd php7.4-gettext php7.4-gmp php7.4-hash php7.4-iconv php7.4-json php7.4-libxml php7.4-mbstring php7.4-mysqli php7.4-mysqlnd php7.4-openssl php7.4-pcntl php7.4-pcre php7.4-PDO php7.4-pdo_mysql php7.4-pdo_sqlite php7.4-Phar php7.4-posix php7.4-readline php7.4-Reflection php7.4-session php7.4-shmop php7.4-SimpleXML php7.4-soap php7.4-sockets php7.4-sodium php7.4-SPL php7.4-sqlite3 php7.4-standard php7.4-sysvmsg php7.4-sysvsem php7.4-sysvshm php7.4-tokenizer php7.4-wddx php7.4-xml php7.4-xmlreader php7.4-xmlwriter php7.4-xsl php7.4-opcache php7.4-zip php7.4-zlib