This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tech:devops:archiva:start [2018/01/16 02:14] rk4n3 |
tech:devops:archiva:start [2018/01/16 02:21] (current) rk4n3 |
||
---|---|---|---|
Line 5: | Line 5: | ||
* Unpack archive into ''/usr'' and create symlink // (should create a /usr/apache-archiva-X.Y.Z directory) // <code>cd /usr ; ln -s apache-archiva-X.Y.Z archiva</code> | * Unpack archive into ''/usr'' and create symlink // (should create a /usr/apache-archiva-X.Y.Z directory) // <code>cd /usr ; ln -s apache-archiva-X.Y.Z archiva</code> | ||
* Ensure ''/usr/archiva'' tree is owned by ''jenkins'' login \\ // (**Note:** failure to create''/usr/archiva/data'' tree would be first symptom) // | * Ensure ''/usr/archiva'' tree is owned by ''jenkins'' login \\ // (**Note:** failure to create''/usr/archiva/data'' tree would be first symptom) // | ||
+ | * Create ''/usr/lib/systemd/system/archiva.service'':<code>[Unit] | ||
+ | Description=Apache Archiva Repository Manager | ||
+ | After=network.target | ||
+ | |||
+ | [Service] | ||
+ | Type=forking | ||
+ | User=jenkins | ||
+ | Group=jenkins | ||
+ | ExecStart=/usr/archiva/bin/archiva start | ||
+ | ExecStop=/usr/archiva/bin/archiva stop | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target</code> | ||
+ | * ''firewall-cmd --zone=public --add-port=8080/tcp --permanent'' | ||
+ | * ''firewall-cmd --reload'' | ||
+ | * ''systemctl enable archiva.service'' | ||
+ | * ''service archiva start'' | ||
+ | * URL should be !http://yourhost:8080 | ||
+ | * Create admin user | ||
+ | |||
+ |