To set up Misskey manually, follow these steps:
Prerequisites
Install required software:
Node.js (v20.4.x or above)
PostgreSQL (v15 or above)
Redis
FFmpeg
Build tools like build-essential and python for Debian/Ubuntu.
Enable corepack:
bash
sudo corepack enable
Installation
Create a non-root user:
bash
adduser --disabled-password --disabled-login misskey
Clone the Misskey repository:
bash
sudo -iu misskey
git clone --recursive https://github.com/misskey-dev/misskey.git
cd misskey
git checkout master
git submodule update --init
Install dependencies:
bash
NODE_ENV=production pnpm install --frozen-lockfile
Configuration
Copy and edit the configuration file:
bash
cp .config/example.yml .config/default.yml
Update default.yml with your domain, database credentials, and other settings.
Build and Initialize
Build Misskey:
bash
NODE_ENV=production pnpm run build
Initialize the database:
bash
pnpm run init
Launch
Start Misskey:
bash
NODE_ENV=production pnpm run start
Optional: Manage with systemd
Create a systemd service file at /etc/systemd/system/misskey.service with the following content:
text
[Unit]
Description=Misskey daemon
[Service]
Type=simple
User=misskey
ExecStart=/usr/bin/npm start
WorkingDirectory=/home/misskey/misskey
Environment="NODE_ENV=production"
Restart=always
[Install]
WantedBy=multi-user.target
Reload systemd and enable the service:
bash
sudo systemctl daemon-reload
sudo systemctl enable misskey
sudo systemctl start misskey
You can check the status with systemctl status misskey. For updates, pull the latest code and rebuild.
No comments:
Post a Comment