设置linux系统java参数

vim /etc/profile


export JAVA_OPTS='-Dfile.encoding=UTF-8 -Djava.awt.headless=true -Xmx1500m -Xms1500m -XX:MaxNewSize=128m -XX:MaxPermSize=128m'

export JAVA_HOME=/usr/jdk1.5.0_22
export PATH=$JAVA_HOME/bin:$PATH

export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar


linux系统启动时候自启动项

cat /etc/rc.d/rc.local


#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.


route add -net 192.168.36.0 netmask 255.255.255.0 gw 192.168.42.254
route add -net 192.168.32.0 netmask 255.255.255.0 gw 192.168.42.254
sysctl -w net.core.rmem_max=20000000 net.core.rmem_default=20000000
sysctl -p
sysctl -w net.ipv4.route.flush=1
/etc/cupid_sys_ini
mount -t cifs -o user=linuxshare,password=PmPh59787557 //192.168.1.246/share /share200/
mount -t cifs -o user=linuxshare,password=PmPh59787557 //192.168.1.92/share /pmphmooc/
/usr/local/tengine/bin/nginx
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
/usr/tomcat_zcms/bin/startup.sh
/usr/tomcat9099/bin/startup.sh


touch /var/lock/subsys/local

你可能感兴趣的:(系统运维)