server
Ngix
vps
Linux
Static hostname: server2
Icon name: computer-vm
Chassis: vm 🖴
Machine ID: bc0a3908a261d1fdecb5bcbd8b9032bc
Boot ID: 44791200de3046fdbd210cfa8dea6242
Virtualization: kvm
Operating System: AlmaLinux 9.0 (Emerald Puma)
CPE OS Name: cpe:/o:almalinux:almalinux:9::baseos
Kernel: Linux 5.14.0-70.30.1.el9_0.x86_64
Architecture: x86-64
Hardware Vendor: Red Hat
Hardware Model: KVM
命令:curl -sL yabs.sh | bash
Yet-Another-Bench-Script v2023-09-06 https://github.com/masonr/yet-another-bench-script
<如果有需要關聯式資料庫可繼續安裝>
13. 安裝 mariaDB
apt -y install mariadb-server
systemctl enable mariadb
systemctl start mariadb
接著馬上更改 mariadb的密碼
mysql_secure_installation
<如果有需要php-fpm可繼續安裝> 14. 安裝 php-fpm
apt -y install php php-fpm php-common php-pear php-mbstring
systemctl enable php7.3-fpm
systemctl start php7.3-fpm
nano /etc/nginx/sites-available/default
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
systemctl restart php7.3-fpm nginx
nano /var/www/html/index.php
<?php phpinfo(); ?>