Questions
When the server deployed with Gabor restarts, it may appear that Gabor can’t follow the system to start itself
Solution
Now assume that the location of the installation directory of Gabor is/usr/local/Gabor. After the installation of Gabor, the docker-compose.yml configuration file will be generated in this directory. You can use docker compose to operate this file to control the startup and shutdown of Gabor.
Next, write a system D service that starts from Gabor, named Gabor. Service (placed in the/etc/system/system directory)
[Unit]
Description=harbor
After=docker.service systemd-networkd.service systemd-resolved.service
Requires=docker.service
Documentation=http://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
After writing, use systemctl enable harbor.service to set the boot time. Then restart the server for testing.
Read More:
- Perfectly solve the problem of NPM start error: cannot find module ‘XX’
- Solve the problem that the Raspberry Pi cannot start (dependency failed for Local File Systems)
- Error: (serious: a child container failed during start) (server component failed to start so Tomcat is unable)
- Solve the problem of SQL Server limit 2G memory limit installation
- Solve the problem of unable to start under zookeeper Linux
- Server Tomcat v8.0 Server at localhost failed to start.
- To solve the problem, start eclipse and return exit code = 13
- Solve the problem that the value in the disabled tag cannot be passed to the server
- Solve the problem of jdk8 after win7 is installed. Has value ‘1.8’, but ‘1.7’ is required
- Server Tomcat v7.0 server at localhost failed to start
- One of the ways to solve the problem of internal server error in flash learning
- Tdengine failed to start, start request repeated too quickly for taosd.service
- Solve the problem of keyboard interactive authentication with the SSH2 server failed
- Android error: ADB port is occupied( adb.exe ,start-server’ failed — run manually if necessary)
- Solve the problem of docker error: Unsupported compose file version: 3.2
- Tencent Cloud server encountered “Active: failed (Result: start-limit)” error when starting lightdm
- MongoDB Error: Failed to start mongod.service: Unit mongodb.service is masked
- Solve the problem that stdole32.tlb is missing when win7 Microsoft Office 2007 Pro Plus excel is opened
- MongoDB Error: Failed to start mongod.service: Unit mongod.service is not loaded properly
- [Solved] Tomcat Failed to Start Error: Server Tomcat v8.5 Server at localhost failed to start