Installing on Linux
Installing PostgreSQL
Please refer to the PostgreSQL Installation Guide to install and configure PostgreSQL.
After installation, create a database user and database for Palpo:
Replace 'your_secure_password' with a strong password. This will create a PostgreSQL user and database named palpo, and set the user as the database owner.
Downloading Palpo Release
Visit the official GitHub releases page:
https://github.com/palpo-im/palpo/releases
Download the latest version suitable for your Linux distribution and architecture, and extract it.
Configuring Palpo
Copy the example configuration file and rename it:
Edit palpo.toml according to your environment and database settings. At minimum, you need to:
-
Set
server_nameto your desired domain name, for example: -
Set the database URL in the
[db]section to match the database, user, and password you created above, for example:
Replace your.domain.com and your_secure_password with your actual domain name and password.
For more advanced configurations, please refer to the Configuration Page.
Running Palpo
Start Palpo from the command line:
Setting Up as a Systemd Service (Auto-start on Boot)
To automatically start Palpo on boot, you can create a systemd service file:
-
Create
/etc/systemd/system/palpo.servicewith the following content:Replace
/path/to/palpowith the actual path to Palpo and set the correct user. -
Reload systemd and enable the service:
Palpo will now start automatically on boot. {/* 本行由工具自动生成,原文哈希值:1aa1fcad7cf160df6695b28d5a649411 */}