Skip to content

Y2IN/42webserv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

569 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# 서버 개발하면서 자주 사용될 명령어

웹서브 PID 찾기
lsof -i:8080

웹서브 프로세스 죽이기
kill -9 PID

PID 찾고 프로세스 죽이기
lsof -i:8080 | awk 'FNR == 2 {print $2}' | xargs kill -9

TIME_WAIT 상태 찾기
netstat -an | grep TIME_WAIT

siege 테스트 : 10개의 유저가 100번 요청
>> brew install siege
>> sudo sysctl -w net.inet.tcp.msl=100
>> siege -c 10 -r 100 http://localhost:442/
끝나고 다시 원래대로 돌아가기
>> sudo sysctl -w net.inet.tcp.msl=15000

테스터 돌리기
1쪽 터미널
>> ./webserv assets/conf/tester.conf
2쪽 터미널
>> ./tester http://localhost:8080

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 95.4%
  • HTML 1.8%
  • Makefile 1.5%
  • Python 1.3%