본문으로 건너뛰기

바이너리 파일

Python/Ansible/Systemd 환경을 설정하는 방법은 수동 설치를 참조하십시오!

릴리스 페이지에서 사용 중인 플랫폼에 맞는 *.tar.gz를 다운로드합니다. 압축을 풀고 다음 명령으로 Semaphore를 설정합니다.

wget https://github.com/semaphoreui/semaphore/releases/download/v2.17.15/semaphore_2.17.15_linux_amd64.tar.gz

tar xf semaphore_2.17.15_linux_amd64.tar.gz

./semaphore setup

이제 Semaphore를 실행할 수 있습니다.

./semaphore server --config=./config.json

Semaphore는 다음 URL에서 접속할 수 있습니다: https://localhost:3000.


서비스로 실행

더 자세한 내용은 확장 Systemd 서비스 문서를 참조하십시오.

패키지 관리자로 설치했거나 바이너리 파일을 다운로드하여 설치한 경우, Semaphore 서비스를 직접 생성해야 합니다.

systemd 서비스 파일을 생성합니다.

/path/to/semaphore/path/to/config.json을 실제 semaphore 및 구성 파일 경로로 바꾸십시오.

sudo cat > /etc/systemd/system/semaphore.service <<EOF
[Unit]
Description=Semaphore Ansible
Documentation=https://github.com/semaphoreui/semaphore
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/path/to/semaphore server --config=/path/to/config.json
SyslogIdentifier=semaphore
Restart=always
RestartSec=10s

[Install]
WantedBy=multi-user.target
EOF

Semaphore 서비스를 시작합니다.

sudo systemctl daemon-reload
sudo systemctl start semaphore

Semaphore 서비스 상태를 확인합니다.

sudo systemctl status semaphore

Semaphore 서비스가 자동으로 시작되도록 설정합니다.

sudo systemctl enable semaphore