{"id":30602308,"url":"https://github.com/kldhsh123/scp-sl-autodeploy","last_synced_at":"2025-10-22T03:02:08.824Z","repository":{"id":297946116,"uuid":"998372651","full_name":"kldhsh123/SCP-SL-AutoDeploy","owner":"kldhsh123","description":"SCPSL Linux server automatic deployment-SCPSL linux服务端一键部署","archived":false,"fork":false,"pushed_at":"2025-08-29T13:54:32.000Z","size":156,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-29T16:42:50.010Z","etag":null,"topics":["exiled","exmod","scp","scpsl","scpslserver","sl"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kldhsh123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-08T13:26:39.000Z","updated_at":"2025-08-06T07:39:39.000Z","dependencies_parsed_at":"2025-06-08T14:43:15.142Z","dependency_job_id":null,"html_url":"https://github.com/kldhsh123/SCP-SL-AutoDeploy","commit_stats":null,"previous_names":["kldhsh123/scp-sl-autodeploy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kldhsh123/SCP-SL-AutoDeploy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kldhsh123%2FSCP-SL-AutoDeploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kldhsh123%2FSCP-SL-AutoDeploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kldhsh123%2FSCP-SL-AutoDeploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kldhsh123%2FSCP-SL-AutoDeploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kldhsh123","download_url":"https://codeload.github.com/kldhsh123/SCP-SL-AutoDeploy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kldhsh123%2FSCP-SL-AutoDeploy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280370890,"owners_count":26319318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["exiled","exmod","scp","scpsl","scpslserver","sl"],"created_at":"2025-08-30T00:34:36.807Z","updated_at":"2025-10-22T03:02:08.626Z","avatar_url":"https://github.com/kldhsh123.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SCP:SL Linux 服务端一键部署脚本 / SCP:SL Server Linux Auto-Deploy Script\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n[![Shell Script](https://img.shields.io/badge/Shell-Bash-green.svg)](https://www.gnu.org/software/bash/)\n[![Platform](https://img.shields.io/badge/Platform-Ubuntu%2022.04%2B%20%7C%20Debian%2012%2B-orange.svg)](https://github.com/kldhsh123/SCP-SL-AutoDeploy)\n\n一个功能完整的 Linux SCP: Secret Laboratory 服务端自动化部署脚本，支持双语界面、智能系统检测、自动依赖安装、防火墙配置、EXILED 模组管理等功能。\n\nA comprehensive Linux SCP: Secret Laboratory server auto-deployment script with bilingual interface, intelligent system detection, automatic dependency installation, firewall configuration, EXILED mod management, and more.\n![18ab0d4d233dc8ff4a53419918102e9e](https://github.com/user-attachments/assets/60d92854-3d7f-4a4c-a724-b185de6c753a)\n\n\n## 🌟 主要特性 / Key Features\n\n### 🔧 智能系统管理 / Intelligent System Management\n- **系统兼容性检测** / System compatibility detection (Ubuntu 22.04+, Debian 12+)\n- **架构验证** / Architecture validation (x86_64 only)\n- **资源评估** / Resource assessment (RAM, CPU, Disk space)\n- **自动虚拟内存配置** / Automatic swap configuration with optimization\n\n### 🌐 双语支持 / Bilingual Support\n- **智能语言检测** / Intelligent language detection\n- **完整中英文界面** / Complete Chinese/English interface\n- **双语日志输出** / Bilingual logging output\n\n### 🛡️ 安全与网络 / Security \u0026 Network\n- **防火墙自动配置** / Automatic firewall configuration (UFW/Firewalld/Iptables)\n- **端口管理** / Port management\n- **GitHub 加速镜像支持** / GitHub acceleration mirror support for China\n\n### 🎮 游戏服务端管理 / Game Server Management\n- **SteamCMD 自动安装** / Automatic SteamCMD installation\n- **SCP:SL 服务端部署** / SCP:SL server deployment\n- **EXILED 模组框架** / EXILED mod framework integration\n- **Tmux 会话管理** / Tmux session management\n\n### 📊 运维工具 / Operations Tools\n- **完整管理脚本** / Complete management scripts\n- **服务端状态监控** / Server status monitoring\n- **一键更新功能** / One-click update functionality\n- **虚拟内存优化** / Memory optimization tools\n\n![74c1edee07811d0565964a59450c8da2](https://github.com/user-attachments/assets/70947230-9a37-4dff-9892-6c2a8ca082f4)\n\n\n## 📋 系统要求 / System Requirements\n\n### 支持的操作系统 / Supported Operating Systems\n- **Ubuntu 22.04 LTS** 或更高版本 / or higher\n- **Debian 12** 或更高版本 / or higher\n\n### 硬件要求 / Hardware Requirements\n- **CPU**: 2核心或以上 / 2 cores or more (推荐 / recommended)\n- **内存**: 3GB RAM 或以上 / or more (推荐 / recommended)\n- **存储**: 4GB 可用空间 / available space (推荐 / recommended)\n- **架构**: x86_64 (不支持 ARM / ARM not supported)\n\n### 网络要求 / Network Requirements\n- **互联网连接** / Internet connection (用于下载依赖 / for downloading dependencies)\n- **开放端口** / Open ports: 7777 (默认游戏端口 / default game port)\n\n## 🚀 快速开始 / Quick Start\n\n### 方法一：直接下载运行 / Method 1: Direct Download \u0026 Run\n\n```bash\n# 下载脚本 / Download script\nwget https://raw.githubusercontent.com/kldhsh123/SCP-SL-AutoDeploy/main/scpsl-server-install.sh\n\n# 或使用加速镜像 (中国大陆用户推荐) / Or use acceleration mirror (recommended for China mainland users)\nwget https://j.1lin.dpdns.org/https://raw.githubusercontent.com/kldhsh123/SCP-SL-AutoDeploy/main/scpsl-server-install.sh\n\n# 赋予执行权限 / Grant execute permission\nchmod +x scpsl-server-install.sh\n\n# 运行脚本 / Run script\nsudo ./scpsl-server-install.sh\n```\n\n### 方法二：克隆仓库 / Method 2: Clone Repository\n\n```bash\n# 克隆仓库 / Clone repository\ngit clone https://github.com/kldhsh123/SCP-SL-AutoDeploy.git\n\n# 或使用加速镜像 / Or use acceleration mirror\ngit clone https://j.1lin.dpdns.org/https://github.com/kldhsh123/SCP-SL-AutoDeploy.git\n\n# 进入目录 / Enter directory\ncd SCP-SL-AutoDeploy\n\n# 运行安装脚本 / Run installation script\nsudo ./scpsl-server-install.sh\n```\n\n## 🔧 安装过程 / Installation Process\n\n脚本将自动执行以下步骤 / The script will automatically perform the following steps:\n\n1. **语言检测与选择** / Language detection and selection\n2. **系统兼容性检查** / System compatibility check\n3. **资源评估** / Resource assessment\n4. **虚拟内存配置** / Swap configuration (如需要 / if needed)\n5. **依赖软件安装** / Dependency installation\n   - SteamCMD\n   - Mono\n   - 必要的库文件 / Required libraries\n6. **用户环境设置** / User environment setup\n7. **SCP:SL 服务端下载** / SCP:SL server download\n8. **防火墙配置** / Firewall configuration\n9. **EXILED 模组安装** / EXILED mod installation\n10. **管理脚本创建** / Management scripts creation\n\n## 📖 管理命令 / Management Commands\n\n安装完成后，使用 `scpsl-manager` 命令管理服务端 / After installation, use `scpsl-manager` command to manage the server:\n\n### 基本操作 / Basic Operations\n```bash\nscpsl-manager start [id]     # 启动服务端 (可选ID) / Start server (optional ID)\nscpsl-manager stop [id]      # 停止服务端 (可选ID) / Stop server (optional ID)\nscpsl-manager restart [id]   # 重启服务端 (可选ID) / Restart server (optional ID)\nscpsl-manager status [id]    # 查看状态 (无ID则列出所有实例) / Check status (list all instances if no ID)\nscpsl-manager console [id]   # 连接控制台 (可选ID) / Connect to console (optional ID)\nscpsl-manager update         # 更新服务端 / Update server\n```\n\n### 高级功能 / Advanced Features\n```bash\nscpsl-manager swap           # 查看虚拟内存状态 / Check swap status\nscpsl-manager setup-swap     # 设置虚拟内存 / Setup swap\nscpsl-manager firewall       # 查看防火墙状态 / Check firewall status\nscpsl-manager exiled install # 安装 EXILED / Install EXILED\nscpsl-manager exiled status  # 查看 EXILED 状态 / Check EXILED status\n```\n\n### 多实例管理 / Multi-Instance Management\n\n脚本支持运行多个 SCP:SL 服务端实例，每个实例使用独立的 tmux 会话 / The script supports running multiple SCP:SL server instances, each with its own tmux session:\n\n```bash\n# 启动多个服务端实例 / Start multiple server instances\nscpsl-manager start server1    # 启动ID为server1的服务端 / Start server with ID server1\nscpsl-manager start server2    # 启动ID为server2的服务端 / Start server with ID server2\n\n# 查看所有运行中的实例 / View all running instances\nscpsl-manager status           # 列出所有服务端实例 / List all server instances\n\n# 管理特定实例 / Manage specific instance\nscpsl-manager console server1  # 连接到server1的控制台 / Connect to server1 console\nscpsl-manager stop server2     # 停止server2实例 / Stop server2 instance\n```\n\n会话命名规则 / Session naming rules:\n- 默认实例: `scpsl` / Default instance: `scpsl`\n- 自定义ID实例: `scpsl_[id]` / Custom ID instance: `scpsl_[id]`\n\n## 🎯 EXILED 模组框架 / EXILED Mod Framework\n\n脚本自动集成 EXILED 模组框架 / The script automatically integrates EXILED mod framework:\n\n- **自动版本检测** / Automatic version detection\n- **多仓库支持** / Multi-repository support (ExSLMod-Team \u0026 ExMod-Team)\n- **GitHub 加速镜像** / GitHub acceleration mirrors\n- **配置文件管理** / Configuration file management\n\n### EXILED 安装位置 / EXILED Installation Locations\n- **EXILED 框架** / EXILED Framework: `/home/steam/.config/EXILED/`\n- **游戏配置** / Game Configuration: `/home/steam/.config/SCP Secret Laboratory/`\n\n## 🌐 GitHub 加速镜像 / GitHub Acceleration Mirrors\n\n为中国大陆用户提供的加速镜像 / Acceleration mirrors for China mainland users:\n\n- `https://j.1lin.dpdns.org/`\n- `https://jiashu.1win.eu.org/`\n- `https://j.1win.ggff.net/`\n\n脚本会自动测试并选择最佳镜像 / The script automatically tests and selects the best mirror.\n\n## 📁 文件结构 / File Structure\n\n```\n/home/steam/\n├── steamcmd/\n│   └── scpsl/              # SCP:SL 服务端文件 / SCP:SL server files\n├── .config/\n│   ├── EXILED/             # EXILED 模组框架 / EXILED mod framework\n│   └── SCP Secret Laboratory/  # 游戏配置文件 / Game configuration files\n└── start_scpsl.sh          # 启动脚本 / Startup script\n\n/usr/local/bin/\n└── scpsl-manager           # 管理脚本 / Management script\n```\n\n## 🔥 防火墙配置 / Firewall Configuration\n\n脚本支持多种防火墙系统 / The script supports multiple firewall systems:\n\n- **UFW** (Ubuntu Firewall)\n- **Firewalld** (CentOS/RHEL style)\n- **Iptables** (Traditional Linux firewall)\n\n默认开放端口 / Default open ports:\n- **7777** (游戏端口 / Game port)\n- 可自定义其他端口 / Customizable additional ports\n\n## 🛠️ 故障排除 / Troubleshooting\n\n### 常见问题 / Common Issues\n\n#### 1. 内存不足 / Insufficient Memory\n```bash\n# 检查内存状态 / Check memory status\nscpsl-manager swap\n\n# 设置虚拟内存 / Setup swap\nscpsl-manager setup-swap\n```\n\n#### 2. 网络连接问题 / Network Connection Issues\n- 脚本会自动尝试 GitHub 加速镜像 / Script automatically tries GitHub acceleration mirrors\n- 确保防火墙允许出站连接 / Ensure firewall allows outbound connections\n\n#### 3. 权限问题 / Permission Issues\n```bash\n# 确保使用 sudo 运行安装脚本 / Ensure running installation script with sudo\nsudo ./scpsl-server-install.sh\n```\n\n#### 4. 服务端无法启动 / Server Won't Start\n```bash\n# 检查服务端状态 / Check server status\nscpsl-manager status\n\n# 查看特定服务端实例状态 / Check specific server instance status\nscpsl-manager status [id]\n\n# 查看服务端日志 / View server logs\nscpsl-manager console [id]\n```\n\n## 📝 更新日志 / Changelog\n\n### v1.1.0\n- 添加多服务端实例支持 / Added multi-server instance support\n- 优化服务端状态管理 / Optimized server status management\n- 改进 tmux 会话管理 / Improved tmux session management\n\n### v1.0.0\n- 初始版本发布 / Initial release\n- 双语支持 / Bilingual support\n- 自动系统检测 / Automatic system detection\n- EXILED 集成 / EXILED integration\n- 防火墙配置 / Firewall configuration\n- GitHub 加速镜像支持 / GitHub acceleration mirror support\n\n## 🤝 贡献 / Contributing\n\n欢迎提交 Issue 和 Pull Request！/ Welcome to submit Issues and Pull Requests!\n\n## 📄 许可证 / License\n\n本项目采用 GPL-3.0 许可证 / This project is licensed under GPL-3.0 License.\n\n## 👨‍💻 作者 / Author\n\n- **中文** / Chinese: 开朗的火山河123\n- **English**: kldhsh123\n\n## 🔗 相关链接 / Related Links\n\n- **项目仓库** / Project Repository: [https://github.com/kldhsh123/SCP-SL-AutoDeploy](https://github.com/kldhsh123/SCP-SL-AutoDeploy)\n- **加速镜像** / Acceleration Mirror: [https://j.1lin.dpdns.org/https://github.com/kldhsh123/SCP-SL-AutoDeploy](https://j.1lin.dpdns.org/https://github.com/kldhsh123/SCP-SL-AutoDeploy)\n- **SCP:SL 官网** / SCP:SL Official: [https://scpslgame.com/](https://scpslgame.com/)\n- **EXILED 框架** / EXILED Framework: [https://github.com/ExSLMod-Team/EXILED](https://github.com/ExSLMod-Team/EXILED)\n\n## ⚙️ 高级配置 / Advanced Configuration\n\n### 虚拟内存优化 / Swap Optimization\n\n脚本提供智能虚拟内存配置 / The script provides intelligent swap configuration:\n\n#### Swappiness 配置 / Swappiness Configuration\n```bash\n# 查看当前设置 / Check current setting\ncat /proc/sys/vm/swappiness\n\n# 推荐值 / Recommended values:\n# 1-10:  高性能，最少使用swap / High performance, minimal swap usage\n# 10-30: 平衡性能 / Balanced performance\n# 30-60: 默认策略 / Default strategy\n```\n\n#### VFS Cache Pressure 优化 / VFS Cache Pressure Optimization\n```bash\n# 查看当前设置 / Check current setting\ncat /proc/sys/vm/vfs_cache_pressure\n\n# 推荐值 50: 减少缓存回收，提高文件访问性能\n# Recommended value 50: Reduce cache recycling, improve file access performance\n```\n\n### 服务端配置 / Server Configuration\n\n#### 端口配置 / Port Configuration\n默认端口配置 / Default port configuration:\n- **7777**: 主游戏端口 / Main game port\n- **7778**: 查询端口 / Query port (可选 / optional)\n\n#### 性能调优 / Performance Tuning\n```bash\n# 检查服务端性能 / Check server performance\nscpsl-manager status\n\n# 监控资源使用 / Monitor resource usage\nhtop  # 或 / or: top\n```\n\n### EXILED 插件管理 / EXILED Plugin Management\n\n#### 插件安装位置 / Plugin Installation Location\n```\n/home/steam/.config/EXILED/Plugins/\n├── dependencies/           # 依赖文件 / Dependencies\n├── *.dll                  # 插件文件 / Plugin files\n└── configs/               # 配置文件 / Configuration files\n```\n\n#### 常用插件推荐 / Recommended Plugins\n- **AdminTools**: 管理员工具 / Admin tools\n- **RespawnTimer**: 重生计时器 / Respawn timer\n- **CustomItems**: 自定义物品 / Custom items\n- **SCPStats**: 统计插件 / Statistics plugin\n\n## 🔒 安全配置 / Security Configuration\n\n### 防火墙最佳实践 / Firewall Best Practices\n\n#### UFW 配置示例 / UFW Configuration Example\n```bash\n# 启用 UFW / Enable UFW\nsudo ufw enable\n\n# 允许 SSH (重要!) / Allow SSH (Important!)\nsudo ufw allow ssh\n\n# 允许 SCP:SL 端口 / Allow SCP:SL ports\nsudo ufw allow 7777/tcp\nsudo ufw allow 7777/udp\n\n# 查看状态 / Check status\nsudo ufw status verbose\n```\n\n#### Firewalld 配置示例 / Firewalld Configuration Example\n```bash\n# 添加端口 / Add ports\nsudo firewall-cmd --permanent --add-port=7777/tcp\nsudo firewall-cmd --permanent --add-port=7777/udp\n\n# 重载配置 / Reload configuration\nsudo firewall-cmd --reload\n\n# 查看配置 / Check configuration\nsudo firewall-cmd --list-ports\n```\n\n### 用户权限管理 / User Permission Management\n\n脚本创建专用的 `steam` 用户来运行服务端 / The script creates a dedicated `steam` user to run the server:\n\n```bash\n# 切换到 steam 用户 / Switch to steam user\nsudo -u steam bash\n\n# 查看 steam 用户文件 / View steam user files\nls -la /home/steam/\n```\n\n## 📊 监控与日志 / Monitoring \u0026 Logging\n\n### 服务端日志 / Server Logs\n\n#### 实时查看日志 / Real-time Log Viewing\n```bash\n# 连接到服务端控制台 / Connect to server console\nscpsl-manager console              # 连接到默认实例 / Connect to default instance\nscpsl-manager console [server_id]  # 连接到指定ID实例 / Connect to specific ID instance\n\n# 列出所有运行中的实例 / List all running instances\nscpsl-manager status\n\n# 分离会话快捷键 / Detach session shortcut\n# Ctrl+B, 然后按 D / then press D\n```\n\n#### 日志文件位置 / Log File Locations\n```\n/home/steam/.config/SCP Secret Laboratory/\n├── config/                # 配置文件 / Configuration files\n├── logs/                  # 日志文件 / Log files\n└── UserData/              # 用户数据 / User data\n```\n\n### 系统监控 / System Monitoring\n\n#### 资源使用监控 / Resource Usage Monitoring\n```bash\n# 内存使用 / Memory usage\nfree -h\n\n# CPU 使用 / CPU usage\ntop -p $(pgrep -f LocalAdmin)\n\n# 磁盘使用 / Disk usage\ndf -h\n\n# 网络连接 / Network connections\nnetstat -tulpn | grep 7777\n```\n\n## 🚀 性能优化 / Performance Optimization\n\n### 系统级优化 / System-level Optimization\n\n#### 内核参数调优 / Kernel Parameter Tuning\n脚本自动配置以下参数 / The script automatically configures the following parameters:\n\n```bash\n# 查看当前配置 / Check current configuration\nsysctl vm.swappiness\nsysctl vm.vfs_cache_pressure\n\n# 手动调整 (如需要) / Manual adjustment (if needed)\necho 'vm.swappiness=10' \u003e\u003e /etc/sysctl.conf\necho 'vm.vfs_cache_pressure=50' \u003e\u003e /etc/sysctl.conf\nsysctl -p\n```\n\n#### 网络优化 / Network Optimization\n```bash\n# TCP 缓冲区优化 / TCP buffer optimization\necho 'net.core.rmem_max = 16777216' \u003e\u003e /etc/sysctl.conf\necho 'net.core.wmem_max = 16777216' \u003e\u003e /etc/sysctl.conf\necho 'net.ipv4.tcp_rmem = 4096 87380 16777216' \u003e\u003e /etc/sysctl.conf\necho 'net.ipv4.tcp_wmem = 4096 65536 16777216' \u003e\u003e /etc/sysctl.conf\n```\n\n### 服务端优化 / Server Optimization\n\n#### 启动参数优化 / Startup Parameter Optimization\n可以修改启动脚本添加参数 / You can modify the startup script to add parameters:\n\n```bash\n# 编辑启动脚本 / Edit startup script\nsudo -u steam nano /home/steam/start_scpsl.sh\n\n# 示例优化参数 / Example optimization parameters\n./LocalAdmin -batchmode -nographics -silent-crashes\n```\n\n#### 多实例资源分配 / Multi-Instance Resource Allocation\n运行多个服务端实例时，合理分配资源 / When running multiple server instances, allocate resources reasonably:\n\n```bash\n# 检查所有运行中的服务端实例 / Check all running server instances\nscpsl-manager status\n\n# 监控多实例资源使用 / Monitor multi-instance resource usage\nhtop -u steam\n\n# 建议的硬件配置 / Recommended hardware configuration:\n# - 每个实例至少1.5GB内存 / At least 1.5GB memory per instance\n# - 每个实例至少1个CPU核心 / At least 1 CPU core per instance\n```\n\n## 🔧 故障排除详解 / Detailed Troubleshooting\n\n### 安装问题 / Installation Issues\n\n#### 1. SteamCMD 安装失败 / SteamCMD Installation Failed\n```bash\n# 手动安装 SteamCMD / Manual SteamCMD installation\nsudo apt update\nsudo apt install steamcmd\n\n# 验证安装 / Verify installation\nwhich steamcmd\n```\n\n#### 2. Mono 安装问题 / Mono Installation Issues\n```bash\n# 检查 Mono 版本 / Check Mono version\nmono --version\n\n# 重新安装 Mono / Reinstall Mono\nsudo apt remove mono-complete\nsudo apt install mono-complete\n```\n\n#### 3. 权限问题 / Permission Issues\n```bash\n# 修复 steam 用户权限 / Fix steam user permissions\nsudo chown -R steam:steam /home/steam/\nsudo chmod -R 755 /home/steam/steamcmd/\n```\n\n### 运行时问题 / Runtime Issues\n\n#### 1. 服务端无法启动 / Server Won't Start\n```bash\n# 检查依赖 / Check dependencies\nldd /home/steam/steamcmd/scpsl/LocalAdmin\n\n# 检查端口占用 / Check port usage\nnetstat -tulpn | grep 7777\n\n# 手动启动测试 / Manual startup test\nsudo -u steam /home/steam/steamcmd/scpsl/LocalAdmin\n```\n\n#### 2. 内存不足错误 / Out of Memory Error\n```bash\n# 检查内存使用 / Check memory usage\nfree -h\n\n# 增加虚拟内存 / Increase swap\nscpsl-manager setup-swap\n\n# 优化 Java 堆内存 (如果适用) / Optimize Java heap memory (if applicable)\nexport JAVA_OPTS=\"-Xmx2G -Xms1G\"\n```\n\n#### 3. 网络连接问题 / Network Connection Issues\n```bash\n# 检查防火墙状态 / Check firewall status\nscpsl-manager firewall\n\n# 测试端口连通性 / Test port connectivity\ntelnet localhost 7777\n\n# 检查网络接口 / Check network interfaces\nip addr show\n```\n\n### EXILED 相关问题 / EXILED Related Issues\n\n#### 1. EXILED 加载失败 / EXILED Loading Failed\n```bash\n# 检查 EXILED 状态 / Check EXILED status\nscpsl-manager exiled status\n\n# 重新安装 EXILED / Reinstall EXILED\nscpsl-manager exiled install\n\n# 检查配置文件 / Check configuration files\nls -la /home/steam/.config/EXILED/\n```\n\n#### 2. 插件冲突 / Plugin Conflicts\n```bash\n# 查看插件目录 / View plugins directory\nls -la /home/steam/.config/EXILED/Plugins/\n\n# 禁用有问题的插件 / Disable problematic plugins\nmv /home/steam/.config/EXILED/Plugins/problem_plugin.dll /home/steam/.config/EXILED/Plugins/disabled/\n```\n\n## 📚 常见问题解答 / FAQ\n\n### Q1: 脚本支持哪些 Linux 发行版？/ Which Linux distributions does the script support?  \n**A**: 目前支持 Ubuntu 22.04+ 和 Debian 12+。其他发行版可能需要手动调整。  \n**A**: Currently supports Ubuntu 22.04+ and Debian 12+. Other distributions may require manual adjustments.  \n\n### Q2: 可以在 VPS 上运行吗？/ Can it run on VPS?  \n**A**: 可以，但建议至少 2GB RAM 和 2 CPU 核心。脚本会自动检测资源并提供优化建议。  \n**A**: Yes, but recommend at least 2GB RAM and 2 CPU cores. The script automatically detects resources and provides optimization suggestions.  \n\n### Q3: 如何备份服务端数据？/ How to backup server data?\n**A**:\n```bash\n# 备份配置和数据 / Backup configuration and data   \nsudo tar -czf scpsl_backup_$(date +%Y%m%d).tar.gz /home/steam/.config/\n```\n\n### Q4: 如何更改服务端端口？/ How to change server port?\n**A**: 重命名 `/home/steam/.config/SCP Secret Laboratory/config` 内需要更改的端口号   \n**A**: Rename the port number that needs to be changed in `/home/steam/.config/SCP Secret Laboratory/config`\n\n### Q5: GitHub 连接失败怎么办？/ What to do if GitHub connection fails?  \n**A**: 脚本会自动尝试加速镜像。如果仍然失败，可以手动下载文件后本地安装。  \n**A**: The script automatically tries acceleration mirrors. If it still fails, you can manually download files and install locally.  \n\n## 🔄 更新与维护 / Updates \u0026 Maintenance\n\n### 自动更新 / Automatic Updates\n```bash\n# 更新服务端 / Update server\nscpsl-manager update\n\n# 更新 EXILED / Update EXILED\nscpsl-manager exiled install\n```\n\n### 手动维护 / Manual Maintenance\n```bash\n# 清理日志文件 / Clean log files\nfind /home/steam/.config/SCP\\ Secret\\ Laboratory/logs/ -name \"*.log\" -mtime +7 -delete\n\n# 清理临时文件 / Clean temporary files\nsudo -u steam rm -rf /home/steam/temp_*\n\n# 检查磁盘使用 / Check disk usage\ndu -sh /home/steam/\n```\n\n## 📞 技术支持 / Technical Support\n\n如果遇到问题，请按以下步骤获取帮助 / If you encounter issues, please follow these steps for help:\n\n1. **查看日志** / Check logs: `scpsl-manager console`\n2. **检查系统状态** / Check system status: `scpsl-manager status`\n3. **提交 Issue** / Submit Issue: [GitHub Issues](https://github.com/kldhsh123/SCP-SL-AutoDeploy/issues)\n\n提交 Issue 时请包含 / When submitting an Issue, please include:\n- 操作系统版本 / Operating system version\n- 错误信息 / Error messages\n- 系统资源信息 / System resource information\n\n---\n\n**⭐ 如果这个项目对你有帮助，请给个 Star！/ If this project helps you, please give it a Star!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkldhsh123%2Fscp-sl-autodeploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkldhsh123%2Fscp-sl-autodeploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkldhsh123%2Fscp-sl-autodeploy/lists"}