This is a creation in Article, where the information may have evolved or changed. 1. Configure Server information 1.1 add users
Cd/etc/go
htpasswd -c -s passwd user
The command creates a passwd file in the current directory
Add passwd file path to the admin interface of Go: /etc/go/passwd Restart go-server
1.2 Configuring the Artifacts Repo (archive file) path method One: In the GUI interface switch to the admin navigation bar, modify the artitacts path method Two: Modify in Configure XML <cruise>
<server artifactsdir="/path/to/artifacts/directory"> ... </server> </cruise>
注意,路径修改以后需要重启才能生效。
正确的修改步骤:先等job都comeplete,等agent都处于idle状态,然后修改配置,重启go-server
1.3配置站点URL
go站点支持http和https
当go配置了proxy之后,需要配置站点URL,该URL应该只想public的IP
Modify Configure XML:
<cruise> <server siteurl=" http://
1.4配置代理proxy
1.4.1在apache上配置需要预先安装apache的mod_proxy
然后enforce ssl:
Listen nnn.nnn.nnn.nnn:80NameVirtualHost nnn.nnn.nnn.nnn:80<VirtualHost nnn.nnn.nnn.nnn:80> ServerName go.yourdomain.com DocumentRoot /var/www/html SSLProxyEngine on SSLEngine on ProxyPass / https://localhost:8154/ ProxyPassReverse / https://localhost:8154/</VirtualHost>
1.4.2 ConfigurationOAuth 2.0
You need to add the configuration in Virtual host:
RequestHeader set X_FORWARDED_PROTO 'https'
1.5 Scale hardware requirements for Go server
1.5.1 By default the size of the JVM is-xms512m (minimum) and-xmx1024m (maximum),
In Linux, we can modify the environment variable SERVER_MEM (for minimum) and server_max_mem (for maximum) in/etc/default/go-server.
In Windwos, modify the wrapper-properties.conf in:
wrapper.java.additional.1=-Xms512m
wrapper.java.additional.2=-Xmx1024m
Tips:
If the number of agents exceeds 100, you will be prompted "Too many open files" in Go-server.log
In a Linux system, "Ulimit-n" can see the number of descriptors
Here are some steps you can take:
(1) vi/etc/security/limits.conf
Add * Soft nofile * Hard nofile 65535
(2) Vi/etc/pam.d/login
Add session required/lib/security/pam_limits.so
(3) Change the number of descriptors
echo "Fs.file-max = 65535" >>/etc/sysctl.conf