承接 amouhzi/pool-pilot 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

amouhzi/pool-pilot

最新稳定版本:v1.0.6

Composer 安装命令:

composer create-project amouhzi/pool-pilot

包简介

A command-line tool to simplify the management of multiple PHP applications on a single server using PHP-FPM pools.

README 文档

README

PoolPilot is a command-line tool that simplifies infrastructure management for developers running multiple PHP applications on a single Debian/Ubuntu instance. Instead of maintaining a separate LXC container for every project, PoolPilot orchestrates a secure, shared environment using PHP-FPM pools.

This tool automates the manual labor of system administration by handling:

  • User Isolation: Creates dedicated system users and groups for each application to enforce strict filesystem permissions.
  • FPM Configuration: Generates unique PHP-FPM pool configurations with dynamic socket allocation.
  • Version Awareness: Automatically detects the running PHP version (e.g., 8.2, 8.3) to apply the correct paths and service restarts.
  • Service Management: Seamless interaction with systemd to reload configurations instantly.

Installation

1. Install PoolPilot

Install PoolPilot globally using Composer:

composer global require amouhzi/pool-pilot

2. Update Your System PATH

To run the pool-pilot command from anywhere, you must add Composer's global bin directory to your system's PATH.

First, find the correct directory by running:

composer global config bin-dir --absolute

Now, add the following line to your shell configuration file (e.g., ~/.bashrc, ~/.zshrc). Replace ~/.composer/vendor/bin with the path you found above if it's different.

export PATH="$HOME/.composer/vendor/bin:$PATH"

Finally, reload your shell configuration to apply the changes:

source ~/.bashrc
# Or for Zsh:
# source ~/.zshrc

Updating

To update PoolPilot to the latest version, run:

composer global update amouhzi/pool-pilot

Usage

PoolPilot can be run in two modes: as the root user for simplicity, or as a non-root user for enhanced security.

Simple Mode (As Root)

If you are logged in as root, you can run the command directly. The tool will handle all system operations without needing sudo.

pool-pilot app:create my-app my-app.com

Secure Mode (As a Non-Root User)

This is the recommended approach for production servers and automated deployments (e.g., with php-deployer).

  1. Create a Deployer User: If you don't have one, create a dedicated user for deployments.

  2. Configure Sudo: The tool will automatically use sudo for privileged operations. To allow this without a password, create a sudoers file for your deployer user:

    sudo visudo -f /etc/sudoers.d/deployer

    Add the following lines, which grant password-less access only to the commands PoolPilot needs:

    # Allow the deployer user to manage users, services, and files for PoolPilot
    deployer ALL=(ALL) NOPASSWD: /usr/sbin/useradd, /usr/sbin/groupadd, /bin/systemctl, /bin/chown, /bin/chmod, /usr/bin/ln, /usr/bin/mkdir, /usr/bin/tee
    
  3. Run the Command: As the deployer user, run the command. sudo will be invoked automatically where needed.

    pool-pilot app:create my-app my-app.com

Contributing

Contributions are welcome! Please feel free to submit a pull request.

License

This project is licensed under the MIT License.

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固