### 1Panel Installation - Alibaba Cloud Mirror Deployment Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/user_manual/settings/index.html Guide for deploying 1Panel on Alibaba Cloud using their mirror service. This leverages cloud-specific deployment mechanisms for easier setup. ```bash # Specific commands or console steps for Alibaba Cloud mirror deployment would be detailed here. # This might involve selecting an image or using specific CLI tools. ``` -------------------------------- ### Docker Installation Script Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v2/faq/operating_system/index.html Provides a bash script to manually install and start Docker on a server, recommended when the online installer encounters unsupported distributions. It fetches the script from a specified URL. ```bash bash <(curl -sSL https://linuxmirrors.cn/docker.sh) ``` -------------------------------- ### 1Panel Installed Applications Management Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/user_manual/settings/index.html Guide on managing applications that have already been installed through the 1Panel App Store. This includes operations like starting, stopping, updating, and uninstalling. ```markdown ## Managing Installed Applications In the 'Installed Apps' section, you can manage your deployed applications: - **Start/Stop**: Control the running state of an application. - **Update**: Update an application to its latest version. - **Configure**: Modify application settings. - **Uninstall**: Remove an application from your server. ``` -------------------------------- ### Install 1Panel on Ubuntu/Debian/openEuler Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/installation/online_installation/index.html This command downloads and executes the 1Panel quick start script for Debian-based, Ubuntu, and openEuler distributions. It requires internet access and execute permissions. ```shell curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && bash quick_start.sh ``` -------------------------------- ### Install Pure-FTPd on Ubuntu/Debian Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v2/user_manual/toolbox/ftp/index.html Steps to install and configure Pure-FTPd on Ubuntu/Debian-based systems using apt-get. Includes installing the package, creating configuration files in /etc/pure-ftpd/conf, establishing a symbolic link for PureDB, and starting the service. ```shell # 1、安装 Pure-FTPd sudo apt-get install pure-ftpd # 2、修改默认配置 # 与 centos 不同,这里需要在 /etc/pure-ftpd/conf 文件夹下执行下列命令,增加对应配置文件: # 创建 /etc/pure-ftpd/conf/PureDB 文件,内容指定路径 /etc/pure-ftpd/pureftpd.pdb echo '/etc/pure-ftpd/pureftpd.pdb' > /etc/pure-ftpd/conf/PureDB # 创建 /etc/pure-ftpd/conf/VerboseLog 文件,开启日志 echo yes > /etc/pure-ftpd/conf/VerboseLog # 创建 /etc/pure-ftpd/conf/NoAnonymous 文件,拒绝匿名登录 echo yes > /etc/pure-ftpd/conf/NoAnonymous # 创建 /etc/pure-ftpd/conf/PassivePortRange 文件,开启被动端口范围 (这里需要根据实际需求调整端口范围) echo '39000 40000' > /etc/pure-ftpd/conf/PassivePortRange # 3、建立数据库软链 ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/50puredb # 4、启动 Pure-FTPd 服务 sudo systemctl start pure-ftpd.service # 5、查看 Pure-FTPd 服务状态。 sudo systemctl status pure-ftpd.service ``` -------------------------------- ### Ollama Application Management Overview Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v2/user_manual/ai/model/index.html This section describes the initial steps to manage Ollama applications, including installation from the app store and checking the application status (start, stop, restart). ```markdown 1 管理 Ollama 应用[⚓︎](#1-ollama "Permanent link") ---------------------------------------------- 1.1 应用商店安装 Ollama 要使用模型管理功能,需要先在应用商店中安装 Ollama 应用。Ollama 安装完成后可以在该页面查看 Ollama 应用状态,并进行启动、停止及重启等操作。 ![img.png](../../../img/ai/overview.png) ``` -------------------------------- ### Install 1Panel on RedHat/CentOS Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/installation/online_installation/index.html This command downloads and executes the 1Panel quick start script for RedHat-based and CentOS distributions. It requires internet access and sudo privileges. ```shell curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.sh ``` -------------------------------- ### 1Panel App Store Installation Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/user_manual/settings/index.html Steps for installing applications from the 1Panel App Store. This section details how to browse, select, and deploy applications. ```markdown ## Installing Applications 1. Navigate to the 'App Store' section in the 1Panel dashboard. 2. Browse or search for the desired application. 3. Click on the application to view its details and configuration options. 4. Click the 'Install' button and follow the on-screen prompts to configure and deploy the application. ``` -------------------------------- ### Execute 1Panel Offline Installation Script Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v2/installation/package_installation/index.html This snippet provides shell commands to navigate into the 1Panel offline package directory and execute the installation script. Users must replace the example directory name with their actual offline package name. This is a critical step for deploying 1Panel. ```bash cd 1panel-v2.0.0-lts-linux-amd64 /bin/bash install.sh ``` -------------------------------- ### Install 1Panel MCP Server with go install Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/user_manual/mcp/mcp_server/index.html Installs the 1Panel MCP Server using the Go toolchain. Requires Go to be installed and configured. ```go go install github.com/1Panel-dev/mcp-1panel@latest ``` -------------------------------- ### 1Panel Installation - Online Deployment Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/user_manual/settings/index.html Instructions for deploying 1Panel using the online installation method. This typically involves executing a command-line script to download and set up the panel. ```bash # Example command for online installation (actual command may vary) curl -sSL https://resource.fit2cloud.com/1panel/1panel/releases/download/v1.0.0/1panel_v1.0.0_linux_x86_64.tar.gz | tar -zx ./1panel install ``` -------------------------------- ### Execute 1Panel Offline Installation Script Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/installation/package_installation/index.html This shell script provides the commands to navigate into the 1Panel offline package directory and then execute the main installation script. Users should replace the placeholder directory name with the actual name of their downloaded offline package. ```Shell # 进入离线包目录(1panel-v1.10.0-lts-linux-amd64 为示例离线包目录名称,操作时可根据实际离线包名称替换) cd 1panel-v1.10.0-lts-linux-amd64 # 运行安装脚本 /bin/bash install.sh ``` -------------------------------- ### Example Go Implementation for API Request Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v2/dev_manual/api_manual/index.html Provides an example implementation in Go for making authenticated API requests to 1Panel, demonstrating how to construct the token and headers. ```go // Example implementation code (go) // This snippet is a placeholder for actual Go code demonstrating API interaction. // It would typically involve generating the token, setting headers, and making HTTP requests. package main import ( "crypto/md5" "encoding/hex" "fmt" "io" "net/http" "strconv" "time" ) func main() { apiKey := "YOUR_API_KEY" baseURL := "http://localhost:4004" // Get current Unix timestamp timestamp := time.Now().Unix() // Generate token tokenString := "1panel" + apiKey + strconv.FormatInt(timestamp, 10) hash := md5.Sum([]byte(tokenString)) token := hex.EncodeToString(hash[:]) // Create request req, err := http.NewRequest("GET", baseURL+"/api/v1/dashboard/current", nil) if err != nil { fmt.Println("Error creating request:", err) return } // Set headers req.Header.Set("1Panel-Token", token) req.Header.Set("1Panel-Timestamp", strconv.FormatInt(timestamp, 10)) // Send request (example) client := &http.Client{} resp, err := client.Do(req) if err != nil { fmt.Println("Error sending request:", err) return } defer resp.Body.Close() fmt.Println("Response Status:", resp.Status) // Process response body here // io.Copy(os.Stdout, resp.Body) } ``` -------------------------------- ### Install 1Panel MCP Server with go install Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v2/user_manual/mcp/mcp_server/index.html Installs the 1Panel MCP Server directly using the go install command, requiring Go 1.23.0 or higher. ```go go install github.com/1Panel-dev/mcp-1panel@latest ``` -------------------------------- ### Install Docker Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/installation/online_installation/index.html This script installs Docker on Linux systems. It fetches the installation script from a remote URL and executes it. This is a prerequisite for some 1Panel installations. ```shell bash <(curl -sSL https://linuxmirrors.cn/docker.sh) ``` -------------------------------- ### 1Panel Installation and Upgrade Procedures Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v2/changelog/index.html Documentation outlining the steps for installing and upgrading the 1Panel software. It covers online installation, online upgrades, migration from V1 versions, and master-slave node switching. ```APIDOC Installation and Deployment: - Online Installation: Guides users through the process of installing 1Panel directly from online sources. - Online Upgrade: Provides instructions for upgrading an existing 1Panel installation to the latest version. - Migration from V1 Version: - Upgrade Instructions: Overview of the migration process from 1Panel V1. - Operation Steps: Detailed steps for migrating data and configurations from V1. - Master-Slave Node Switching: Procedures for changing the primary and secondary roles of nodes in a cluster. - Command-Line Tool: Information on using the 1Panel command-line interface for installation and management. ``` -------------------------------- ### Install Pure-FTPd on CentOS/RedHat Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v2/user_manual/toolbox/ftp/index.html Steps to install and configure Pure-FTPd on RedHat-based systems using yum. Includes enabling EPEL repository, installing the package, modifying configuration files, and starting the service. ```shell # 1、安装 epel 源 yum install -y epel-release # 2、安装 Pure-FTPd yum -y install pure-ftpd # 3、修改默认配置 # 默认配置位于 /etc/pure-ftpd/pure-ftpd.conf,在配置文件中找到下面几个参数进行修改: # 指定路径,PureDB用户数据库文件 PureDB /etc/pure-ftpd/pureftpd.pdb # 开启日志 VerboseLog yes # 拒绝匿名登录 NoAnonymous yes # 开启被动端口范围 (这里需要根据实际需求调整端口范围) PassivePortRange 39000 40000 # 4、启动 Pure-FTPd 服务 systemctl start pure-ftpd.service # 5、查看 Pure-FTPd 服务状态。 systemctl status pure-ftpd.service ``` -------------------------------- ### Build 1Panel MCP Server from Source Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v2/user_manual/mcp/mcp_server/index.html Instructions to clone the repository, build the MCP server binary using make, and place it in the system's PATH. ```shell git clone https://github.com/1Panel-dev/mcp-1panel.git cd mcp-1panel make build # Move ./build/mcp-1panel to a directory in your system's PATH ``` -------------------------------- ### JavaScript Hash Link Target Handling Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/installation/package_installation/index.html This JavaScript snippet checks if an HTML element exists based on the current URL's hash fragment. If the element is found and has a 'name' attribute, its 'checked' property is set to true if the 'name' attribute starts with '__tabbed_'. This is commonly used for managing the state of tabbed interfaces or accordions based on URL anchors. ```JavaScript var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_")) ``` -------------------------------- ### Install and Configure Firewalld (RedHat/CentOS) Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/user_manual/hosts/firewall/index.html Steps to install, start, and configure the Firewalld service on RedHat/CentOS systems. This includes allowing SSH and the 1Panel system port, reloading rules, and enabling the service on boot. ```shell sudo yum update sudo yum install firewalld sudo systemctl start firewalld sudo firewall-cmd --zone=public --add-port=22/tcp --permanent # If SSH runs on a non-standard port, replace 22 with your SSH port. sudo firewall-cmd --zone=public --add-port=8090/tcp --permanent # Replace 8090 with your 1Panel system port if customized. sudo firewall-cmd --reload sudo systemctl enable firewalld ``` -------------------------------- ### Retrieve 1Panel Security Entrance with 1pctl Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/installation/package_installation/index.html After a successful 1Panel installation, this command can be executed via SSH on the server to retrieve the 'security entrance' (entrance) URL, which is necessary for accessing the 1Panel web interface. ```Shell 1pctl user-info ``` -------------------------------- ### Initialize Light Gallery Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/faq/operating_system/index.html JavaScript code to find all elements with the class 'lightgallery' and initialize the lightGallery plugin for each. ```javascript var elements = document.getElementsByClassName("lightgallery"); for(var i=0; i FIT2CLOUD Logo 了解飞致云旗下开源产品 Open * [**1Panel** - 现代化、开源的 Linux 面板](https://1panel.cn/) * [**MaxKB** - 强大易用的企业级智能体平台](https://maxkb.cn) * [**JumpServer** - 广受欢迎的开源堡垒机](https://jumpserver.org/) * [**DataEase** - 人人可用的开源 BI 工具](https://dataease.cn) * [**MeterSphere** - 新一代的开源持续测试工具](https://www.fit2cloud.com/metersphere/index.html) * [**Halo** - 强大易用的开源建站工具](https://halo.run/) logo 1Panel 文档 ``` -------------------------------- ### JavaScript DOM Manipulation for Hash Links Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v2/installation/package_installation/index.html This JavaScript snippet targets an HTML element based on the URL hash, checks its name attribute, and conditionally sets its 'checked' property if the name starts with '__tabbed_'. It's typically used for handling tabbed content or navigation states in web applications. ```javascript var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_")) ``` -------------------------------- ### 1Panel Java Runtime Environment Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/user_manual/settings/index.html Guide on managing Java versions and configurations for Java applications hosted on 1Panel. ```markdown ## Java Runtime Install and manage different Java Development Kits (JDKs). Deploy Java applications by specifying the JDK and execution parameters. ``` -------------------------------- ### 1Panel App Store Overview Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/user_manual/appstore/appstore/index.html Describes the 1Panel App Store's functionality for deploying and managing applications like WordPress, Halo, PHP, Node.js, and MySQL. It also supports local application additions and provides links to tutorials for custom application submission. ```markdown 功能概述 == 1 功能概述[⚓︎](#1 "Permanent link") ------------------------------- 功能概述 * 应用商店旨在为用户提供便捷、高效的应用部署和管理体验。通过应用商店,用户可以一键安装多种常见的建站工具、服务和开发环境,如 WordPress、Halo、PHP、Node.js、MySQL 等,不再需要复杂的手动配置。 * 此外,1Panel 应用商店还提供应用的备份恢复、升级等功能,确保用户的数据安全和应用的持续可用性,为日常运维和站点管理提供了极大便利。 本地应用 添加自己想要的应用,1Panel 应用商店还支持本地应用。制作教程可参考:[提交自定义应用教程](https://github.com/1Panel-dev/appstore/wiki/%E5%A6%82%E4%BD%95%E6%8F%90%E4%BA%A4%E8%87%AA%E5%B7%B1%E6%83%B3%E8%A6%81%E7%9A%84%E5%BA%94%E7%94%A8),也可以参考论坛文章:[论坛文章链接](https://bbs.fit2cloud.com/t/topic/640/)。 ![img.png](../../../img/app/appstore.png) var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("\_\_tabbed_")) 回到页面顶部 ``` -------------------------------- ### Application Configuration JSON Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/installation/package_installation/index.html This JSON object defines various configuration settings for a web application, including base paths, a list of enabled features (e.g., navigation, search, header behavior), the path to a search worker script, and a collection of localized translation strings for UI elements. The translations provided are in Chinese. ```JSON {\"base\": \"../..\", \"features\": [\"navigation.tracking\", \"navigation.indexes\", \"navigation.top\", \"search.suggest\", \"search.highlight\", \"search.share\", \"header.autohide\"], \"search\": \"../../assets/javascripts/workers/search.d50fe291.min.js\", \"tags\": null, \"translations\": {\"clipboard.copied\": \"\\u5df2\\u590d\\u5236\", \"clipboard.copy\": \"\\u590d\\u5236\", \"search.result.more.one\": \"\\u5728\\u8be5\\u9875\\u4e0a\\u8fd8\\u6709 1 \\u4e2a\\u7b26\\u5408\\u6761\\u4ef6\\u7684\\u7ed3\\u679c\", \"search.result.more.other\": \"\\u5728\\u8be5\\u9875\\u4e0a\\u8fd8\\u6709 # \\u4e2a\\u7b26\\u5408\\u6761\\u4ef6\\u7684\\u7ed3\\u679c\", \"search.result.none\": \"\\u6ca1\\u6709\\u627e\\u5230\\u7b26\\u5408\\u6761\\u4ef6\\u7684\\u7ed3\\u679c\", \"search.result.one\": \"\\u627e\\u5230 1 \\u4e2a\\u7b26\\u5408\\u6761\\u4ef6\\u7684\\u7ed3\\u679c\", \"search.result.other\": \"# \\u4e2a\\u7b26\\u5408\\u6761\\u4ef6\\u7684\\u7ed3\\u679c\", \"search.result.placeholder\": \"\\u952e\\u5165\\u4ee5\\u5f00\\u59cb\\u641c\\u7d22\", \"search.result.term.missing\": \"\\u7f3a\\u5c11\", \"select.version\": \"\\u9009\\u62e9\\u5f53\\u524d\\u7248\\u6765\\u672c\"}, \"version\": {\"provider\": \"mike\"}} ``` -------------------------------- ### Fail2ban Installation - RedHat/CentOS Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/user_manual/toolbox/fail2ban/index.html Steps to install Fail2ban on RedHat-based systems like CentOS. This includes enabling the EPEL repository, installing the package, and managing the service. ```bash yum install -y epel-release yum install -y fail2ban systemctl start fail2ban systemctl enable fail2ban systemctl status fail2ban ``` -------------------------------- ### 1Panel .NET Runtime Environment Source: https://github.com/1panel-dev/docs/blob/zh-CN/deploy/v1/user_manual/settings/index.html Instructions for managing .NET Core/ .NET runtime versions for .NET applications hosted on 1Panel. ```markdown ## .NET Runtime Install and manage .NET runtimes for deploying .NET applications. ```