设置linux系统java参数
2016-03-24 13:50
399 查看
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
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
相关文章推荐
- linux下使用Qt库进行开发心得
- centos 6.X系统里的网卡em1还原为eth0
- centos下如何停止ping命令
- Linux驱动开发-8、中断分层机制_软中断
- [basic linux基础]-进程
- Linux内存管理Linux Memory Management Notes
- linux安装cnn库
- Linux命令-进程后台执行:nohup(就是不挂起的意思)
- Linux编程---线程
- linux中安装jdk+jmeter-
- linux中安装jdk+jmeter-
- linux安装boost库
- 关于Makefile的正确使用
- linux 读取input输入设备demo
- linux下的VI命令大全
- parted命令对齐分区,获得最佳性能
- linux下vi命令大全
- Linux下查看文件内容的命令
- Linux系统中nmap网络扫描工具的命令用法详解
- Linux系统中sort排序命令的使用教程