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
- The process number of the service is found:
[email protected] svn]$ ps-a | grep SVN
4094? 00:00:00 Svnserve
- Shutdown process: Kill 4094
- Start
- Start the service:
[email protected] svn]$ svnserve-d-R test
- 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