飞道的博客

ubuntu20.04.2上安装nginx+php-fpm

702人阅读  评论(0)

 

1.更新安装源

 

sudo apt-get update 

 

2.安装nginx

 

sudo apt install nginx

  
  1. $ service nginx status
  2. ● nginx.service - A high performance web server and a reverse proxy server
  3. Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
  4. Active: active (running) since Mon 2020-11-23 08:57:13 UTC; 2h 13min ago
  5. Docs: man:nginx(8)
  6. Main PID: 2611 (nginx)
  7. Tasks: 2 ( limit: 1164)
  8. Memory: 4.8M
  9. CGroup: /system.slice/nginx.service
  10. ├─2611 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
  11. └─2612 nginx: worker process

 

3.安装php

 

sudo apt install php
  • 这里会默认安装apache2,需要禁用
sudo systemctl 

转载:https://blog.csdn.net/qq_27868061/article/details/110001689
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场