#!/bin/bash # Download and install Brook Server curl -L https://github.com/txthinking/brook/releases/download/v20200909/brook_linux_amd64 -o /usr/bin/brook chmod +x /usr/bin/brook # Create systemd service file for Brook Server cat <<EOF > /etc/systemd/system/brook.service [Unit] Description=Brook Server After=network.target [Service] User=root ExecStart=/usr/bin/brook server -l :9999 -p password Restart=on-failure [Install] WantedBy=multi-user.target EOF # Reload systemd configuration and enable Brook service systemctl daemon-reload systemctl enable brook.service # Start Brook Server systemctl start brook.service
启动
chmod +x brook_install.sh ./brook_install.sh
最新评论