1. service iptables stop2. vi /etc/sysconfig/iptables3. service iptables save4. service iptables start5. service iptables status 위 순서대로 서비스를 종료 시키고 수정하고 저장하고 상태 확인이 끝이다.파일 샘플은 아래 참조#Firewall configuration written by system-config-securitylevel# Manual customization of this file is not recommended.*filter:INPUT ACCEPT [0:0]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [0:0]:RH-Firewall-1-INPUT - [0:0]-A IN..
OS 확인 [root@donnert ~]# cat /etc/*-release CentOS release 5.5 (Final) 설치 [root@donnert ~]# yum install subversion Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: data.nicehosting.co.kr * base: data.nicehosting.co.kr * extras: data.nicehosting.co.kr * updates: data.nicehosting.co.kr Setting up Install Process Resolving Dependencies --> Running transaction check ..
#!/bin/bash INSTANCE='cmsSvr11' echo 'Tomcat Stop' sh ~/was/tomcat/bin/stop$INSTANCE.sh while [ : ]; do sleep 1 CNT=`ps -ef | grep tomcat | grep java | grep -v grep | grep D$INSTANCE | wc -l` echo 'Tomcat process count -> '$CNT if [ $CNT -lt 1 ] then echo "Tomcat starting... >> catalina tail start"; sh ~/tomcat/bin/startup.sh cdate=$(date +'%Y-%m-%d') tail -f ~/tomcat/logs/catalina.$cdate.log ex..
크론탭에 등록 후 사용할 것을 추천서버가 살아있는지 죽어있는지 단순 텔넷을 이용해 로그를 남긴다. #!/usr/bin/ksh tpipe() { sleep 2;echo 'exit' sleep 2 } aliveCheck() { LOG_YEAR=`/bin/date +%Y` LOG_MONTH=`/bin/date +%m` LOG_DATE=`/bin/date +%Y%m%d` LOG_TIME=`/bin/date +%H:%M:%S` TARGET_SERVER='127.0.0.1 80' aliveDir=/home/test/log/$LOG_YEAR/$LOG_MONTH/ aliveFileName=alive.$LOG_YEAR$LOG_MONTH$LOG_DATE alivePath=$aliveDir$aliveFileName if [..
du -Sh 끝
- Total
- Today
- Yesterday
- Eclipse
- Linux
- properties
- Spring
- Database
- jQuery
- Tomcat
- vim
- 합정
- Access
- maven
- Shell
- 코틀린
- vi
- 톰캣
- Build
- boot
- Profile
- mybatis
- ls
- IntelliJ
- resttemplate
- docker
- 맛집
- grant
- oracle
- vrapper
- Kotlin
- java
- 도커
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |