更换apt-get官方源为163源

更换apt-get官方源为163源

1.# mv /etc/apt/sources.list /etc/apt/sources.list.bak

2.覆盖原来源文件

tee /etc/apt/sources.list <<-‘EOF’
deb http://mirrors.163.com/debian/ jessie main non-free contrib

deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib

deb http://mirrors.163.com[……]

继续阅读

将tomcat作为服务

cp catalina.sh /etc/init.d/tomcat

vim /etc/init.d/tomcat

添加 CATALINA_HOME=/root/apache-tomcat-8.5.61 以及 JRE_HOME=/root/jre1.8.0_281

chmod 777 /etc/init.d/tomcat

[……]

继续阅读

1 3 4 5 6 7 15