顯示具有 port 標籤的文章。 顯示所有文章
顯示具有 port 標籤的文章。 顯示所有文章

2012年1月15日 星期日

CentOS修改Jenkins傾聽的port

Jenkins預設傾聽的port是8080,會跟Tomcat衝到, 因此可以透過下列方式對Jenkins作修改, 打開/etc/sysconfig/jenkins
JENKINS_PORT="8080"   # 改為您想要的port
Reference: Banym

2011年7月7日 星期四

Find what program is listening on which port

# print network connections 
netstat -ntulp

# list open files
lsof -i

# list open files on specific port
lsof -i tcp:8080 
Reference: LinuxQuestions

2011年1月26日 星期三

Verifying Which Ports Are Listening

# install nmap tool
yum install -y nmap.x86_64

# run this command to see which ports are listening now
nmap -sT -O localhost
Reference: centos.org