I need to open port 7001 in a linux server ( RHEL 6.3 ). Firewall is not running.
[root@hslsaoid2 ~]# service iptables status
iptables: Firewall is not running.
Please find the netstat -ntpl output
[root@hslsaoid2 ~]# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:57991 0.0.0.0:* LISTEN 15590/rpc.mountd
tcp 0 0 0.0.0.0:875 0.0.0.0:* LISTEN 15586/rpc.rquotad
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1299/rpcbind
tcp 0 0 0.0.0.0:55698 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:51828 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1582/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1474/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1674/master
tcp 0 0 0.0.0.0:47486 0.0.0.0:* LISTEN 1425/rpc.statd
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:34658 0.0.0.0:* LISTEN 15590/rpc.mountd
tcp 0 0 0.0.0.0:42820 0.0.0.0:* LISTEN 15590/rpc.mountd
tcp 0 0 :::5989 :::* LISTEN 1767/cimservermain
tcp 0 0 :::34122 :::* LISTEN 15590/rpc.mountd
tcp 0 0 :::111 :::* LISTEN 1299/rpcbind
tcp 0 0 :::22 :::* LISTEN 1582/sshd
tcp 0 0 :::46679 :::* LISTEN 15590/rpc.mountd
tcp 0 0 ::1:631 :::* LISTEN 1474/cupsd
tcp 0 0 ::1:25 :::* LISTEN 1674/master
tcp 0 0 :::46521 :::* LISTEN 1425/rpc.statd
tcp 0 0 :::36283 :::* LISTEN -
tcp 0 0 :::32896 :::* LISTEN -
tcp 0 0 :::8704 :::* LISTEN 13631/java
tcp 0 0 :::2049 :::* LISTEN -
tcp 0 0 :::60929 :::* LISTEN 15590/rpc.mountd
I tried to edit in /etc/sysconfig/iptables and restart the firewall but failed.