Linux Learning notes-occasional updates

Source: Internet
Author: User

manually add a Linux firewall port:

In the actual operation of Linux often need to modify the firewall, such as often to modify or add the relevant port, below to add 8080 ports required to run Tomcat as an example:

(The following command actions are root users)

1. Edit the Iptables file

# Vi/etc/sysconfig/iptables

Add the following line to refer to the existing 22 port of SSH that is already open

-A input-m state--state new-m tcp-p TCP--dport 8080-j ACCEPT

(Modify 8080 to another port, you can open other ports, such as 80,21, etc.)

2. Restart the firewall

# Service Iptables Restart

Get!

SVN service startup and shutdown

      • Shut down
        1. The process number of the service is found:
          [email protected] svn]$ ps-a | grep SVN
          4094? 00:00:00 Svnserve
        2. Shutdown process: Kill 4094
      • Start
        1. Start the service:
          [email protected] svn]$ svnserve-d-R test
        2. NETSTAT-NTLP See if Port 3690 is open properly
      • Test status
      • [Test@localhost svn]$ SVN info file:///home/test/svn/test/

Linux Learning notes-occasional updates

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.