<div> <div style="color: #222222; line-height: 1.5"><span style="color: #000000; font-size: 9pt">이런 고민이 있을지도 모릅니다. </span><font size="2" color="#00b0f0"><b>포고플러그에 토렌트도 돌리고 싶고, 그누보드도 돌리고 싶다</b></font><span style="color: #000000; font-size: 9pt">고...</span></div> <div style="color: #222222; line-height: normal"><font size="2"><span style="line-height: 19px">설사 nginx를 설치하셔서 시스템 부담이 덜할지 모르겠지만, 그래도 고민이 될겁니다. 여기에 제가 했던 방법을 조금 써봅니다.</span></font></div> <div style="color: #222222; line-height: normal"><font size="2"><span style="line-height: 19px"><br /></span></font></div> <div style="color: #222222; line-height: normal"><span style="line-height: 19px"><b>1.setting</b></span></div> <div style="color: #222222; line-height: normal"><font size="2"><span style="line-height: 19px"><br /></span></font></div> <div style="color: #222222; font-family: Tahoma, 굴림; line-height: normal"><font face="굴림" size="2"><span style="line-height: 19px">첫번째 방법은 /etc/apache2/sites-enabled/settings.json 에서 수정하는겁니다. 아래는 제가 수정한 옵션들인데요. 파일열기 한계라든지 peer한계등을 주면 조금 아까울지도(?)모르지만, 포고의 폭주를 막을수 있습니다.</span></font></div> <div style="color: #222222; line-height: normal"><font size="2"><span style="line-height: 19px"><br /></span></font></div> <div style="color: #222222; line-height: normal"><font size="2"><span style="line-height: 19px"> <table border="1" width="100%" cellpadding="3" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse"> <tbody> <tr> <td style="font-family: Tahoma, 굴림; color: #222222"><font size="2">"max-peers-global": 100,"open-file-limit": 10,<br />"peer-limit-global": 100,<br />"speed-limit-down": 2000,<br />"speed-limit-up": 100,</font></td></tr></tbody></table><br /></span></font></div> <div style="color: #222222; line-height: normal"><font size="2"><span style="line-height: 19px"><br /></span></font></div> <div style="color: #222222; line-height: 1.5"><span style="color: #000000"><b>2.swap</b></span></div> <div style="color: #222222; line-height: 1.5"><span style="color: #000000; font-size: 9pt"><br /></span></div> <div style="color: #222222; line-height: 1.5"><span style="color: #000000; font-size: 9pt"><br /></span></div> <div style="color: #222222; line-height: 1.5"><span style="color: #000000; font-size: 9pt">swap이라는 가상의 RAM을 추가해줍니다. 이유는 간단하게, apache,mysql,trasmission을 함께 동작한다면 메모리가 너무 부족합니다. top으로 상태를 체크해보신다면 메모리가 1000k이하로 밖에 안남습니다.</span></div> <div style="color: #222222; line-height: 1.5"><span style="color: #000000; font-size: 9pt"><br /></span></div> <div style="color: #222222; line-height: 1.5"><span style="color: #000000; font-size: 9pt">아래의 명령으로 스왑을 만들어줌니다. dd명령에서 bs는 쉽게 설명하면, 파일조각 하나의 크기이며 count는 파일조각의 숫자입니다.</span></div> <div style="color: #222222; line-height: 1.5"><span style="color: #000000; font-size: 9pt">제가 했던 명령으로는 1Mx300으로 300M가의 스왑을 만드는것입니다.</span></div> <div style="color: #222222; line-height: 1.5"><span style="color: #000000; font-size: 9pt"><br /></span></div> <div style="color: #222222; line-height: normal"><span style="line-height: 18px">mkswap은 바로 swap을 추가해주는 명령입니다.</span></div> <div style="color: #222222; line-height: 1.5"><span style="color: #000000; font-size: 9pt"><br /></span></div> <div style="font-size: 9pt; line-height: 1.5"> <table border="1" width="100%" cellpadding="3" cellspacing="0" bordercolor="#000000" style="color: #000000; font-size: 12px; border-collapse: collapse"> <tbody> <tr> <td width="1" height="1" bgcolor="0" style="font-family: Tahoma, 굴림; color: #222222"> <p style="line-height: 1; margin: 0px; padding: 0px"><font color="#ffffff" size="2">#</font><span style="line-height: 19px"><font color="#ffffff" face="Tahoma" size="2">dd if=/dev/zero of=/swap bs=1M count=300</font></span></p> <p style="line-height: 1; margin: 0px; padding: 0px"><font color="#ffffff"><span style="line-height: 19px"><font face="Tahoma" size="2">#</font></span><span style="line-height: 19px"><font face="Tahoma" size="2">mkswap /swap</font></span></font></p></td></tr></tbody></table></div> <div style="font-size: 9pt; line-height: 1.5"><br /></div> <div style="font-size: 9pt; line-height: 1.5"><br /></div> <div style="font-size: 9pt; line-height: 1.5"><br /></div> <div style="font-size: 9pt; line-height: 1.5">다음으로 시스템이 /etc/fstab을 수정하여시작할때마다 swap을 자동으로 추가해주게 합니다.</div> <div style="font-size: 9pt; line-height: 1.5"><br /></div> <div style="font-size: 9pt; line-height: 1.5"> <div style="line-height: 1.5; font-size: 9pt"> <table border="1" width="100%" cellpadding="3" cellspacing="0" bordercolor="#000000" style="color: #000000; font-size: 12px; border-collapse: collapse"> <tbody> <tr> <td width="1" height="1" bgcolor="0" style="font-family: Tahoma, 굴림; color: #222222"> <p style="line-height: 1; margin: 0px; padding: 0px"><font color="#ffffff"><span style="line-height: 19px"><font face="Tahoma" size="2">#</font></span></font><span style="line-height: 19px"><font color="#ffffff" face="Tahoma" size="2">vim /etc/fstab</font></span></p></td></tr></tbody></table></div></div> <div style="font-size: 9pt; line-height: 1.5"><br /></div> <div style="font-size: 9pt; line-height: 1.5"> <table border="1" width="100%" cellpadding="3" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse"> <tbody> <tr> <td style="font-family: Tahoma, 굴림; color: #222222">/swap swap swap defaults 0 0</td></tr></tbody></table><br /></div> <div style="font-size: 9pt; line-height: 1.5"><br /></div> <div style="font-size: 9pt; line-height: 1.5"><br /></div> <div style="font-size: 9pt; line-height: 1.5">top명령을 사용하면 저는 다음과 같은 결과가 나왔습니다. 극한의 상황에서 조금은 빠르게 구동이 가능합니다. swap은 메모리가 적을수록 많이 사용합니다. 그만큼 느리더라도 필요하다고 쓰는거졈 ㅇㅅㅇ </div> <div style="font-size: 9pt; line-height: 1.5"><br /></div> <div style="font-size: 9pt; line-height: 1.5"><br /></div> <div style="color: #222222; font-size: 9pt; line-height: 1.5"> <table border="1" width="100%" cellpadding="3" cellspacing="0" bgcolor="#000000" bordercolor="#000000" style="border-collapse: collapse"> <tbody> <tr> <td style="font-family: Tahoma, 굴림; color: #222222"> <div style="font-family: Gulim"><font face="굴림" color="#ffffff"> total used free shared buffers cached</font></div> <div style="font-family: Gulim"><font face="굴림" color="#ffffff">Mem: 125536 119928 5608 0 9280 30572</font></div> <div style="font-family: Gulim"><font face="굴림" color="#ffffff">-/+ buffers/cache: 80076 45460</font></div> <div style="font-family: Gulim"><font face="굴림"><font color="#ffffff">Swap: 307192 1428 30576</font>4</font></div> <div><font face="굴림"><br /></font></div></td></tr></tbody></table></div></div> <div><br /></div> <div><br /></div> <div> <div style="line-height: 1.5"><b>3.웹페이지 접속하지마세요.</b></div> <div style="font-size: 9pt; line-height: 1.5"><br /></div> <div style="font-size: 9pt; line-height: 1.5">말그대로 입니다. 왠만하면 트랜스미션 데몬의 유일한 인터페이스 웹페이지로 접속하는것을 하지마세요. RAM이용량 늘어납니다.</div></div> <div><br /></div> <div><br /></div> <div><br /></div> <div><font color="#1f497d">여기까지 <a target="_blank" href="http://cobi.gonetis.com/" style="font-size: 9pt; line-height: 1.5" target="_blank">http://cobi.gonetis.com/</a>에 적은 내용입니다. 이제는 접속이 전보다 잘될겁니다. ㅎㅎㅎ</font></div> <div><font color="#1f497d">무려 토렌트가 움직이고 있는 상태라는 ㅋ</font></div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.