방금 apt-get install hudson 명령 줄을 사용하여 우분투 서버 14에 hudson 3.1.2를 설치했습니다.Hudson ajp 포트/서비스를 사용할 수 없음
일단 설치가 끝나면 URL의/hudson을 사용하여 hudson에 액세스 할 수 있도록 기본 구성 파일을 변경했습니다. 다음과 같이 http 포트와 ajp 포트도 구성했습니다.
HTTP_PORT=8082
AJP_PORT=8029
HUDSON_ARGS="--prefix=/hudson --webroot=/var/run/hudson/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"
다시 시작하면 모든 것이 정상적으로 작동합니다.
난 후 다음과 같이 아파치 구성 디렉토리 내 workers.properties 파일을 구성 :worker.list=worker1,artifactory,hudson
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.artifactory.type=ajp13
worker.artifactory.host=localhost
worker.artifactory.port=8019
worker.hudson.type=ajp13
worker.hudson.host=localhost
worker.hudson.port=8029
을 또한 기본은 다음과 같은 사이트를 사용할 수 :
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin [email protected]
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
JkMount /penny* worker1
JkMount /manager* worker1
JkMount /artifactory* artifactory
JkMount /hudson* hudson
JkMount /jira* worker1
</VirtualHost>
전체 IP 주소와 포트를 입력 , 나는 아무런 문제없이 허드슨에 접속할 수 있습니다. ipaddress/hudson을 사용하여 액세스하면 아파치에서 서비스를 사용할 수 없다는 메시지가 나타납니다. 무엇이 누락 되었습니까?
나는 그것을했고 그것은 아무 것도 바뀌지 않았다. –