Install
Unpack the GitBucket Zip distribution to /opt .
Running as a Service
Followings will be assumed:
- Java 17 is running correctly with
/usr/bin/java
- Install directory is
/opt/gitbucket
- The GitBucket (java) process will run as user
gitbucket and group gitbucket, with UID and GID 555
- A non-root user account that can use
sudo to execute commands as root will be the example
- Add the user and the group:
- Make the owner of the GitBucket to be the
gitbucket:gitbucket user:
- Change
gitbucket.service to suit your needs. A basic file to get you going will be something like this:
- Install the
systemd service unit configuration file, reload the systemd daemon, and start GitBucket:
- Start GitBucket automatically when booting:
- If GitBucket is not starting properly, view the logs:
or just follow the logs with: