본문 바로가기

aws

Amazon Linux AMI에서 Apache2.2 + Tomcat7 연동 : 서버구축환경 OS: Amazon Linux AMI release 2011.09 ../../var/log/httpd lrwxrwxrwx 1 root root 29 Feb 2 05:33 modules -> ../../usr/lib64/httpd/modules lrwxrwxrwx 1 root root 19 Feb 2 05:33 run -> ../../var/run/httpd : apache 실행 $ sudo /usr/sbin/apachectl start $ netstat -lntp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:22 0.0.0.0:*.. 더보기
Amazon Linux AMI에 대하여... AWS 에서 사용하고 있는 OS는 Amazon Linux AMI 입니다. Amazon Linux AMI는 CentOS를 기반으로 하고 있으며 CentOS는 RedHat Enterprise Linux AS 기반의 리눅스 배포판입니다. 참고: http://centos.pe.kr/owiki/index.php?url=centos http://www.jopenbusiness.com/mediawiki/index.php/CentOS 또한 Amazon Linux AMI User Guide 문서에는 아래와 같은 내용이 있습니다. Is the Amazon Linux AMI compatible with other Linux distributions? The Amazon Linux AMI is very similar to C.. 더보기
Amazon EC2 / S3 mount process 목표: Amazon EC2 (Amazon Linux AMI 64) 와 S3 mount 연동 환경: Amazon Linux AMI 64는 CentOS 기반으로 만들어 졌음을 추정. http://www.cloudave.com/4872/open-source-and-cloud-computing-the-amazon-linux-ami-is-now-available/ Step 1: 아래 URL을 참조하여 mount 할 수 있는 기술 중 S3FS를 적용하기로 결정 http://code.google.com/p/s3ql/wiki/other_s3_filesystems ※ 처음에 S3QL을 적용하였으나 실제 마운트시 에러가 발생하였고 이를 해결하지 못해서 S3FS로 변경함. Step 2: S3FS 설치 절차 01. sudo .. 더보기
locate and updatedb on Amazon Linux(CentOS) Ref.: http://www.beguelin.com/2009/05/locate-and-updatedb-on-centos.html 리눅스에서 apt-get, yum, rpm 등을 사용하여 소프트웨어를 설치한 경우 어디에 설치가 되어있는지 대략난감할때가 있다. 보통 명령어의 존재를 확인할 때는 which command 를 사용하지만 이는 어디까지나 명령어의 위치만을 알려줄 뿐 실제 설치된 위치를 알려주는 것은 아니다. 더구나 리눅스는 심볼릭링크 등을 제공하기 때문에 실제 설치 위치는 더욱 알기 어렵다. 그래서 설치위치를 알려주는 유용한 명령어를 소개하고자 한다. sudo yum install mlocate sudo /etc/cron.daily/mlocate.cron 첫번째 문장을 실행하면 locate와 u.. 더보기