분류 전체보기 2053

chmod 폴더 or 파일만

chmod 폴더 or 파일만 권한을 주고 싶을때 find 명령어를 쓰면 된다.(파일 = f , 디렉토리 = d) 파일만 #find ./ -type f -exec chmod 777 -R * {} \; 폴더만 #find ./ -type d -exec chmod 777 -R * {} \; chattr 도 동일하다. 파일만 #find ./ -type f -exec chattr +a {} \; 폴더만 #find ./ -type d -exec chattr +a {} \; 예) #find ./ -type d -exec chattr -R +a {} \; 모든 디렉토리 및 이하 파일적용 적용됐는지 확인lsattr find: missing argument to `-exec' 에러가 뜰경우 {} \ 한칸을 안띄어 줘서 에러..

Linux 2011.08.11

Centos yum Server 구축 mirror

장비에 리눅스 설치 설치시 yum data 영역을 별도로 설정 예) /centos , /yum 모든 설치후에 rsync 로 centos에 있는 파일들 동기화(한국서버)#rsync -avrt --delete --exclude "local*" --exclude "isos" rsync://ftp.neowiz.com/centos/ /Centos/ 총용량은 6.0 버전 기준으로 총 120G정도다. 그리고 yum 설정변경 #vi /etc/yum.repos.d/CentOS-Base.repo 수정 # CentOS-Base.repo # # This file uses a new mirrorlist system developed by Lance Davis for CentOS. # The mirror system uses t..

Linux 2011.08.06

홈페이지 구축 관련 정리

리눅스 32bit / 64bit 아무거나 깐다 yum을 이용해서 아래 항목들을 업데이트를 한다 #yum install httpd #yum install mysql #yum install php #yum install gd #yum install php-gd - yum 을 통해 php 설치하기 위해서 저장소에 아래 주소 입력 - #vi /etc/yum.repos.d/CentOS-Base.repo [c5-testing] name=CentOS-5 Testing baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-Cent..

Homepage 2011.06.23

phpmyadmin 설정시 The configuration file now needs a secret passphrase (blowfish_secret).

The configuration file now needs a secret passphrase (blowfish_secret). 에러가 뜰경우 1. config.sample.inc.php를 config.inc.php으로 복사합니다. 2. 텍스트 에디터로 config.inc.php를 엽니다. 3. 블로우피시(blowfish) 비밀키 값을 지정합니다. (변경전) $cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ (변경후) $cfg['blowfish_secret'] = 'xxxxx'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ 임의의 비밀키

Homepage 2011.06.18
728x90
320x100