Under RedHat Linux boot to achieve self-starting Tomcat [Reserved]

2011-09-15  来源:本站原创  分类:OS  人气:146 

First, set the system-level environment variables:
Modify / etc / profile file
[Root @ localhost ~] # vi / etc / profile
In the file:
JAVA_HOME = / usr/java/jdk1.6.0_12
export JAVA_HOME
Save and exit.
This article comes from Linux commune website (www.linuxidc.com) text link: http://www.linuxidc.com/Linux/2010-08/27699.htm

Second, like tomcat boot from the start must have set the / etc / rc.d / rc.local file

[Root @ localhost ~] # vi / etc / rc.d / rc.local
In the file:
JAVA_HOME = / usr/java/jdk1.6.0_12
export JAVA_HOME
/ Tomcat5/bin/startup.sh (Tomcat installation path in linux)
Save and exit reboot [root @ localhost ~] # reboot
This article comes from Linux commune website (www.linuxidc.com) text link: http://www.linuxidc.com/Linux/2010-08/27699.htm

相关文章
  • Under RedHat Linux boot to achieve self-starting Tomcat [Reserved] 2011-09-15

    First, set the system-level environment variables: Modify / etc / profile file [Root @ localhost ~] # vi / etc / profile In the file: JAVA_HOME = / usr/java/jdk1.6.0_12 export JAVA_HOME Save and exit. This article comes from Linux commune website (ww

  • linux boot from the start under tomcat 2011-05-11

    1, the following code to save the file to tomcat, and make it executable chmod 755 tomcat. #! / Bin / bash # # Kenny kenny.zhou @ tom.com # / Etc / rc.d / init.d / tomcat # Init script for tomcat precesses # # Processname: tomcat # Description: tomca

  • tomcat under linux boot, and remote view the tomcat console 2010-07-03

    Boot linux into tomcat installation directory / Apache-tomcat-6.0.26/bin run #. / Startup.sh start Stop tomcat run the command: #. / Shutdown.sh start Remotely view the console of tomcat into the tomcat / logs / folder type the command: tail-f catali

  • linux boot scripts in the order and services 2010-10-07

    linux boot scripts sequence If you need to manually reboot the server opens a lot of services, work and future maintenance is relatively complicated, specially summarized at startup under linux script under the knowledge and methods involved, as foll

  • The wind took RedHat Linux password recovery 2011-03-03

    There are many reasons may cause the user password is lost, which system administrators may not be a problem, as long as the Root account to log in, then Passwd command to change the user password on it. However, if the loss is the Root password, but

  • RedHat Linux common log files and common commands 2011-09-20

    Successful management of any system of one of the keys is to know what is happening in the system. Linux provides an exception in the log and the log details are configurable. Linux logs are stored in clear text, so users do not need a special tool y

  • RedHat Linux network configuration files 2010-08-21

    In Linux systems, TCP / IP network through a number of text configuration files, you need to edit these files to complete the networking. In RedHat Linux installed just after the graphical interface can be configured, the following describes the comm

  • Linux boot process analysis (to) 2011-01-09

    Original link: http://bbs.phpchina.com/thread-82640-1-15.html In this paper, RedHat9.0 and the i386 platform as an example, analysis of the power from the user to open the command prompt appears until the screen throughout the Linux boot process. And

  • RedHat Linux 6 open VNC Server Enterprise Edition Remote Desktop 2011-05-06

    Environment: RedHat Linux 6 Enterprise Edition. Xwindows: gnome (the default installation of Red Hat's graphical interface) Although we can use SSH to connect remotely through the character interface to operate Linux, but for people more familiar wit

  • [Transfer] linux boot 2010-11-02

    ------- Learning Linux, colleagues conclude, perhaps from the linux boot process can be seen that the Linux development process; Prehistoric times: BIOS-computer boot process Power supply power, motherboard chipset thick hair like CPU RESET signal, t

  • Analyze the linux boot process (transfer) 2011-01-09

    Original link: http://bbs.phpchina.com/thread-82640-1-15.html In this paper, RedHat9.0 and i386 platforms, for example, analysis of the power from the user to open the command prompt appears on the screen until the entire Linux boot process. And intr

  • RedHat Linux 6 on VNC Server Enterprise Edition Remote Desktop 2011-05-06

    Environment: RedHat Linux 6 Enterprise Edition. Xwindows: gnome (the default installation of Red Hat's graphical interface) Although we can use SSH to connect remotely through the character interface to operate Linux, but for people more familiar wit

  • Linux's initial contact with the Linux boot process 2011-08-31

    When the user opens the PC power supply, BIOS POST, the BIOS settings at startup device (typically a hard disk) to start, then start the install on the device to guide the program began lilo or grub boot Linux, Linux kernel to boot first, then execut

  • Linux Summary (VMWare 5.RedHat Linux 4.VSFTP) 2011-09-11

    Set up an FTP server ( Virtual machine with host-only network connection mode ): VSFTP:Very Secure FTP Ifconfig eth0 192.168.81.2 netmask 255.255.255.0 which can modify the current session Work, if you want to the virtual machine configuration fixed

  • linux boot services set 2010-03-26

    linux boot services set Original link: http://hackbase.com/tech/2008-06-25/41112.html 1, basic knowledge points 1) redhat startup mode and the implementation of the order is: Load the kernel implementation of the init process / Etc / rc.d / rc.sysini

  • RedHat Linux FAQ Gallery (1) 2010-04-08

    0001 host name changes 0002.a Ret Hat Linux boot to a text interface (do not start xwindow) 0002.b how to switch between console and xwindow 0003 redhat auto-escalation 0004 windows to see linux partition under the software: 0005 mount usage LINUX 00

  • redhat linux network card a fixed ip setting 2010-04-30

    redhat linux network card a fixed ip setting Before xwindow under redhat-config-network to set a fixed ip network card was found does not work, set up after the ping is unreasonable. To look for some information, change / etc/sysconfig/network-script

  • Linux boot partition automatically mount Win Tips 2010-10-09

    Source: Cody Win Linux boot partition automatically mount tips (in Ubuntu for example) 2009-12-08 10:39:54 http://foolishken.blog.163.com/blog/static/256276652009118103954478/ System is Ubuntu8.10 version, other versions or other distributions does m

  • The three Redhat Linux 9 installation CD to burn to a DVD, 2010-10-15

    The three Redhat Linux 9 installation CD to burn to a DVD, DVD burner, and decided three Redhat Linux 9 installation CD to burn to a DVD. I tried using UltraISO to open the first disk of the ISO and then the rest two German documents incorporated, an

  • Linux boot process [transfer] 2010-11-09

    After powering the machine, BIOS start testing the system parameters, such as memory size, date and time, disk devices, and equipment used to direct these disks in the order, under normal circumstances, BIOS is configured to first check all floppy or