Skip to content
Search Anolis OS

This page uses Chinese content. Search opens the Chinese documentation.

    Browse this documentation

    Anolis 23 LEMP 栈部署:nginx + MariaDB + PHP 实测

    This content is not available in your language yet.

    全链在 VM 431(Anolis 23.5)实测(E3);TLS/虚拟主机/性能调优不在本页。

    Terminal window
    # nginx
    sudo dnf install -y nginx
    sudo systemctl enable --now nginx
    nginx -v # 1.30.4
    # MariaDB
    sudo dnf install -y mariadb-server
    sudo systemctl enable --now mariadb
    # PHP + FPM
    sudo dnf install -y php php-fpm php-mysqlnd
    sudo systemctl enable --now php-fpm
    php -v # 8.3.36
    # 防火墙
    sudo firewall-cmd --permanent --add-service=http
    sudo firewall-cmd --reload
    # 验证
    curl -s -o /dev/null -w '%{http_code}\n' http://localhost/ # 200
    ss -tlnp | grep -E '(:80|:3306|:9000)'

    包名/服务名与 Rocky/Alma 一致(nginx/mariadb-server/php-fpm);差异在仓库供给(23 线 os 树双层、包后缀 -an23)——跨范围结构一致,本页提供 Anolis 特有锚点。