linux java环境搭建 debian安装

1apt-getinstallopenssh-server安装远程(源是光盘)

2设置163源

1vim/etc/apt/soureces.list这个文件

2加入163源

debhttp://mirrors.163.com/debianlennymainnon-freecontrib

debhttp://mirrors.163.com/debianlenny-proposed-updatesmaincontribnon-free

debhttp://mirrors.163.com/debian-securitylenny/updatesmaincontribnon-free

deb-srchttp://mirrors.163.com/debianlennymainnon-freecontrib

deb-srchttp://mirrors.163.com/debianlenny-proposed-updatesmaincontribnon-free

deb-srchttp://mirrors.163.com/debian-securitylenny/updatesmaincontribnon-free

3apt-getupdate

3更新内核

apt-getinstalllinux-image-2.6.26-1-686-bigmem

4update-grub

5apt-getinstallsun-java6-jdk

7下载tomcat6放在user/local下并解压tarzxvfFileName.tar.gz

8重名命tomcat6#mvoldfilenamenewfilename

9将tomcat脚本放入/ect/init.d/

10scproot@ip:文件本地路径

11apt-getinstallrcconf服务a

12rcconf选中tomcat

13安装sambaapt-getinstallsamba

14cd/mkdirspider

15配置sambasmb.conf

16设置tomcat内存JAVA_OPTS='-Xms512m-Xmx2048m'

17设置日志文件/usr/local/tomcat/webapps/scaner/WEB-INF/classes/log4j.xml

18设置文件扫描时保存方式/usr/local/tomcat/webapps/scaner/WEB-INF/classes/context-core-scan.properties

相关推荐