# Harbor 重開機後出現 core service is not available ###### tags: `harbor` `core service is not available` 將Harbor設定成systemd的service可解決 harbor 安裝的路徑是: /usr/local/harbor service 檔案路徑是: /usr/lib/systemd/system/harbor.service ``` [Unit] Description=Harbor After=docker.service systemd-networkd.service systemd-resolved.service Requires=docker.service Documentation=https://github.com/vmware/harbor [Service] Type=simple Restart=on-failure RestartSec=5 ExecStart=/usr/local/bin/docker-compose -f /usr/local/harbor/docker-compose.yml up ExecStop=/usr/local/bin/docker-compose -f /usr/local/harbor/docker-compose.yml down [Install] WantedBy=multi-user.target ``` 設定開機自動啟動: ``` systemctl enable harbor.service ``` 啟動harbor: ``` systemctl start harbor.service ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up