linux java环境搭建 debian安装


1 apt-get install openssh-server 安装远程(源是光盘)
2 设置163源
  1 vim /etc/apt/soureces.list 这个文件
  2 加入163源
  
    deb http://mirrors.163.com/debian lenny main non-free contrib
deb http://mirrors.163.com/debian lenny-proposed-updates main contrib non-free
deb http://mirrors.163.com/debian-security lenny/updates main contrib non-free
deb-src http://mirrors.163.com/debian lenny main non-free contrib
deb-src http://mirrors.163.com/debian lenny-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian-security lenny/updates main contrib non-free
  3 apt-get update
3 更新内核
   apt-get install linux-image-2.6.26-1-686-bigmem
4  update-grub
5  apt-get install sun-java6-jdk
7  下载tomcat6 放在user/local下并解压tar zxvf FileName.tar.gz
8  重名命 tomcat6 #mv old filename newfilename
9  将tomcat脚本放入/ect/init.d/
10 scp root@ip:文件 本地路径
11 apt-get install rcconf 服务a
12 rcconf 选中tomcat
13 安装samba apt-get install samba
14 cd / mkdir spider
15 配置samba smb.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

你可能感兴趣的:(java,tomcat,linux,Debian,vim)