Glassfishv3 sets auto-start in Linux

Source: Internet
Author: User

1. Run as root

2. Enter the bin directory of the installation directory.

3. asadmin create-Service

4. CD/etc/init. d/will find a glassfish_domain1 file.

5. VI glassfish_domain1

6. Press the I key to enter the editing mode. In the second line, enter chkconfig: 2345 64 36.

7. Enter export as_java =/usr/local/jdk7 = in the first line after # To your JDK directory.

8. Press ESC to exit the editing mode.

9 ,! WQ exit

10. chmod + x glassfish_domain1

11. chkconfig -- add glassfish_domain1

12. Check whether the service is added by chkconfig -- list.

13. restart the computer. After the root user logs on, netstat-Na | grep 8080 will see the listener for this port, indicating that the setting is successful.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.