디지탈오션에 서버 셋팅기 (centos 6.7)

친구랑 개발하는 간단한 쪽지앱의 서버로 사용할 서버를 구축했다. 물론 나는 잘 모른다 모든건 다 구글을 통해.. 1. SWAP 메모리 할당 https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-centos-6 1 2 3 4 5 dd if=/dev/zero of=/swapfile bs=1024 count=2048k mkswap /swapfile swapon /swapfile chown root:root /swapfile chmod 0600 /swapfile 아래 내용을 /etc/fstab 에 붙인다. 1 /swapfile swap swap defaults 0 0 2. 서버 시간을 KST 로 바꿈 & rdate 설치 1 2 ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime yum install rdate 3....

September 15, 2015 · 2 min · 페이퍼

spring-rabbitmq 연동

설치는 그냥 rpm 으로 설치 1 2 3 4 5 # 서버 시작. sbin/rabbitmq-server start # 서버 중지 sbin/rabbitmqctl stop spring-rabbit 연동 pom.xml 1 2 3 4 5 <dependency> <groupid>org.springframework.amqp</groupId> <artifactid>spring-rabbit</artifactId> <version>1.4.1.RELEASE</version> </dependency> context-rabbitmq.xml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 <!-- A reference to the org.springframework.amqp.rabbit.connection.ConnectionFactory --> <rabbit:connection-factory id="connectionFactory" host="localhost" username="worker" password="workerpassword" /> <!-- Creates a org.springframework.amqp.rabbit.core.RabbitTemplate for access to the broker --> <rabbit:template id="amqpTemplate" connection-factory="connectionFactory" /> <!...

March 10, 2015 · 1 min · 페이퍼