树莓派硬件的配置,包括外置硬盘的挂载和设置,系统的烧录和设置就略了,详情见第一篇文章。
一:更新源安装Nginx服务器
sudo apt-get update
sudo apt-get install nginx
二: 启动Nginx服务器
//启动服务器的两种方式
sudo systemctl start nginx.service
sudo service nginx start
//查看服务器的状态
sudo systemctl status nginx.service
三:安装SQLIT3
//安装SQLIT3版本
sudo apt-get install sqlite3
四: 安装PHP7及其依赖模块
sudo apt-get install php7.3 php7.3-fpm php7.3-mbstring php7.3-curl php7.3-xml php7.3-xmlrpc php7.3-zip php7.3-common php7.3-cli php7.3-gd php-mcrypt php7.3-cgi php7.3-sqlite
五:配置PHP-FPM
sudo nano /etc/php/7.3/fpm/php-fpm.conf
; The maximum number of processes FPM will fork. This has been design to control
; the global number of processes when using dynamic PM within a lot of pools.
; Use it with caution.