更新port
#cp /usr/share/example/etc/portsnap.conf /etc
#ee /etc/portsnap.conf
SERVERNAME=portsnap.hshh.org #13line
#portsnap fetch extract
#第一次如此,之后 则用
portsnap freebsd update
#setenv PACKAGESITE http://mirrors.163.com/FreeBSD/releases/i386/8.1-RELEASE/packages/Latest/
#pkg_add -r exel
#cp /usr/share/example/etc/make.conf /etc
#ee /etc/make
在最后加上
FETCH_CMD=axel -a
MASTER_SITE_BACKUP?=http://mirrors.163.com/FreeBSD/distfiles/${DIST_SUBDIR}/
MASTER_SITE_OVERRIDE?=${MASTER_SITE_BACKUP}
准备工作
http://www.freebsdfoundation.org/downloads/java.shtml 下载
diablo-caffe-freebsd7-i386-1.6.0_07-b02.tar.bz2
放到 /usr/ports/distfiles
pkg_add -r gmake | cd /usr/ports/devel/gmake ; make install clean
##不装会报错、
http://www.freebsd.org/ports/ 查diablo-jdk的依赖关系
如图
挺让人蛋疼的,为什么要装那么多 X11 的东西?
#cd /usr/ports/java/diablo-jdk16
#make install clean
#试过make WITHOUT_X11=yes install clean 还是把那些X11的东西装上去了。
#Tomcat
对tomcat端口树进行更新。
#cp /usr/share/example/cvsup/ports-supfile tc-supfile
编辑tc-supfile
ports-all #ports-all
#ports-www ports-www
现在开始更新
#pkg_add -r cvsup-witout-gui
#cvsup -g -L 2 tc-supfile
更新之后,安装tomcat
#cd /usr/ports/www/tomcat6
#make install clean
设置开机启动,编辑/etc/rc,conf
#Tomcat
#tomcat60_enable="YES"
按以下方式启动Tomcat
/usr/local/etc/rc.d/tomcat6 start
Tomcat6,FreeBSD将Tomcat的默认http端口为8180,访问地址为
http://localhost:8180