tkh*_*lll 0 java qemu raspberry-pi raspbian
vm-image有一个非常小的驱动器,大约300MB的可用空间,这还不足以安装Java + Jenkins.所以我们需要扩展它.
qemu-img resize 2012-07-15-wheezy-raspbian.img +10GBios directory into the QEMU directory, where qemu-system-x86_64.exe is located. Start a normal x86 machine using the command:
qemu-system-x86_64.exe -hda 2012-07-15-wheezy-raspbian.img -m 512M
-cdrom gparted-live-0.16.2-1b-i486.iso -boot d -pflash bios.bin.
This take a quite bit of time...
Resize the partition to fill the disk.
dfsudo apt-get updatesudo apt-get install jenkinssudo service jenkins stopThe log cat /var/log/jenkins/jenkins.log reveals the following:
[Winstone] - Beginning extraction from war file
[Winstone] - Error initializing web application: prefix []
java.io.IOException: No space left on device
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:282)
at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:273)
at winstone.HostConfiguration.<init>(HostConfiguration.java:73)
...
at Main.main(Main.java:96)
Run Code Online (Sandbox Code Playgroud)/run,其中只有10%的RAM(约20MB -m 192).要解决此问题,我们需要将--webroot参数编辑为Jenkins以使用另一个目录.nano /etc/default/jenkins
编辑以下行
JENKINS_ARGS="--webroot=$JENKINS_RUN/war --httpPort=$HTTP_PORT ...
成
JENKINS_ARGS="--webroot=$JENKINS_HOME/war --httpPort=$HTTP_PORT ...
run.bat再次启动QEMUsudo apt-get install oracle-java7-jdkupdate-java-alternatives -lsudo update-alternatives --config java 并选择Oracle JDK.java -version确保使用Java(TM)SE运行时环境sudo service jenkins starttail /var/log/jenkins/jenkins.log -f并等待詹金斯完全正常运行wget localhost:8080 && nano index.html| 归档时间: |
|
| 查看次数: |
1574 次 |
| 最近记录: |