서버관련/Install
-
apache - chkconfig 등록방법 (아파치 서비스 등록) centos 에서 자동실행 and 서비스 등록 cp /경로/apache/bin/apachectl /etc/init.d/httpd vi /etc/init.d/httpd #!/bin/sh # # chkconfig: 2345 90 90 # description: init file for Apache server daemon # processname:/경로/apache/bin/apachectl # config: /경로/apache/conf/httpd.conf # pidfile /경로/apache/logs/httpd/pid 내용추가 # chkconfig --add httpd끝!
apache - chkconfig 등록방법 (아파치 서비스 등록)apache - chkconfig 등록방법 (아파치 서비스 등록) centos 에서 자동실행 and 서비스 등록 cp /경로/apache/bin/apachectl /etc/init.d/httpd vi /etc/init.d/httpd #!/bin/sh # # chkconfig: 2345 90 90 # description: init file for Apache server daemon # processname:/경로/apache/bin/apachectl # config: /경로/apache/conf/httpd.conf # pidfile /경로/apache/logs/httpd/pid 내용추가 # chkconfig --add httpd끝!
2014.08.21 -
#! /bin/sh # # Created by configure './configure' \ '--prefix=/data/php' \ '--with-apxs2=/data/apache/bin/apxs' \ '--with-mysql=/data/mysql' \ '--with-config-file-path=/data/apache/conf' \ '--disable-debug' \ '--enable-safe-mode' \ '--enable-track-vars' \ '--enable-sockets' \ '--with-mod_charset' \ '--with-charset=utf8' \ '--with-xml' \ '--with-language=korean' \ '--enable-mailparse' \ '--enable..
PHP 5.3.10 Configure#! /bin/sh # # Created by configure './configure' \ '--prefix=/data/php' \ '--with-apxs2=/data/apache/bin/apxs' \ '--with-mysql=/data/mysql' \ '--with-config-file-path=/data/apache/conf' \ '--disable-debug' \ '--enable-safe-mode' \ '--enable-track-vars' \ '--enable-sockets' \ '--with-mod_charset' \ '--with-charset=utf8' \ '--with-xml' \ '--with-language=korean' \ '--enable-mailparse' \ '--enable..
2012.05.02 -
#! /bin/sh # # Created by configure "./configure" \ "--prefix=/data/apache" \ "--enable-modules=so" \ "--enable-ssl" \ "--with-mpm=prefork" \ "--enable-rewrite" \ "--enable-mods-shared=all" \ "--enable-so" \ "$@"
Apache 2.2.22 configure#! /bin/sh # # Created by configure "./configure" \ "--prefix=/data/apache" \ "--enable-modules=so" \ "--enable-ssl" \ "--with-mpm=prefork" \ "--enable-rewrite" \ "--enable-mods-shared=all" \ "--enable-so" \ "$@"
2012.05.02 -
#!/bin/sh find /home/backup1 -ctime +3 \-exec rm -f {} \; ##백업할 디렉토리 home_root="/home/" backup_home_root="/home/backup1/" sysdtime=`date +%Y%m%d-%H` cd $home_root echo "백업 중입니다" for home_name in $(ls) do if [ -d "$home_root/$home_name" ] ; then echo "tar -cvzpf $backup_home_root$home_name.tar.gz $home_name" tar -czpf "$backup_home_root$home_name-$sysdtime.tar.gz" "$home_name" fi done chmod 600 $..
파일백업 스크립트 <backup.cron>#!/bin/sh find /home/backup1 -ctime +3 \-exec rm -f {} \; ##백업할 디렉토리 home_root="/home/" backup_home_root="/home/backup1/" sysdtime=`date +%Y%m%d-%H` cd $home_root echo "백업 중입니다" for home_name in $(ls) do if [ -d "$home_root/$home_name" ] ; then echo "tar -cvzpf $backup_home_root$home_name.tar.gz $home_name" tar -czpf "$backup_home_root$home_name-$sysdtime.tar.gz" "$home_name" fi done chmod 600 $..
2008.06.05 -
#!/bin/sh find /backup1/mysqldump -ctime +7 \-exec rm -f {} \; # ###################################################### ## ## [백업하는 자료] ## ## 0. 날짜별로 백업(예: filename-20010310-04.xxx) ## 1. 시스템 날짜 수정(rdate) ## 2. mysql 모든 DB를 .sql 이나 .sql.gz 형태로 백업 ## 3. 기타(아직 없음) ## ## * 나머지 설정 파일은 일주일에 한번이나 두번 정도로 ## 백업하는 것이 적당. ## ###################################################### ## ## [관리자가 꼭 설정해야할 내용 - 1..
Mysql 데이터베이스 백업 스크립트 DBDUMP.CRON#!/bin/sh find /backup1/mysqldump -ctime +7 \-exec rm -f {} \; # ###################################################### ## ## [백업하는 자료] ## ## 0. 날짜별로 백업(예: filename-20010310-04.xxx) ## 1. 시스템 날짜 수정(rdate) ## 2. mysql 모든 DB를 .sql 이나 .sql.gz 형태로 백업 ## 3. 기타(아직 없음) ## ## * 나머지 설정 파일은 일주일에 한번이나 두번 정도로 ## 백업하는 것이 적당. ## ###################################################### ## ## [관리자가 꼭 설정해야할 내용 - 1..
2008.06.05