Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- https
- vsftpd
- SSL
- haproxy
- MariaDB
- ubuntu
- CentOS
- db
- 방화벽
- firewall
- HLS
- 8443
- 도커
- mysql
- youtube-dl
- phpmyadmin
- iptables
- letsencrypt
- YouTube
- haproxy.cfg
- yum
- centos7
- Tomcat
- Maria
- 인증서
- mount
- Cent
- docker-compose
- nginx
- docker
Archives
- Today
- Total
개발자의뇌
curl http response time check 본문
서버에 http timeout 이 자주 발생하기에 모니터링을 하기 위해
curl로 응답속도를 체크하는 방법을 찾아 기록함.
vi curl-format.txt
total:%{time_total} lookup:%{time_namelookup} connect:%{time_connect} appconnect:%{time_appconnect} pretransfer:%{time_pretransfer} redirect:%{time_redirect} starttransfer:%{time_starttransfer}
curl 실행
curl -w "@curl-format.txt" -o /dev/null -s "google.com"
curl-format.txt 를 조정하면 원하는 형태의 로그 포맷을 지정할 수 있다.
curl로 가져오는 http response body는 /dev/null 로 버린다.
'개발 > Linux' 카테고리의 다른 글
node 사용하여 ip to location 서버 만들기 (0) | 2021.04.12 |
---|---|
nginx permission denied error 발생 (0) | 2020.08.04 |
서버 자원 모니터링 쉽게 하는 방법 2가지 (0) | 2019.12.04 |
mysql/mariadb 유용한 명령어 (0) | 2019.12.02 |
CentOS7 tomcat8 설치하기 (0) | 2019.11.04 |