SSH 환경설정 설정파일 경로 : /etc/sshd/sshd_config AllowUsers root nextline 로그인 허락할 계정 nextline와 root 두 계정에게만 로그인 허용 합니다. PermitRootLogin no root 로그인 허용여부를 결정하는 것입니다. yes, no, without-password를 사용할 수 있습니다. 현재 no로 되어 있기 때문에 직접 root로 접속이 불가능합니다. .. Linux 2012.10.08
rsync 원격백업설정 rsync 원격백업설정 1. 서버 쪽 (마스터) [root@doom1 ~]# rpm -qa | grep rsync // rsync 설치 확인 rsync-2.6.8-3.1 만약 설치가 안되어 있다면 # yum install rsync [root@doom1 ~]# vi /etc/xinetd.d/rsync // rsync를 xinetd를 이용하여 실행시키기 위해 /etc/xinetd.d/rsync 파일을 수정 # default: off # description: The rsync server is a good addi.. Linux 2012.10.08
PHP configure 에러관련 yum 설치 PHP configure 에러관련 yum 설치 출처 : http://www.eukhost.com/forums/f15/troubleshooting-php-installations-compilations-linux-servers-6041/ It's very easy to install PHP or Apache software using yum or rpm on plain Linux servers. It installs all the necessary dependency packages automatically, we don’t need to install such dependent or development packages manually. .. Linux 2012.10.08
pear Spreadsheet_Excel_Writer 설치 pear Spreadsheet_Excel_Writer 설치 pear 확인 -> pear version cd /usr/share lynx -source http://pear.php.net/go-pear | php 쭉 엔터 ****** 추가 2011-06-09 >> 만약 아래와 같은 에러가 난다면 Sorry! Your PHP version is too new (5.1.6) for this go-pear. Instead use http://pear.php.net/go-pear.phar for a more stable and current version of go-pear, more .. Linux 2012.10.08
리눅스 명령어 (mail) mail 명령어 수신 메일 확인하기 #mail -u 유저명 위와 같이 하면 해당 유저의 메일박스에 있는 메일 리스트가 출력되고 mail 유틸의 명령어 모드 상태가 되며 실행 가능한 명령어는 다음과 같다. help : 사용 가능한 명령어 리스트 및 명령어 설명. t <message list> : 지정된 메일의 내용을 출력.. Linux 2012.10.08
Mail 로그 확인 Mail 로그 확인1. stat=Deferred: Connection refused by topcat.bridgew.edu Currently there is some problem in the destination server's SMTP service. 2. stat=Deferred: Name server: nelsoncorp.gonelson.com: host name lookup failure DNS server unable to resolve the destination host name 3. stat=Deferred: Connection timed out with ostint.com. Network connection is too slow 4. st.. Linux 2012.10.08
Linux명령어(vmstat) Linux명령어(vmstat) 출처 : http://tong.nate.com/srirama/11091898 서버가 느려졌어요! 서버를 운영하다가 보면 간혹 눈에 띄게 서버가 느려지는 현상을 경험하게 된다. 시스템에 접근하는 것은 정상인데 웹이 느려졌을 수도 있고 어쩌면 그 반대일 가능성도 있다. 시스템이 느리다는 것은 관리자 혹은.. Linux 2012.10.08
리눅스 명령어 (tail, find) // ############################################### tail tail -f /var/log/cron 파일의 마지막 10줄을 찍고 추가될 때마다 더 보는 커맨드 $ cat /proc/cpuinfo $ cat /proc/meminfo $ cat /proc/stat 메모리 정보 확인 $ cat /etc/issue // ############################################### find 1. 현재 디렉토리( . ) 이하에 확장자가 .html( -name "*.htm.. Linux 2012.10.08
호스트네임 변경 /etc/sysconfig/network 에서 hostname을 변경한다. # echo 호스트명 > /proc/sys/kernel/hostname 으로 즉시 변경 가능 (네트워크 리스타트나 리부팅 필요없음) Linux 2012.10.08
ffmpeg 설치 사용 ffmpeg 설치 사용 ffmpeg 설치 임의의 파일 CentOS-DAG.repo를 만든다 # vi /etc/yum.repos.d/CentOS-DAG.repo [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 enabled=1 설치 # yum install ffmpeg ffmpeg-devel 만약 경고: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8.. Linux 2012.10.08