일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- kolla
- OpenStack
- ceph
- archlinux
- repository
- HTML
- cephadm
- ceph-ansible
- pacman
- Linux
- Kubeflow
- Arch
- Ansible
- Kubernetes
- KVM
- libvirt
- golang
- cloud-init
- grafana-loki
- terraform
- Octavia
- k8s
- yum
- kolla-ansible
- awx
- port open
- i3
- Docker
- nfs-provisioner
- ubuntu
Archives
- Today
- Total
목록포트 오픈 (1)
YJWANG
[Golang] Linux 포트 오픈 체크
Golang으로 TCP 포트 오픈 체크하는 프로그램에 대해 포스팅 하겠습니다. 아래와 같이 코딩한 이후 package main import ( "fmt" "net" "time" ) func main() { host := "localhost" port := "8888" address := net.JoinHostPort(host, port) conn, err := net.DialTimeout("tcp", address, 3*time.Second) if err != nil { fmt.Println(err) } else if conn != nil { defer conn.Close() fmt.Printf("%s:%s is opened \n", host, port) } } 오픈된 포트를 스캔했을 때, 오픈되지 않을..
90.Programming
2021. 5. 3. 12:31