方案
我有我的vhost工作,一切正常,但是当我按照link安装jenkins后,我无法访问jenkins主页
我的jenkins.conf
<VirtualHost *:80>
ServerAdmin xx@xxx.xxx
ServerName ci.xxx.xxx
ServerAlias ci
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost on
ProxyPass / http://localhost:8080/ nocanon
AllowEncodedSlashes NoDecode
</VirtualHost>
运行命令后:
$ a2ensite jenkins
Enabling site jenkins.
To activate the new configuration, you need to run:
service apache2 reload
$ service apache2 reload
$ apache2ctl restart
主机文件[在主机中] 192.168.56.101 localhost jenkins.dev
但是转到localhost:8080或jenkins.dev:8080没有任何反应,只有“此网页不可用”消息
jenkins.log
# cat /var/log/jenkins/jenkins.log
Running from: /usr/share/jenkins/jenkins.war
Dec 23, 2014 4:03:37 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Dec 23, 2014 4:03:47 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-winstone-2.8
Dec 23, 2014 4:03:53 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
Dec 23, 2014 4:03:56 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started SelectChannelConnector@0.0.0.0:8080
Dec 23, 2014 4:03:56 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Dec 23, 2014 4:03:57 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Dec 23, 2014 4:05:17 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Dec 23, 2014 4:05:17 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Dec 23, 2014 4:05:17 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Dec 23, 2014 4:05:20 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Dec 23, 2014 4:05:20 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Dec 23, 2014 4:05:23 PM org.jenkinsci.main.modules.sshd.SSHD start
INFO: Started SSHD at port 46803
Dec 23, 2014 4:05:23 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Dec 23, 2014 4:05:23 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
答案 0 :(得分:0)
是的,我会回答我自己的问题:)
我只需要转发vargant的端口,所以我修改了puphpet生成的config.yaml文件,看起来像......
vagrantfile-local:
vm:
...
network:
private_network: 192.168.56.101
forwarded_port:
...
6Z78RN0FAAN9:
host: '8080'
guest: '8080'
我用以下方式重新加载vargant:
vargant reload --provision
现在工作正常,让我们整合:)