<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5147914120046795916</id><updated>2024-10-25T09:50:37.564+09:00</updated><category term="Linux"/><category term="yum"/><category term="ipad"/><category term="ruby"/><category term="Apple"/><category term="ISO"/><category term="RHEL6"/><category term="VMware"/><category term="VirtualBox"/><category term="datacenter"/><category term="eclipse"/><category term="fix"/><category term="java"/><category term="mysql"/><category term="redmine"/><category term="/etc/hosts"/><category term="BC CARD"/><category term="Btrfs"/><category term="B급 좌파"/><category term="C"/><category term="CURRENT_TIMESTAMP"/><category term="CentOS"/><category term="Cloud"/><category term="DATETIME"/><category term="Defender"/><category term="EUC-KR"/><category term="EX200"/><category term="EX300"/><category term="Escape"/><category term="Game Center"/><category term="Hadoop"/><category term="IDG"/><category term="ISP"/><category term="IT"/><category term="KLDP"/><category term="LACP"/><category term="MS"/><category term="MX"/><category term="Mac mini"/><category term="MacBook Air"/><category term="MinGW"/><category term="NEXUS 5"/><category term="NoSQL"/><category term="OOM"/><category term="PM"/><category term="RH300"/><category term="RHCE"/><category term="RHCSA"/><category term="Rack"/><category term="RedHat"/><category term="SCSKGina.dll"/><category term="SHA"/><category term="Samba"/><category term="Security Essentials"/><category term="System cache. Slow"/><category term="TIMESTAMP"/><category term="USB"/><category term="VCard"/><category term="Windows Server 2008"/><category term="Windows Server 2008 정품인증"/><category term="bitnami"/><category term="bonding"/><category term="cdh"/><category term="ceph"/><category term="ceph-deploy"/><category term="chef"/><category term="chef-server"/><category term="chrome"/><category term="cifs"/><category term="cloudera manager"/><category term="daulb.com"/><category term="diff"/><category term="domain"/><category term="email"/><category term="encoding"/><category term="error"/><category term="execjs"/><category term="git"/><category term="gmail"/><category term="grub"/><category term="history"/><category term="hp"/><category term="html"/><category term="iPhone"/><category term="iperf"/><category term="lollipop"/><category term="lvm"/><category term="md5"/><category term="mediawiki"/><category term="mirror"/><category term="mount"/><category term="nexus 4"/><category term="nfs-ganesha"/><category term="nfs-utils"/><category term="nodejs"/><category term="notepad"/><category term="nslookup"/><category term="password"/><category term="php"/><category term="plugin"/><category term="port"/><category term="rails"/><category term="rc"/><category term="release candidate"/><category term="rhel"/><category term="root"/><category term="rpm"/><category term="run commands"/><category term="sinatra"/><category term="single"/><category term="single-user mode"/><category term="slow"/><category term="smart array"/><category term="ssh"/><category term="systemd-logind"/><category term="targetcli"/><category term="tomcat"/><category term="ulimit"/><category term="unity"/><category term="unity3d"/><category term="version"/><category term="xmit_hash_policy"/><category term="zabbix fix"/><category term="가상머신"/><category term="가족관계증명서"/><category term="갤3"/><category term="갤럭시 s3"/><category term="게임"/><category term="공과장"/><category term="공유폴더"/><category term="기업은행"/><category term="김규항"/><category term="나를 버리다"/><category term="내 맘대로"/><category term="노회찬"/><category term="논리드라이브"/><category term="뉴커"/><category term="면접"/><category term="무료AP"/><category term="무료인터넷"/><category term="문서보안"/><category term="박지성"/><category term="보수"/><category term="복구"/><category term="블루투스"/><category term="비콘"/><category term="빌 게이츠 편지"/><category term="사례관리"/><category term="삼성전자"/><category term="서킷 시티"/><category term="소리 안남"/><category term="시럽"/><category term="신입사원"/><category term="신한은행"/><category term="아이패드"/><category term="아이폰"/><category term="안드로이드"/><category term="안심결제"/><category term="암호"/><category term="액정"/><category term="어플"/><category term="억만장자"/><category term="오픈소스"/><category term="위대한 기업"/><category term="이력서"/><category term="인증서"/><category term="인코딩"/><category term="인터넷 뱅킹"/><category term="자기경영노트"/><category term="장점"/><category term="정품인증"/><category term="좋은 기업을 넘어 위대한 기업으로"/><category term="지방선거"/><category term="진보"/><category term="차이"/><category term="초난감 기업의 조건"/><category term="클라우드"/><category term="클루닉스"/><category term="토론"/><category term="파일 검증"/><category term="패니 메이"/><category term="피터드러커"/><category term="해고"/><category term="해피포인트"/><title type='text'>rm -rf /</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>86</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-3247400677407690169</id><published>2017-05-19T18:30:00.000+09:00</published><updated>2017-05-19T18:41:57.466+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="slow"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><category scheme="http://www.blogger.com/atom/ns#" term="systemd-logind"/><title type='text'>FIX :: ssh 접속이 느리고, /var/log/messages에 systemd-logind.service failed. 메시지가 남을 때</title><content type='html'>ssh 접속이 느릴 때가 있습니다. 보통은DNS가 제대로 설정되지 않았는데 /etc/ssh/sshd_config에 UseDNS가 yes로 되어 있을 때 발생합니다.&lt;br /&gt;
&lt;br /&gt;
위와 같을 경우 /etc/ssh/sshd_config파일에서 아래와 같이 수정 후 sshd를 재시작 합니다.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;&amp;gt; vi /etc/ssh/sshd_config&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;UseDNS no&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;&amp;gt; systemctl restart sshd&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Client문제일 경우도 있습니다.&amp;nbsp;GSSAPIAuthentication값이 제대로 yes로 되어 있을 경우 입니다. /etc/ssh/ssh_config나 ~/.ssh/config 파일에서 해당 옵션을 no로 변경합니다.&lt;br /&gt;
&lt;br /&gt;
이번 문제는 위와 다르게 특이한 경우를 설명 합니다.&lt;br /&gt;
증상은 아래와 같습니다.&lt;br /&gt;
&lt;br /&gt;
1. DNS, GSSAPI 설정 정상&lt;br /&gt;
2. 하지만 ssh 접속이 느림&lt;br /&gt;
3. /var/log/messages에 아래와 같은 로그가 남음&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;&amp;gt; less /var/log/messages&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd-logind: Failed to enable subscription: Connection timed out&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd-logind: Failed to fully start up daemon: Connection timed out&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd: systemd-logind.service: main process exited, code=exited, status=1/FAILURE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd: Failed to start Login Service.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd: Unit systemd-logind.service entered failed state.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd: systemd-logind.service failed.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd: systemd-logind.service has no holdoff time, scheduling restart.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd: Starting Login Service...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
dbus와 systemd-logind에 있는 버그 입니다. 어떤 이유에서 dbus서비스는 재시작 되어 업데이트 되었지만 systemd-logind가 업데이트 되지 않아 생기는 문제 입니다.&lt;br /&gt;
&lt;br /&gt;
아래와 같이 해결 합니다.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;&amp;gt; systemctl restart systemd-logind&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
위와 같이 했는데 재시작시 에러가 발생하면 dbus.service도 재시작 합니다.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;&amp;gt; systemctl restart dbus.service &amp;lt;= .service를 꼭 입력&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;&amp;gt; systemctl restart systemd-logind&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
완료 후 &amp;nbsp;/var/log/messages를 확인하면 정상적으로 동작하는 것을 확인할 수 있습니다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;&amp;gt; tail -20 /var/log/messages&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;...&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd: Started Login Service.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd-logind: New seat seat0.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd-logind: Watching system buttons on /dev/input/event0 (Power Button)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd-logind: New session 1 of user nvkvs.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd-logind: New session 13 of user nvkvs.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd-logind: New session 2 of user nvkvs.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd: Created slice user-0.slice.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd: Starting user-0.slice.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd-logind: New session 2220 of user root.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd: Started Session 2220 of user root.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;systemd: Starting Session 2220 of user root.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #fce5cd;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
참고&lt;br /&gt;
.&amp;nbsp;&lt;a href=&quot;https://major.io/2015/07/27/very-slow-ssh-logins-on-fedora-22/&quot;&gt;https://major.io/2015/07/27/very-slow-ssh-logins-on-fedora-22/&lt;/a&gt;&lt;br /&gt;
.&amp;nbsp;&lt;a href=&quot;https://github.com/systemd/systemd/issues/1961&quot;&gt;https://github.com/systemd/systemd/issues/1961&lt;/a&gt;&lt;br /&gt;
.&amp;nbsp;&lt;a href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=1271394&quot;&gt;https://bugzilla.redhat.com/show_bug.cgi?id=1271394&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/3247400677407690169/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/3247400677407690169' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/3247400677407690169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/3247400677407690169'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2017/05/fix-ssh-varlogmessages-systemd.html' title='FIX :: ssh 접속이 느리고, /var/log/messages에 systemd-logind.service failed. 메시지가 남을 때'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-706951218826096770</id><published>2016-12-13T15:55:00.000+09:00</published><updated>2016-12-13T15:55:13.593+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ceph"/><category scheme="http://www.blogger.com/atom/ns#" term="ceph-deploy"/><title type='text'>FIX :: ceph-deploy error with &quot;try to use systemctl&quot;</title><content type='html'>&lt;b&gt;Error Message:&lt;/b&gt;&lt;br /&gt;
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
1. update ceph repository from official ceph repo, not from epel repo&lt;br /&gt;
2. &amp;gt; yum update ceph-deploy&lt;br /&gt;
3. &amp;gt; do something...&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/706951218826096770/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/706951218826096770' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/706951218826096770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/706951218826096770'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2016/12/fix-ceph-deploy-error-with-try-to-use.html' title='FIX :: ceph-deploy error with &quot;try to use systemctl&quot;'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-2751015480914556540</id><published>2016-12-12T17:36:00.002+09:00</published><updated>2016-12-12T17:36:42.876+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fix"/><category scheme="http://www.blogger.com/atom/ns#" term="nfs-ganesha"/><category scheme="http://www.blogger.com/atom/ns#" term="nfs-utils"/><title type='text'>FIX :: nfs-ganesha CRIT error in gsh_dbus_pkginit</title><content type='html'>&lt;b&gt;Error log:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
gsh_dbus_pkginit :DBUS :CRIT :server bus reg failed (org.ganesha.nfsd, Connection &quot;:1.204&quot; is not allowed to own the service &quot;org.ganesha.nfsd&quot; due to security policies in the configuration file)&lt;br /&gt;
nfs_Init_svc :DISP :CRIT :Cannot acquire credentials for principal nfs&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&amp;gt; yum install -y nfs-utils</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/2751015480914556540/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/2751015480914556540' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/2751015480914556540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/2751015480914556540'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2016/12/fix-nfs-ganesha-crit-error-in.html' title='FIX :: nfs-ganesha CRIT error in gsh_dbus_pkginit'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-5560229866724025871</id><published>2016-11-30T15:37:00.001+09:00</published><updated>2017-04-07T14:34:39.585+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fix"/><category scheme="http://www.blogger.com/atom/ns#" term="targetcli"/><title type='text'>FIX :: ImportError: cannot import name range - running targetcli</title><content type='html'>&amp;gt; targetcli&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
&amp;nbsp; File &quot;/usr/bin/targetcli&quot;, line 24, in &lt;module&gt;&lt;/module&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; from targetcli import UIRoot&lt;br /&gt;
&amp;nbsp; File &quot;/usr/lib/python2.7/site-packages/targetcli/__init__.py&quot;, line 18, in &lt;module&gt;&lt;/module&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; from .ui_root import UIRoot&lt;br /&gt;
&amp;nbsp; File &quot;/usr/lib/python2.7/site-packages/targetcli/ui_root.py&quot;, line 27, in &lt;module&gt;&lt;/module&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; from rtslib_fb import RTSRoot&lt;br /&gt;
&amp;nbsp; File &quot;/usr/lib/python2.7/site-packages/rtslib_fb/__init__.py&quot;, line 24, in &lt;module&gt;&lt;/module&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; from .root import RTSRoot&lt;br /&gt;
&amp;nbsp; File &quot;/usr/lib/python2.7/site-packages/rtslib_fb/root.py&quot;, line 26, in &lt;module&gt;&lt;/module&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; from .target import Target&lt;br /&gt;
&amp;nbsp; File &quot;/usr/lib/python2.7/site-packages/rtslib_fb/target.py&quot;, line 24, in &lt;module&gt;&lt;/module&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; from six.moves import range&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;ImportError: cannot import name range&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;gt; yum -y install python-six&lt;br /&gt;
&amp;gt; targetcli&lt;br /&gt;
targetcli shell version 2.1.fb41&lt;br /&gt;
Copyright 2011-2013 by Datera, Inc and others.&lt;br /&gt;
For help on commands, type &#39;help&#39;.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/5560229866724025871/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/5560229866724025871' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/5560229866724025871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/5560229866724025871'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2016/11/fix-importerror-cannot-import-name.html' title='FIX :: ImportError: cannot import name range - running targetcli'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-540684271069216797</id><published>2016-11-23T17:01:00.003+09:00</published><updated>2016-11-23T17:02:54.737+09:00</updated><title type='text'>FIX :: [nfs-ganesha] Can not monitor ... SM_MON status 1</title><content type='html'>. nfs-ganesha version : 2.4.X&lt;br /&gt;
. LOG : nsm_monitor :NLM :CRIT :Can not monitor ::ffff:XXX.XXX.XXX.XXX SM_MON status 1&lt;br /&gt;
&lt;br /&gt;
&amp;gt; mkdir&amp;nbsp;/var/lib/nfs/statd/sm&lt;br /&gt;
&amp;gt; mkdir&amp;nbsp;/var/lib/nfs/statd/sm.bak</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/540684271069216797/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/540684271069216797' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/540684271069216797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/540684271069216797'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2016/11/fix-nfs-ganesha-can-not-monitor.html' title='FIX :: [nfs-ganesha] Can not monitor ... SM_MON status 1'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-1858001407682122961</id><published>2016-08-23T15:42:00.002+09:00</published><updated>2016-08-23T15:42:39.853+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="zabbix fix"/><title type='text'>FIX :: Zabbix server is not running: the information displayed may not be current</title><content type='html'>서버 IP 변경 후 zabbix 웹페이지에 &quot;Zabbix server is not running: the information displayed may not be current&quot;라는 메시지가 계속 노출될 경우 아래와 같은 방법으로 해결합니다. (zabbix v2.4.5)&lt;br /&gt;
&lt;br /&gt;
&amp;gt; vi /etc/zabbix/web/zabbix.conf.php&lt;br /&gt;
$ZBX_SERVER &amp;nbsp; &amp;nbsp; &amp;nbsp;= &#39;192.168.XXX.XXX&#39;; &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&amp;lt;= 변경된 IP로 수정&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
$ZBX_SERVER_PORT = &#39;10051&#39;;&lt;br /&gt;
$ZBX_SERVER_NAME = &#39;&#39;;&lt;br /&gt;
&lt;br /&gt;
&amp;gt; service zabbix-server restart &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&amp;lt;= option&lt;/b&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/1858001407682122961/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/1858001407682122961' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/1858001407682122961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/1858001407682122961'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2016/08/fix-zabbix-server-is-not-running.html' title='FIX :: Zabbix server is not running: the information displayed may not be current'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-1144165915489816152</id><published>2016-08-05T11:33:00.000+09:00</published><updated>2016-08-11T15:14:38.092+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Btrfs"/><title type='text'>BUG :: RedHat(CentOS) 또는 Ubuntu에서 Btrfs는 잠시 참아보자</title><content type='html'>Btrfs는 아직 미완성인 듯 하다.&lt;br /&gt;
파일 입출력이 많아지면 BIOS 에러를 생산하기도 한다.&lt;br /&gt;
&lt;br /&gt;
== 에러 내용 =============================&lt;br /&gt;
[ &amp;nbsp;613.093084] ------------[ cut here ]------------&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;[ &amp;nbsp;613.097928] kernel BUG at fs/btrfs/inode.c:3142!&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
[ &amp;nbsp;613.105855] invalid opcode: 0000 [#1] SMP&lt;br /&gt;
[ &amp;nbsp;613.112702] Modules linked in: coretemp(E) crc32_pclmul(E) ghash_clmulni_intel(E) aesni_intel(E) snd_ens1371(E) snd_ac97_codec(E) aes_x86_64(E) lrw(E) gf128mul(E) glue_helper(E) ppdev(E) ac97_bus(E) ablk_helper(E) gameport(E) cryptd(E) snd_rawmidi(E) snd_seq_device(E) snd_pcm(E) vmw_balloon(E) snd_timer(E) snd(E) soundcore(E) serio_raw(E) vmwgfx(E) ttm(E) dr....&lt;br /&gt;
[ &amp;nbsp;613.144196] CPU: 0 PID: 1480 Comm: btrfs-cleaner Tainted: G &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;E &amp;nbsp;3.19.0-rc7-custom #2&lt;br /&gt;
[ &amp;nbsp;613.148501] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 07/31/2013&lt;br /&gt;
[ &amp;nbsp;613.152694] task: ffff880035cdb1a0 ti: ffff880039cf4000 task.ti: ffff880039cf4000&lt;br /&gt;
[ &amp;nbsp;613.154969] RIP: 0010:[&lt;ffffffffa01441c2&gt;] &amp;nbsp;[&lt;ffffffffa01441c2&gt;] btrfs_orphan_add+0x1d2/0x1e0 [btrfs]&lt;/ffffffffa01441c2&gt;&lt;/ffffffffa01441c2&gt;&lt;br /&gt;
[ &amp;nbsp;613.157780] RSP: 0018:ffff880039cf7c48 &amp;nbsp;EFLAGS: 00010286&lt;br /&gt;
[ &amp;nbsp;613.159560] RAX: 00000000ffffffe4 RBX: ffff88003bd981a0 RCX: ffff88003c9e4000&lt;br /&gt;
[ &amp;nbsp;613.161904] RDX: 0000000000002244 RSI: 0000000000040000 RDI: ffff88003c9e4138&lt;br /&gt;
[ &amp;nbsp;613.164264] RBP: ffff880039cf7c88 R08: 000060ffc0000850 R09: 0000000000000000&lt;br /&gt;
[ &amp;nbsp;613.166507] R10: ffff88003bc4b7a0 R11: ffffea0000eb6740 R12: ffff88003c9c0000&lt;br /&gt;
[ &amp;nbsp;613.168681] R13: ffff88003c102160 R14: ffff88003c9c0458 R15: 0000000000000001&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
나중에 kernel이 4.0이상이 되면 쓰는 걸로...&lt;br /&gt;
. &lt;a href=&quot;http://www.spinics.net/lists/linux-btrfs/msg43084.html&quot; target=&quot;_blank&quot;&gt;http://www.spinics.net/lists/linux-btrfs/msg43084.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Ubuntu는 (곧?) 패치될 듯. (2016. 8. 5)&lt;br /&gt;
. &lt;a href=&quot;https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1413008&quot; target=&quot;_blank&quot;&gt;https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1413008&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/1144165915489816152/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/1144165915489816152' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/1144165915489816152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/1144165915489816152'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2016/08/fix-redhat-ubuntu-btrfs.html' title='BUG :: RedHat(CentOS) 또는 Ubuntu에서 Btrfs는 잠시 참아보자'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-7138181882062783246</id><published>2016-04-05T12:11:00.001+09:00</published><updated>2016-11-28T14:55:36.942+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bonding"/><category scheme="http://www.blogger.com/atom/ns#" term="LACP"/><category scheme="http://www.blogger.com/atom/ns#" term="xmit_hash_policy"/><title type='text'>FIX :: LACP bonding 구성시 트래픽이 한쪽 포트로 몰리는 현상</title><content type='html'>&lt;span style=&quot;color: #ffe599; font-size: medium;&quot;&gt;. BONDING_OPTS에 xmit_hash_policy=layer3+4옵션을 추가한다.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599; font-size: medium;&quot;&gt;. switch의 load balancing 알고리즘도 같이 변경해야 한다.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #cfe2f3; font-size: large;&quot;&gt;&lt;b&gt;Linux bonding 설정&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Linux bonding을 LACP (mode=4)로 구성하였으나 트래픽이 분산되지 않고, 한 라인으로 몰리는 경우가 있다. 이는 hash 정책 문제로 xmit_hash_policy옵션을 변경하여 해결할 수 있다. 단 connection 종류가 다양해야 한다. (아래 방법으로 설정해도 서버가 2대이고, connection이 1개라면 분산되지 않는다.)&lt;br /&gt;
&lt;br /&gt;
패킷이 어느 포트(라인)를 통과할지를 결정하는 것이 hash이다. 예를 들어 2개의 포트를 기본 옵션으로 LACP 구성할 경우 layer2(MAC 주소)를 사용한 hash 정책을 사용한다. 데이터를 주고받는 서버가 2대라면 아무리 많은 포트를 LACP로 묶어도 MAC주소만 hash값을 찾는데 사용하므로 한 포트만 사용하게 된다. 3대 이상의 서버를 사용하더라도 hash결과 값이 같다면 한 포트로 모든 트래픽이 몰리게 된다.&lt;br /&gt;
&lt;br /&gt;
트래픽을 분산하려면 IP + port를 조합한 hash 정책(layer3+4)을 사용해야 한다. BONDING_OPTS를 아래와 같이 변경하면 된다.&lt;br /&gt;
&lt;br /&gt;
. 기존 : BONDING_OPTS=&quot;mode=4 miimon=100&quot;&lt;br /&gt;
. 변경 : BONDING_OPTS=&quot;mode=4 miimon=100 &lt;span style=&quot;color: #ea9999;&quot;&gt;xmit_hash_policy=layer3+4&lt;/span&gt;&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 또는 BONDING_OPTS=&quot;mode=4 miimon=100&amp;nbsp;&lt;span style=&quot;color: #ea9999;&quot;&gt;xmit_hash_policy=1&lt;/span&gt;&quot;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
위와 같이 하면 서버의 IP와 connection이 사용하는 port까지 hash값을 찾는데 사용된다. 목적지의 port 뿐만 아니라 connet할 때마다 변경되는 client의 port까지 사용하게되므로 서버의 숫자와 상관없이 connection의 수에 따라 트래픽이 변경되게 된다. 즉 hash를 구성하는 조건이 다양해 지므로 트래픽이 분산될 확률이 올라가게 된다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
xmit_hash_policy옵션을 layer3+4로 변경하고 iperf의 -P 옵션으로 테스트 하면 트래픽이 분산되는 것을 확인 할 수 있다.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #cfe2f3; font-size: large;&quot;&gt;CISCO Switch 설정&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
시스코 스위치도 기본 설정이 목적지 MAC 주소다. 아래 방법으로 설정을 변경해 주어야 트래픽이 골고루 분산된다. 해당 명령이 없거나 사용하려는 옵션이 없다면 OS를 업데이트 한다.&lt;br /&gt;
&lt;br /&gt;
switch(config)# port-channel load-balance ethernet source-destination-port&lt;br /&gt;
&lt;br /&gt;
설정 가능한 옵션은 아래와 같다.&lt;br /&gt;
&lt;br /&gt;
. destination-ip —Loads distribution on the destination IP address.&lt;br /&gt;
. destination-mac —Loads distribution on the destination MAC address.&lt;br /&gt;
. destination-port —Loads distribution on the destination port.&lt;br /&gt;
. source-destination-ip —Loads distribution on the source and destination IP address.&lt;br /&gt;
. source-destination-mac —Loads distribution on the source and destination MAC address.&lt;br /&gt;
. source-destination-port —Loads distribution on the source and destination port.&lt;br /&gt;
. source-ip —Loads distribution on the source IP address.&lt;br /&gt;
. source-mac —Loads distribution on the source MAC address.&lt;br /&gt;
. source-port —Loads distribution on the source port.&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;주의&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;. bonding 3.2부터 xmit_hash_policy 옵션을 사용할 수 있다.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; - shell에서 아래와 같이 modinfo로 bonding모듈 버전을 확인할 수 있다.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;gt;modinfo bonding&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;. 스위치도 hash 알고리즘을 변경해주야 한다. 스위치 마다 설정방법이 다르므로 스위치 엔지니어의 도움을 받아 변경한다.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;. 설정이 올바르더라도 connection수(또는 서버 수)가 적으면 트래픽이 한쪽으로 몰릴 수 있다.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;참고&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
. &lt;a href=&quot;https://www.kernel.org/doc/Documentation/networking/bonding.txt&quot; target=&quot;_blank&quot;&gt;https://www.kernel.org/doc/Documentation/networking/bonding.txt&lt;/a&gt;&lt;br /&gt;
. cisco load-balance ethernet -&amp;nbsp;&lt;a href=&quot;http://www.cisco.com/web/techdoc/dc/reference/cli/nxos/commands/l2/port-channel_load-balance_ethernet.html&quot; target=&quot;_blank&quot;&gt;http://www.cisco.com/web/techdoc/dc/reference/cli/nxos/commands/l2/port-channel_load-balance_ethernet.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/7138181882062783246/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/7138181882062783246' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/7138181882062783246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/7138181882062783246'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2016/04/fix-lacp-bonding.html' title='FIX :: LACP bonding 구성시 트래픽이 한쪽 포트로 몰리는 현상'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-4030394631940852603</id><published>2015-10-02T16:29:00.001+09:00</published><updated>2015-10-02T16:46:09.507+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="블루투스"/><category scheme="http://www.blogger.com/atom/ns#" term="비콘"/><category scheme="http://www.blogger.com/atom/ns#" term="시럽"/><category scheme="http://www.blogger.com/atom/ns#" term="안드로이드"/><category scheme="http://www.blogger.com/atom/ns#" term="해피포인트"/><title type='text'>FIX::안드로이드 블루투스(bluetooth) 또는 와이파이(wifi) 자동 켜짐</title><content type='html'>&lt;span style=&quot;color: #ffe599;&quot;&gt;추가 : 아래 설명된 앱 외에 현재 다수의 포인트, 마케팅 관련 앱들이 이 짓을 하는 듯 합니다. 심지어 wifi까지...&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;앱을 지울 필요까지는 없고, 대부분 설정에서 해당되는 내용 OFF 시키시면 됩니다.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;아래는 현재까지 찾아낸 앱들 입니다.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;. 해피포인트&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;. CJ ONE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;. 롯데백화점 스마트쿠폰북&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;. 패미&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;. 네이버 지도&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;. 시럽&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;. 미라캐스트&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;. SK OK cashbag&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
며칠 전부터 핸드폰의 블루투스가 제멋대로 켜지는 일이 일어나고 있었습니다.&lt;br /&gt;
넥서스5를 쓰고 있는데 구글에서 업데이트 후 생기는 문제인 줄 알았습니다.&lt;br /&gt;
&lt;br /&gt;
그러나..&lt;br /&gt;
&lt;br /&gt;
오늘 오전에 파리바게뜨 매장에 갔는데 제가 매장에 들어간 걸 어떻게 알았는지 해피포인트 앱에서 방문을 환영한다는 알림이 뜹니다.&lt;br /&gt;
헐...&lt;br /&gt;
귀신인가?&lt;br /&gt;
&lt;br /&gt;
회사 동료분과 이런 아침에 일어난 일을 이야기하다가 갑자기 든 생각은 &quot;&lt;a href=&quot;https://www.google.co.kr/search?q=%EC%8B%9C%EB%9F%BD+%EC%95%B1+%EB%B8%94%EB%A3%A8%ED%88%AC%EC%8A%A4&amp;amp;oq=%EC%8B%9C%EB%9F%BD+%EC%95%B1+%EB%B8%94%EB%A3%A8%ED%88%AC%EC%8A%A4&amp;amp;aqs=chrome..69i57.4190j0j7&amp;amp;sourceid=chrome&amp;amp;es_sm=122&amp;amp;ie=UTF-8#newwindow=1&amp;amp;q=%EB%B9%84%EC%BD%98&quot; target=&quot;_blank&quot;&gt;비콘&lt;/a&gt;&quot; 이었습니다.&lt;br /&gt;
해피포인트 앱이 블루투스를 자기 맘대로 켜고, 비콘을 쓰는 것 같았습니다.&lt;br /&gt;
&lt;br /&gt;
인터넷으로 관련 검색을 하니 역시나 비콘인듯 합니다.&lt;br /&gt;
. &lt;a href=&quot;http://www.lgservice.co.kr/cs_lg/online/QuestionViewCmd.laf?cSeq=8949&quot;&gt;http://www.lgservice.co.kr/cs_lg/online/QuestionViewCmd.laf?cSeq=8949&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
구글플레이에서 앱 권한을 확인하니 &quot;블루투스 설정에 액세스&quot;라는 문구가 있네요.&lt;br /&gt;
무서운 놈들입니다.&lt;br /&gt;
이런 권한까지 신경써야 한다니 정말 피곤한 세상입니다.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6xNV2GE5D7gUBFO0Jo-5uAg0OAxqPn5X1GXVWVf9tQcduuIhD4yDOl8V8gx8mb_WpL5BjcN-o72Pn973nU9_t5NUPUi27JQlCBl_3ftdoz-MkN1H5OvOUy-uNj5C4LT6cyPBdwJmgclU/s1600/happypoint-001.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;306&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6xNV2GE5D7gUBFO0Jo-5uAg0OAxqPn5X1GXVWVf9tQcduuIhD4yDOl8V8gx8mb_WpL5BjcN-o72Pn973nU9_t5NUPUi27JQlCBl_3ftdoz-MkN1H5OvOUy-uNj5C4LT6cyPBdwJmgclU/s400/happypoint-001.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
아래는 해피포인트 앱을 사용할 때 블루투스 맘대로 설정할 수 없도록 하는 방법입니다.&lt;br /&gt;
&lt;br /&gt;
앱 첫화면에서 상단 왼쪽 MY를 탭합니다.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZU_s_bvHvkHxUL445uuDyUWZnvmBD-EDTgwFAPei23HYlyesGvvGXuF80b-98rxqU_kGt6C61pMNlDgYqsEg3N_z9VtCmhudOhhC11c_Yrnr2JnpyQsELfR9TrAnqd9H8wJ5Smu3FjYw/s1600/Screenshot_2015-10-02-11-53-31.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZU_s_bvHvkHxUL445uuDyUWZnvmBD-EDTgwFAPei23HYlyesGvvGXuF80b-98rxqU_kGt6C61pMNlDgYqsEg3N_z9VtCmhudOhhC11c_Yrnr2JnpyQsELfR9TrAnqd9H8wJ5Smu3FjYw/s400/Screenshot_2015-10-02-11-53-31.png&quot; width=&quot;225&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
MY매뉴에서 왼쪽 위 톱니바퀴 모양을 탭합니다.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-xoOC_GwA5JfoBNWkjigpcsLHwGQod9s9kIkLYwbTM4wgpQ29H4m8jPerM4J3Qn-wEUTgw576TwhJwXVlBecmKB1CVfe-FRblqoF9Xmrefxmnx6hci7OH5BR2XM3CHsDeHk8JtxYtpPk/s1600/Screenshot_2015-10-02-11-53-37.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-xoOC_GwA5JfoBNWkjigpcsLHwGQod9s9kIkLYwbTM4wgpQ29H4m8jPerM4J3Qn-wEUTgw576TwhJwXVlBecmKB1CVfe-FRblqoF9Xmrefxmnx6hci7OH5BR2XM3CHsDeHk8JtxYtpPk/s400/Screenshot_2015-10-02-11-53-37.png&quot; width=&quot;225&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
설정에서 내주변 쿠폰 / 혜택 알림 항목을 off 시킵니다.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu45Zmz4Bd5HwuUN9Ur-kRaTeNNhNvRMN91cry12L-f7Pc_dlSmeDsoczf5prasl5mB7oytKA92ciu25NQ9fDJD_UQDJKJ6yRnF8te6ZhL5q6eRoX_SnEGgHdf_pSHH7bs1xnb2DlHD7k/s1600/Screenshot_2015-10-02-11-53-50.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu45Zmz4Bd5HwuUN9Ur-kRaTeNNhNvRMN91cry12L-f7Pc_dlSmeDsoczf5prasl5mB7oytKA92ciu25NQ9fDJD_UQDJKJ6yRnF8te6ZhL5q6eRoX_SnEGgHdf_pSHH7bs1xnb2DlHD7k/s400/Screenshot_2015-10-02-11-53-50.png&quot; width=&quot;225&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3jI85bxgTyR74MAb_DZPgqKfFiLpWl2nOYintTRxZLKHpoensY4PFwvWeYV_cK36xLJ05zxe65_wG_Eu2Tau5A78CE4h1s04vuMuDQaZytD9V4koB13ZEeGVw-gCyySRrtcTiJLiBIB0/s1600/Screenshot_2015-10-02-11-53-54.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3jI85bxgTyR74MAb_DZPgqKfFiLpWl2nOYintTRxZLKHpoensY4PFwvWeYV_cK36xLJ05zxe65_wG_Eu2Tau5A78CE4h1s04vuMuDQaZytD9V4koB13ZEeGVw-gCyySRrtcTiJLiBIB0/s400/Screenshot_2015-10-02-11-53-54.png&quot; width=&quot;225&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
이제 블루투스가 켜지는지 잘 감시합니다.&lt;br /&gt;
&lt;br /&gt;
시럽 앱도 같은 짓을 한다는 소식도 있습니다.&lt;br /&gt;
설정에서 블루투스 자동켜짐을 OFF시키면 된다고 하네요.&lt;br /&gt;
.&amp;nbsp;&lt;a href=&quot;http://m.ppomppu.co.kr/new/bbs_view.php?id=phone2&amp;amp;no=1321446#mobile&quot;&gt;http://m.ppomppu.co.kr/new/bbs_view.php?id=phone2&amp;amp;no=1321446#mobile&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
끝</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/4030394631940852603/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/4030394631940852603' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/4030394631940852603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/4030394631940852603'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2015/10/fix-on.html' title='FIX::안드로이드 블루투스(bluetooth) 또는 와이파이(wifi) 자동 켜짐'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6xNV2GE5D7gUBFO0Jo-5uAg0OAxqPn5X1GXVWVf9tQcduuIhD4yDOl8V8gx8mb_WpL5BjcN-o72Pn973nU9_t5NUPUi27JQlCBl_3ftdoz-MkN1H5OvOUy-uNj5C4LT6cyPBdwJmgclU/s72-c/happypoint-001.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-1901327508585798436</id><published>2015-07-03T17:14:00.001+09:00</published><updated>2015-07-03T17:14:50.321+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="/etc/hosts"/><category scheme="http://www.blogger.com/atom/ns#" term="chef"/><category scheme="http://www.blogger.com/atom/ns#" term="chef-server"/><title type='text'>FIX::chef-server, ERROR: Connection refused connecting to https://127.0.0.1/users</title><content type='html'>$chef-server-ctl user-list or $chef-server-ctl user-crate ...&lt;br /&gt;
&lt;br /&gt;
ERROR: Connection refused connecting to https://127.0.0.1/users, retry 1/5&lt;br /&gt;
ERROR: Connection refused connecting to https://127.0.0.1/users, retry 2/5&lt;br /&gt;
ERROR: Connection refused connecting to https://127.0.0.1/users, retry 3/5&lt;br /&gt;
ERROR: Connection refused connecting to https://127.0.0.1/users, retry 4/5&lt;br /&gt;
ERROR: Connection refused connecting to https://127.0.0.1/users, retry 5/5&lt;br /&gt;
ERROR: Network Error: Connection refused - Connection refused connecting to https://127.0.0.1/users, giving up&lt;br /&gt;
Check your knife configuration and network settings&lt;br /&gt;
&lt;br /&gt;
$chef-server-ctl tail nginx&lt;br /&gt;
&lt;br /&gt;
2015-07-03_07:38:21.24862 nginx: [emerg] invalid number of arguments in &quot;server_name&quot; directive in /var/opt/opscode/nginx/etc/chef_https_lb.conf:3&lt;br /&gt;
2015-07-03_07:38:22.27220 nginx: [emerg] invalid number of arguments in &quot;server_name&quot; directive in /var/opt/opscode/nginx/etc/chef_https_lb.conf:3&lt;br /&gt;
2015-07-03_07:38:23.30000 nginx: [emerg] invalid number of arguments in &quot;server_name&quot; directive in /var/opt/opscode/nginx/etc/chef_https_lb.conf:3&lt;br /&gt;
2015-07-03_07:38:24.32450 nginx: [emerg] invalid number of arguments in &quot;server_name&quot; directive in /var/opt/opscode/nginx/etc/chef_https_lb.conf:3&lt;br /&gt;
&lt;br /&gt;
언제나 /etc/hosts는 귀찮은 존재다.&lt;br /&gt;
$vi /etc/hosts&lt;br /&gt;
add &quot;IP HOSTNAME&quot; onto /etc/hosts file&lt;br /&gt;
&lt;br /&gt;
ex)&lt;br /&gt;
192.168.56.101 hostname&lt;br /&gt;
&lt;br /&gt;
$chef-server-ctl reconfigure</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/1901327508585798436/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/1901327508585798436' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/1901327508585798436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/1901327508585798436'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2015/07/fixchef-server-error-connection-refused.html' title='FIX::chef-server, ERROR: Connection refused connecting to https://127.0.0.1/users'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-7989777808248431858</id><published>2015-06-03T00:03:00.000+09:00</published><updated>2015-06-03T00:07:57.848+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="ISO"/><category scheme="http://www.blogger.com/atom/ns#" term="yum"/><title type='text'>TIP :: CentOS 지난 버전 사용하기 (iso, yum repository 등)</title><content type='html'>경험상 우리나라에서 제일 빠른 CentOS mirror는 다음카카오(&lt;a href=&quot;http://ftp.daumkakao.com/centos&quot;&gt;http://ftp.daumkakao.com/centos&lt;/a&gt;)인 듯 하다. 만약 어떠한 이유 때문에 지난 버전의 CentOS가 필요해서 아무 미러나 가서 해당 버전 디렉토리로 가면 딸랑 readme파일 하나만 있다. 내용은...&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;This directory (and version of CentOS) is deprecated. &amp;nbsp;For normal users,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;you should use /6/ and not /6.5/ in your path. Please see this FAQ&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;concerning the CentOS release scheme:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;https://wiki.centos.org/FAQ/General&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;If you know what you are doing, and absolutely want to remain at the 6.5&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;level, go to http://vault.centos.org/ for packages.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;Please keep in mind that 6.0, 6.1, 6.2, 6.3, 6.4 and 6.5 no longer gets any updates, nor&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;any security fix&#39;s.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
대략 지난 버전이 꼭 필요하다면 &lt;a href=&quot;http://vault.centos.org/&quot;&gt;http://vault.centos.org&lt;/a&gt;를 이용하라는 소리다.&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://vault.centos.org/&quot;&gt;http://vault.centos.org&lt;/a&gt;에 가보면 지난 디렉토리들이 보이고, 디렉토리에 들어가면 다른 미러와 다르게 여러 디렉토리들이 보인다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrtsfKhTaiXk6H5BHkamHTPNoFhoRbmeWo5_YBhPaTwb7pVdeDty_CGIAKUb5XZPlXQJguzTokjVmh_JWN46x9ahkzTNELe-gXPjvqqsOBo1VXGM7EVRvVALoZuFDMleLbrNiyKG2G2qI/s1600/001.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;205&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrtsfKhTaiXk6H5BHkamHTPNoFhoRbmeWo5_YBhPaTwb7pVdeDty_CGIAKUb5XZPlXQJguzTokjVmh_JWN46x9ahkzTNELe-gXPjvqqsOBo1VXGM7EVRvVALoZuFDMleLbrNiyKG2G2qI/s400/001.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
DVD를 만들기 위해 iso 파일이 필요하다면 isos/(i386 or x86_64) 디렉토리로 가서 iso파일을 직접 받거나 torrent 파일을 받아서 torrent client로 다운 받으면 된다. 해당 서버가 한국에서 좀 느리므로 torrent를 이용하는 것을 추천한다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
iso를 받아서 설치하는 것만 중요한 것이 아니라 yum으로 패키지를 설치할 때 최신 업데이트된 패키지를 설치하지 않도록 해야 한다. 방법은 OS만 설치한 상태에서 /etc/yum.repos.d/아래의 .repo 파일들을 수정하는 것이다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
/etc/yum.repos.d 디렉토리에 가면 기본적으로 아래와 같이 .repo 파일들이 있다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
. CentOS-Base.repo&lt;/div&gt;
&lt;div&gt;
. CentOS-Debuginfo.repo&lt;/div&gt;
&lt;div&gt;
. CentOS-Media.repo&lt;/div&gt;
&lt;div&gt;
. CentOS-Vault.repo&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
CentOS-Base-repo 파일을 해당 버전에 맞게 수정해주어야 한다. CentOS-Base.repo파일을 삭제하거나 내용을 모두 comment처리하고, CentOS-Valut.repo파일을 사용하면 되지 않을 까 해서 열어 봤는데 6.5에서는 6.3까지밖에 안들어 있어서 CentOS-Base.repo 파일을 수정하는 편이 더 좋을 것 같다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;# CentOS-Base.repo&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;# The mirror system uses the connecting IP address of the client and the&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;# update status of each mirror to pick mirrors that are updated to and&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;# geographically close to the client. You should use this for CentOS updates&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;# unless you are manually picking other mirrors.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;# If the mirrorlist= does not work for you, as a fall back you can try the&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;# remarked out baseurl= line instead.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;[base]&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;name=CentOS-$releasever - Base&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;amp;arch=$basearch&amp;amp;repo=os&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;baseurl=http://vault.centos.org/&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;6.5&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #ffe599;&quot;&gt;/os/$basearch/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;gpgcheck=1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#released updates&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;[updates]&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;name=CentOS-$releasever - Updates&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;amp;arch=$basearch&amp;amp;repo=updates&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;baseurl=http://vault.centos.org/&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;6.5&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #ffe599;&quot;&gt;/updates/$basearch/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;gpgcheck=1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#additional packages that may be useful&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;[extras]&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;name=CentOS-$releasever - Extras&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;amp;arch=$basearch&amp;amp;repo=extras&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;baseurl=http://vault.centos.org/&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;6.5&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #ffe599;&quot;&gt;/extras/$basearch/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;gpgcheck=1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#additional packages that extend functionality of existing packages&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;[centosplus]&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;name=CentOS-$releasever - Plus&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;amp;arch=$basearch&amp;amp;repo=centosplus&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;baseurl=http://vault.centos.org/6.5/centosplus/$basearch/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;gpgcheck=1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;enabled=0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#contrib - packages by Centos Users&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;[contrib]&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;name=CentOS-$releasever - Contrib&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;amp;arch=$basearch&amp;amp;repo=contrib&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;baseurl=http://mirror.centos.org/centos/6.5/contrib/$basearch/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;gpgcheck=1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;enabled=0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
위 파일을 보면 [base]와 같이 []로 둘러싸인 값이 repository 이름이다. 기본적으로 base, updates, extras 3개만 사용하고, 나머지 2개는 enable이 0으로 이용되지 않는다. (enable라인이 없으면 1이 default) enable이 표시되어 있지 않은 부분에 mirrorlist로 시작하는 라인을 &quot;#&quot;로 comment 처리한다. 그리고 baseurl로 시작하는 부분에 해당 repository의 url을 적어주면 된다. CentOS 6버전이라면 위에서 빨갛게 표시된 6.5부분에 사용하려는 버전 번호를 넣으면 된다. 위에서는 기존 baseurl은 그대로 놔두고, 한 라인 추가해서 넣어줬다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
저장하고&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&amp;gt;yum clean all&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&amp;gt;yum repolist&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
해서 제대로 동작하는지 확인한다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
위와 같이 하고, yum으로 패키지들을 설치하면 6.5 버전에 해당하는 패키지 버전으로 설치된다. CentOS 5나 7도 같은 방법으로 한정된 버전에서 사용 가능하다.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/7989777808248431858/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/7989777808248431858' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/7989777808248431858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/7989777808248431858'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2015/06/tip-centos-iso-yum-repository.html' title='TIP :: CentOS 지난 버전 사용하기 (iso, yum repository 등)'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrtsfKhTaiXk6H5BHkamHTPNoFhoRbmeWo5_YBhPaTwb7pVdeDty_CGIAKUb5XZPlXQJguzTokjVmh_JWN46x9ahkzTNELe-gXPjvqqsOBo1VXGM7EVRvVALoZuFDMleLbrNiyKG2G2qI/s72-c/001.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-4029179695349047270</id><published>2015-05-29T00:02:00.001+09:00</published><updated>2015-06-02T23:11:59.319+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="password"/><category scheme="http://www.blogger.com/atom/ns#" term="root"/><category scheme="http://www.blogger.com/atom/ns#" term="single"/><category scheme="http://www.blogger.com/atom/ns#" term="single-user mode"/><category scheme="http://www.blogger.com/atom/ns#" term="암호"/><title type='text'>TIP::linux root 암호 복구 방법</title><content type='html'>일어나서는 안되는 일이지만 가끔 일어나는 일이 root 암호를 잊는 것이다. 이 페이지를 찾아왔다면 암호를 잃어버려 화들짝 놀라 수명이 단축되는 느낌을 느꼈겠지만 걱정 마시라. (씨익)&lt;br /&gt;
&lt;br /&gt;
다양한 이유가 있겠지만 정말 아무생각없이 설치하다가 또는 이전 관리자가 사라져 버리거나 해서 linux root 암호를 잃었을 때 복구방법을 설명 드리겠다. 참고로 난 지금 졸리다.&lt;br /&gt;
&lt;br /&gt;
=-= zzZ&lt;br /&gt;
&lt;br /&gt;
. note : CentOS 6 기준으로 설명하나 grub을 사용하는 linux는 대부분 비슷할 것이라고 생각된다. 아니면 말고..&lt;br /&gt;
&lt;br /&gt;
우선 강제로 &lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;b&gt;reboot 시킨다.&lt;/b&gt;&lt;/span&gt; 서버나 PC의 전원 버튼을 길게 눌러 껐다가 다시 켜거나 reset 버튼을 누른다. 전원을 뽑고 다시 연결하는 방법도 있다. 하드웨어와 linux가 친한 경우 전원버튼을 한 번만 살짝 누르면 자연스럽게 종료되기도 한다. 대부분의 비싼 x86 서버가 &quot;한 번 살짝 눌러 OS에 종료 시그널 보내기 기능&quot;을 지원하며, 요즘은 PC들도 잘 된다.&lt;br /&gt;
&lt;br /&gt;
전원이 들어가고 팬(Fan)돌아가는 소리가 나면 매우 긴장하고 있다가 아래와 같은 화면이 보일 때 &lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;b&gt;아무키나 누른다.&lt;/b&gt;&lt;/span&gt; 친절하게 상단에 아무키나 누르면 메뉴로 간다고 되어 있다. 지나쳤다면 잽싸게 Ctrl+Alt+Del.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN4ziARF_pbcCtr8sP6jxk2vxEVn4oi2dx9TkiqK4y8oDpEyfaPRxw-KdJQVX_Nyp6R0awPNa9qt8EPJmipzfUiGXhwvTs0WrzPjCDPkF-UOFntFFomC_2rhEFL6okkyeFvxLxSE8MCoE/s1600/01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;237&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN4ziARF_pbcCtr8sP6jxk2vxEVn4oi2dx9TkiqK4y8oDpEyfaPRxw-KdJQVX_Nyp6R0awPNa9qt8EPJmipzfUiGXhwvTs0WrzPjCDPkF-UOFntFFomC_2rhEFL6okkyeFvxLxSE8MCoE/s400/01.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
메뉴 화면이 뜨고 그동안 설치했던 커널목록이 보인다. 아래에는 하나밖에 없다. yum update로 kernel이 업데이트 되었다면, 자주 update를 했다면 목록이 더 많을 수 있다. 아무거나 선택해도 되지만 우린 최신 커널이 좋으므로 제일 상단의 &lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;b&gt;커널을 선택한다. (주의: 엔터를 누르면 안된다. 방향키로 선택만)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYNiW3U1px_OU2ZSjywR0hyphenhyphenyugx_y0NWSVyczhuzqEi56eDHpmcpf9Dr-IFnobZ8xtW1Kj6NCpt769Ic6b4qGNRS7EJ7IfRYqZe6WTM3OZmwN6MEAuBg3f9zG3ldkk8SdLrnr0GLnyGKQ/s1600/02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;298&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYNiW3U1px_OU2ZSjywR0hyphenhyphenyugx_y0NWSVyczhuzqEi56eDHpmcpf9Dr-IFnobZ8xtW1Kj6NCpt769Ic6b4qGNRS7EJ7IfRYqZe6WTM3OZmwN6MEAuBg3f9zG3ldkk8SdLrnr0GLnyGKQ/s400/02.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;b&gt;&quot;e&quot;&lt;/b&gt;&lt;/span&gt;키를 누르면 보통 아래와 같이 세개의 메뉴가 보인다. 방향키로 kernel로 시작하는 라인을 선택하고 또 &lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;b&gt;&quot;e&quot;&lt;/b&gt;&lt;/span&gt;키를 누른다.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivY20ob4p-PdEOTfbuAJkMzF-amzJ9t4a976xjHKNO6sT93tz8-XhCSeIo0qypm0TOYARVUJHItNB31uxV6-ii1R0wVGCXppHqirooYc2Yqw5a_NzfCKqOSIn8Cqj8iy1hWt98oDbWFPA/s1600/03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivY20ob4p-PdEOTfbuAJkMzF-amzJ9t4a976xjHKNO6sT93tz8-XhCSeIo0qypm0TOYARVUJHItNB31uxV6-ii1R0wVGCXppHqirooYc2Yqw5a_NzfCKqOSIn8Cqj8iy1hWt98oDbWFPA/s400/03.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
편집할 수 있는 페이지로 이동하고 커서가 보인다. 라인 제일 끝에 &lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;b&gt;&quot;single&quot;&lt;/b&gt;&lt;/span&gt; 또는 &lt;b&gt;&lt;span style=&quot;color: #ffe599;&quot;&gt;&quot;(숫자)1&quot;&lt;/span&gt;&lt;/b&gt;을 &lt;b&gt;&lt;span style=&quot;color: #ffe599;&quot;&gt;&quot;쳐&quot;&lt;/span&gt;&lt;/b&gt; 넣는다. 그리고 이 부분에서 누르고 싶었던 &quot;&lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;b&gt;엔터&quot;&lt;/b&gt;&lt;/span&gt;를 누른다.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZw6ZWpqW7uxZ7pY__J5Up_yEByqFMGB38gws7ckqmmXJjB3q6CWpNGsVsJ7Wjn-gXcYmy1WKhMI0g9AAElXnSzzzYIfSVCaO7HV863nPmUTBxFeRgeF2T1bFpraAxE4gAG7-WGLsv86I/s1600/04.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;298&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZw6ZWpqW7uxZ7pY__J5Up_yEByqFMGB38gws7ckqmmXJjB3q6CWpNGsVsJ7Wjn-gXcYmy1WKhMI0g9AAElXnSzzzYIfSVCaO7HV863nPmUTBxFeRgeF2T1bFpraAxE4gAG7-WGLsv86I/s400/04.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
다시 아까봤던 화면으로 돌아오면 &lt;b&gt;&lt;span style=&quot;color: #ffe599;&quot;&gt;&quot;b&quot;&lt;/span&gt;&lt;/b&gt;를 누른다.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivY20ob4p-PdEOTfbuAJkMzF-amzJ9t4a976xjHKNO6sT93tz8-XhCSeIo0qypm0TOYARVUJHItNB31uxV6-ii1R0wVGCXppHqirooYc2Yqw5a_NzfCKqOSIn8Cqj8iy1hWt98oDbWFPA/s1600/03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivY20ob4p-PdEOTfbuAJkMzF-amzJ9t4a976xjHKNO6sT93tz8-XhCSeIo0qypm0TOYARVUJHItNB31uxV6-ii1R0wVGCXppHqirooYc2Yqw5a_NzfCKqOSIn8Cqj8iy1hWt98oDbWFPA/s400/03.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
상단에 single user mode로 들어왔다는 표시가 보이고, 반가운 console이 보인다. ㅠㅠ&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqqxGuTErKCNK8DbNUVRT0Dm30GOPtx54TUmGT736NXibtEA9eqfj6SZjkylrLxYe4rrXLXpaNnzGXmfgvsiYitt_HwPwTWjG_45xtmpGgF_vBXNzf-udhk1ElBhvEXlI51O88QVcFcZ0/s1600/05.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;211&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqqxGuTErKCNK8DbNUVRT0Dm30GOPtx54TUmGT736NXibtEA9eqfj6SZjkylrLxYe4rrXLXpaNnzGXmfgvsiYitt_HwPwTWjG_45xtmpGgF_vBXNzf-udhk1ElBhvEXlI51O88QVcFcZ0/s400/05.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;b&gt;&quot;passwd&quot;&lt;/b&gt;&lt;/span&gt; 라고 치고, 엔터, 동일하게 두번 새 암호를 넣으면 root 로그인 암호가 변경된다. (현재 root이므로 무슨 짓이든 가능하다.)&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1cyRYcWbjVdjATBi9eM2Xi2StjpCDlp2QqJrPRmR2CXGkIpiSe9ARVZBhmNXm-XM6RHFKczbmfkrFzdUDeqAoyT7F1wGyqNHOc8-aqRJBgRXrc6IxlC_DFVlyW0ByDu40v00m0MJCbp8/s1600/06.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;221&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1cyRYcWbjVdjATBi9eM2Xi2StjpCDlp2QqJrPRmR2CXGkIpiSe9ARVZBhmNXm-XM6RHFKczbmfkrFzdUDeqAoyT7F1wGyqNHOc8-aqRJBgRXrc6IxlC_DFVlyW0ByDu40v00m0MJCbp8/s400/06.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
그리고&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffe599;&quot;&gt;&amp;gt;reboot&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
다시 재부팅 되고 로그인 화면이 보이면 변경된 암호로 로그인 할 수 있다. (감격 ㅠ^ㅠ)&lt;br /&gt;
&lt;br /&gt;
root암호를 잊었을 때 외에도 linux 설정에 문제가 있어 부팅이 제대로 안되는 경우에 single-user mode를 활용할 수 있다. single-user mode에서 해결안되는 문제는 부팅 가능한 이미지 (DVD or USB)를 사용해서 rescue 모드로 부팅해야 한다.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;. 주의 : 본인이 관리자가 아닌 서버에서 이러시면 곤란하다.&lt;/span&gt;&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/4029179695349047270/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/4029179695349047270' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/4029179695349047270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/4029179695349047270'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2015/05/tiplinux-root.html' title='TIP::linux root 암호 복구 방법'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN4ziARF_pbcCtr8sP6jxk2vxEVn4oi2dx9TkiqK4y8oDpEyfaPRxw-KdJQVX_Nyp6R0awPNa9qt8EPJmipzfUiGXhwvTs0WrzPjCDPkF-UOFntFFomC_2rhEFL6okkyeFvxLxSE8MCoE/s72-c/01.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-5045863526564035483</id><published>2015-05-27T23:21:00.000+09:00</published><updated>2015-05-28T23:15:40.094+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="OOM"/><category scheme="http://www.blogger.com/atom/ns#" term="ulimit"/><title type='text'>FIX::OutOfMemoryError: unable to create new native thread</title><content type='html'>&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;OutOfMemoryError: unable to create new native thread 원인&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
OutOfMemoryError 문구만 봐서는 해당 에러가 메모리와 관련된 오류일 것이라고 생각하기 쉽다. 하지만 Java 1.6과 1.7에서 OS가 Thread를 생성해 주지 못할 때&amp;nbsp;OutOfMemoryError: unable to create new native thread 에러가 표시될 수 있다.&lt;br /&gt;
. 참고 :&amp;nbsp;&lt;a href=&quot;http://java.dzone.com/articles/outofmemoryerror-unable-create&quot;&gt;http://java.dzone.com/articles/outofmemoryerror-unable-create&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Linux에서 사용자가 생성할 수 있는 최대 프로세스 개수를 확인하는 방법 중 하나는 ulimit 을 이용하는 것이다.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&amp;gt;ulimit -a&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;core file size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(blocks, -c) 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;data seg size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (kbytes, -d) unlimited&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;scheduling priority &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(-e) 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;file size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(blocks, -f) unlimited&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;pending signals &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(-i) 62341&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;max locked memory &amp;nbsp; &amp;nbsp; &amp;nbsp; (kbytes, -l) 64&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;max memory size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(kbytes, -m) unlimited&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;open files &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(-n) 10240 &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;pipe size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (512 bytes, -p) 8&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;POSIX message queues &amp;nbsp; (bytes, -q) 819200&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;real-time priority &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(-r) 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;stack size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (kbytes, -s) 10240&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;cpu time &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (seconds, -t) unlimited&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;max user processes &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(-u) 1024 &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;virtual memory &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (kbytes, -v) unlimited&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;file locks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(-x) unlimited&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
프로세스 생성과 관련된 값은 &quot;max user processes&quot;이다.&lt;br /&gt;
&lt;br /&gt;
해당값만 보고 싶다면&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&amp;gt;ulimit -u&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;1024&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Hard 설정 값을 보고 싶다면&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&amp;gt;ulimit -Hu&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;2048&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Java 프로세스가 자식 프로세스 모두 합쳐서 해당 값보다 많은 수의 Thread를 생성하려고 한다면 OutOfMemoryError: unable to create new native thread에러가 발생하게 된다.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;max user processes 값 변경 방법&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&amp;gt;ulimit -Hu 65535&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&amp;gt;ulimit -Su 65535&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
위와 같이 할 경우 재부팅 되거나 세션이 새로 열리면 변경된 값이 적용되지 않는다.&lt;br /&gt;
재부팅이나 새 세션에도 해당값을 유지하려면 /etc/security/limits.conf 파일을 편집한 후 재부팅해야 한다.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&amp;gt;vi /etc/security/limits.conf&lt;/span&gt;&lt;br /&gt;
대략적으로 주석을 보면 어떻게 하는지 알 수 있다.&lt;br /&gt;
&lt;br /&gt;
파일 제일 끝에 아래와 같이 추가한다. 이미 비슷한 라인이 있으면 편집한다.&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;* &amp;nbsp; &amp;nbsp;hard &amp;nbsp; &amp;nbsp;nproc &amp;nbsp; &amp;nbsp;65535&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;* &amp;nbsp; &amp;nbsp;soft &amp;nbsp; &amp;nbsp;nproc &amp;nbsp; &amp;nbsp;65535&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
특정 유저만 해당값을 설정하고 싶으면 &#39;*&#39;대신에 ID를 넣어준다.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;hadoop &amp;nbsp; &amp;nbsp;hard &amp;nbsp; &amp;nbsp;nproc &amp;nbsp; &amp;nbsp;65535&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;hadoop &amp;nbsp; &amp;nbsp;soft &amp;nbsp; &amp;nbsp;nproc &amp;nbsp; &amp;nbsp;65535&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
hard는 최대로 생성할 수 있는 프로세스 수가 아니라 최대로 설정 가능한 제한값으로 root유저만 변경 가능하다. soft 값이 생성할 수 있는 최대 프로세스 수이며 root를 포함한 모든 유저는 hard값이하로만 설정 가능하다. (hard가 1024면 soft는 1024보다 클 수 없다.)&lt;br /&gt;
. 참고 :&amp;nbsp;&lt;a href=&quot;http://unix.stackexchange.com/questions/29577/ulimit-difference-between-hard-and-soft-limits&quot;&gt;http://unix.stackexchange.com/questions/29577/ulimit-difference-between-hard-and-soft-limits&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;추가&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
. 파일 편집을 마친 후 재부팅 해야 해당 값이 적용된 다는 것을 잊지 말자.&lt;br /&gt;
. 해당 값을 너무 작게 설정하면 OS가 먹통이 될 수 있다. 복구하려면 rescue 나 &lt;a href=&quot;http://www.cyberciti.biz/faq/grub-boot-into-single-user-mode/&quot; target=&quot;_blank&quot;&gt;single-user mode&lt;/a&gt;에서 /etc/security/limits.conf 파일을 편집해야 한다.&lt;br /&gt;
. max user processes의 최대값은 4,194,303이나 &quot;sysctl kernel.pid_max&quot;값에 따른다. CentOS 6.5의 kernel.pid_max 값은 32,768이다. 즉 ulimit에서 65,535로 변경해도 32,768이다.&lt;br /&gt;
(참고 :&amp;nbsp;&lt;a href=&quot;http://unix.stackexchange.com/questions/124040/how-to-determine-the-max-user-process-value&quot;&gt;http://unix.stackexchange.com/questions/124040/how-to-determine-the-max-user-process-value&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;참고&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
.&amp;nbsp;&lt;a href=&quot;http://stackoverflow.com/questions/9361816/maximum-number-of-processes-in-linux&quot;&gt;http://stackoverflow.com/questions/9361816/maximum-number-of-processes-in-linux&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/5045863526564035483/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/5045863526564035483' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/5045863526564035483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/5045863526564035483'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2015/05/fixoutofmemoryerror-unable-to-create.html' title='FIX::OutOfMemoryError: unable to create new native thread'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-9191660022237381318</id><published>2015-03-27T18:08:00.001+09:00</published><updated>2015-03-27T18:08:40.600+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cdh"/><category scheme="http://www.blogger.com/atom/ns#" term="cloudera manager"/><title type='text'>FIX::cloudera manager 설치중 DNS 설정 안해서 생기는 오류</title><content type='html'>아래와 같은 에러가 나면 에러가 발생한 호스트에서 /etc/hosts 파일에 호스트를 추가해 준다.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #9fc5e8;&quot;&gt;ex)&lt;/span&gt;&lt;/h3&gt;
vi /etc/hosts&lt;br /&gt;
&lt;br /&gt;
아래와 같이 IP, hostname 순서대로 추가&lt;br /&gt;
192.168.100.10 HOSTNAME&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #9fc5e8;&quot;&gt;에러 메시지&lt;/span&gt;&lt;/h3&gt;
###CLOUDERA_SCM### AGENT_START&lt;br /&gt;
BEGIN /sbin/service cloudera-scm-agent status | grep running&lt;br /&gt;
END (1)&lt;br /&gt;
BEGIN /sbin/service cloudera-scm-agent start&lt;br /&gt;
Starting cloudera-scm-agent: ESC[60G[ESC[0;31mFAILEDESC[0;39m]&lt;br /&gt;
END (1)&lt;br /&gt;
agent logs:&lt;br /&gt;
BEGIN &amp;nbsp;tail -n 50 /var/log/cloudera-scm-agent//cloudera-scm-agent.out | sed &#39;s/^/&amp;gt;&amp;gt;/&#39;&lt;br /&gt;
&amp;gt;&amp;gt;/usr/lib64/cmf/agent/src/cmf/parcel.py:15: DeprecationWarning: the sets module is deprecated&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp;from sets import Set&lt;br /&gt;
&amp;gt;&amp;gt;[27/Mar/2015 08:39:27 +0000] 10369 MainThread agent &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;INFO &amp;nbsp; &amp;nbsp; SCM Agent Version: 5.3.2&lt;br /&gt;
&amp;gt;&amp;gt;[27/Mar/2015 08:39:28 +0000] 10369 MainThread agent &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ERROR &amp;nbsp; &amp;nbsp;Could not determine hostname or ip address; proceeding.&lt;br /&gt;
&amp;gt;&amp;gt;Traceback (most recent call last):&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp;File &quot;/usr/lib64/cmf/agent/src/cmf/agent.py&quot;, line 2028, in parse_arguments&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;ip_address = socket.gethostbyname(fqdn)&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;gaierror: [Errno -2] Name or service not known&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&amp;gt;&amp;gt;usage: agent.py [-h] [--agent_dir AGENT_DIR] [--lib_dir LIB_DIR]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--orphan_process_directory_staleness_threshold ORPHAN_PROCESS_DIRECTORY_STALENESS_THRESHOLD]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--orphan_process_directory_refresh_interval ORPHAN_PROCESS_DIRECTORY_REFRESH_INTERVAL]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--agent_httpd_port AGENT_HTTPD_PORT] --package_dir&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PACKAGE_DIR [--parcel_dir PARCEL_DIR]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--supervisord_path SUPERVISORD_PATH]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--supervisord_httpd_port SUPERVISORD_HTTPD_PORT]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--standalone STANDALONE] [--master MASTER]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--environment ENVIRONMENT] [--host_id HOST_ID]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--disable_supervisord_events] --hostname HOSTNAME&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--ip_address IP_ADDRESS [--use_tls]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--client_key_file CLIENT_KEY_FILE]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--client_cert_file CLIENT_CERT_FILE]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--verify_cert_file VERIFY_CERT_FILE]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--verify_cert_dir VERIFY_CERT_DIR]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--client_keypw_file CLIENT_KEYPW_FILE]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--max_cert_depth MAX_CERT_DEPTH] [--logfile LOGFILE]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--logdir LOGDIR] [--optional_token] [--clear_agent_dir]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--sudo_command SUDO_COMMAND]&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&amp;gt;&amp;gt;agent.py: error: argument --hostname is required&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&amp;gt;&amp;gt;[27/Mar/2015 08:39:28 +0000] 10369 Dummy-1 agent &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;INFO &amp;nbsp; &amp;nbsp; Stopping agent...&lt;br /&gt;
&amp;gt;&amp;gt;/usr/lib64/cmf/agent/src/cmf/parcel.py:15: DeprecationWarning: the sets module is deprecated&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp;from sets import Set&lt;br /&gt;
&amp;gt;&amp;gt;[27/Mar/2015 08:39:27 +0000] 10369 MainThread agent &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;INFO &amp;nbsp; &amp;nbsp; SCM Agent Version: 5.3.2&lt;br /&gt;
&amp;gt;&amp;gt;[27/Mar/2015 08:39:28 +0000] 10369 MainThread agent &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ERROR &amp;nbsp; &amp;nbsp;Could not determine hostname or ip address; proceeding.&lt;br /&gt;
&amp;gt;&amp;gt;Traceback (most recent call last):&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp;File &quot;/usr/lib64/cmf/agent/src/cmf/agent.py&quot;, line 2028, in parse_arguments&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;ip_address = socket.gethostbyname(fqdn)&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&amp;gt;&amp;gt;gaierror: [Errno -2] Name or service not known&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&amp;gt;&amp;gt;usage: agent.py [-h] [--agent_dir AGENT_DIR] [--lib_dir LIB_DIR]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--orphan_process_directory_staleness_threshold ORPHAN_PROCESS_DIRECTORY_STALENESS_THRESHOLD]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--orphan_process_directory_refresh_interval ORPHAN_PROCESS_DIRECTORY_REFRESH_INTERVAL]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--agent_httpd_port AGENT_HTTPD_PORT] --package_dir&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PACKAGE_DIR [--parcel_dir PARCEL_DIR]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--supervisord_path SUPERVISORD_PATH]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--supervisord_httpd_port SUPERVISORD_HTTPD_PORT]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--standalone STANDALONE] [--master MASTER]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--environment ENVIRONMENT] [--host_id HOST_ID]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--disable_supervisord_events] --hostname HOSTNAME&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--ip_address IP_ADDRESS [--use_tls]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--client_key_file CLIENT_KEY_FILE]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--client_cert_file CLIENT_CERT_FILE]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--verify_cert_file VERIFY_CERT_FILE]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--verify_cert_dir VERIFY_CERT_DIR]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--client_keypw_file CLIENT_KEYPW_FILE]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--max_cert_depth MAX_CERT_DEPTH] [--logfile LOGFILE]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--logdir LOGDIR] [--optional_token] [--clear_agent_dir]&lt;br /&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[--sudo_command SUDO_COMMAND]&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&amp;gt;&amp;gt;agent.py: error: argument --hostname is required&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&amp;gt;&amp;gt;[27/Mar/2015 08:39:28 +0000] 10369 Dummy-1 agent &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;INFO &amp;nbsp; &amp;nbsp; Stopping agent...&lt;br /&gt;
END (0)&lt;br /&gt;
BEGIN &amp;nbsp;tail -n 50 /var/log/cloudera-scm-agent//cloudera-scm-agent.log | sed &#39;s/^/&amp;gt;&amp;gt;/&#39;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;tail: tail: cannot open `/var/log/cloudera-scm-agent//cloudera-scm-agent.log&#39; for reading: No such file or directory&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
END (0)&lt;br /&gt;
end of agent logs.&lt;br /&gt;
scm agent could not be started, giving up&lt;br /&gt;
waiting for rollback request&lt;br /&gt;
###CLOUDERA_SCM### WAITING_FOR_ROLLBACK&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;cannot open `/var/log/cloudera-scm-agent//cloudera-scm-agent.log&#39; for reading: No such file or directory&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
detected rollback request&lt;br /&gt;
rolling back installation&lt;br /&gt;
###CLOUDERA_SCM### ROLLBACK&lt;br /&gt;
rollback started&lt;br /&gt;
###CLOUDERA_SCM### AGENT_STOP&lt;br /&gt;
BEGIN /sbin/service cloudera-scm-agent stop&lt;br /&gt;
cloudera-scm-agent is already stopped&lt;br /&gt;
END (0)&lt;br /&gt;
scm agent stopped&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/9191660022237381318/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/9191660022237381318' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/9191660022237381318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/9191660022237381318'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2015/03/fixcloudera-manager-hostname.html' title='FIX::cloudera manager 설치중 DNS 설정 안해서 생기는 오류'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-6293382964176977834</id><published>2015-03-20T16:33:00.000+09:00</published><updated>2015-03-20T16:33:22.512+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="md5"/><category scheme="http://www.blogger.com/atom/ns#" term="mirror"/><category scheme="http://www.blogger.com/atom/ns#" term="SHA"/><category scheme="http://www.blogger.com/atom/ns#" term="파일 검증"/><title type='text'>Tip::Microsoft File Checksum Integrity Verifier</title><content type='html'>인터넷 웹페이지나 mirror 사이트에서 파일을 받았는데 제대로 받아졌는지 궁금할 때 &lt;a href=&quot;http://ko.wikipedia.org/wiki/MD5&quot; target=&quot;_blank&quot;&gt;md5&lt;/a&gt;&amp;nbsp;나 &lt;a href=&quot;http://ko.wikipedia.org/wiki/SHA&quot; target=&quot;_blank&quot;&gt;SHA&lt;/a&gt;&amp;nbsp;같은 값으로 파일의 무결성을 검증할 수 있다. Windows의 경우 MS에서 File Checksum Tool을 제공한다.&lt;br /&gt;
&lt;br /&gt;
아래에서 다운로드&lt;br /&gt;
&lt;a href=&quot;http://www.microsoft.com/en-us/download/details.aspx?id=11533&quot;&gt;http://www.microsoft.com/en-us/download/details.aspx?id=11533&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
위 파일을 받아 실행하면 라이센스 동의를 묻고, 동의하면 실행파일을 풀어놓을 폴더 위치를 물어본다.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVaInPxksPAPFYDsBirVHzGL1_rfsq56rHuokgFA3NIDsWzIBx7cppb5wUiNpmYwEIjg5o92XK6EEhH0m-Y9zIiPjzsJFHc5Ag34sdvc4c4a3DWlBnJPZmMWqYlU_AZN8cP_7qCZICBIU/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVaInPxksPAPFYDsBirVHzGL1_rfsq56rHuokgFA3NIDsWzIBx7cppb5wUiNpmYwEIjg5o92XK6EEhH0m-Y9zIiPjzsJFHc5Ag34sdvc4c4a3DWlBnJPZmMWqYlU_AZN8cP_7qCZICBIU/s1600/1.png&quot; height=&quot;153&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
적당한 위치를 선택하고 OK를 누르면 해당 위치에서 2개의 파일을 확인할 수 있다.&lt;br /&gt;
&lt;br /&gt;
1. fciv.exe&lt;br /&gt;
2. ReadMe.txt&lt;br /&gt;
&lt;br /&gt;
파일 탐색기에서 실행하면 소용없다. cmd에서 해야 한다.&lt;br /&gt;
윈도우즈키 + R 누르고, cmd 입력 후 &quot;확인&quot;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJXtDtz5B_sa5hVpx3OvWTj7-7QGgE5o0-3tpxQfRb6Azwp7Ayo6_3es1b0azwCn8w5BIcK8azqGkDGSMfm65RcMN6idEv_m7H5iP-gY3vfRqVp3hrKpPPXPc2ROZ0KVKYCk79nLC7GdE/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJXtDtz5B_sa5hVpx3OvWTj7-7QGgE5o0-3tpxQfRb6Azwp7Ayo6_3es1b0azwCn8w5BIcK8azqGkDGSMfm65RcMN6idEv_m7H5iP-gY3vfRqVp3hrKpPPXPc2ROZ0KVKYCk79nLC7GdE/s1600/2.png&quot; height=&quot;180&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
위에서 선택한 폴더로 이동해서 아래와 같이 실행하면 기본으로 md5 값이 출력된다. 출력된 값을 다운로드 페이지나 mirror에서 제공하는 값과 비교해서 동일한지 확인한다.&lt;br /&gt;
&lt;br /&gt;
&amp;gt;fciv.exe FILE_PATH&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSsOdJ5YJ0KB09dv7-Vg_d5MokCQd-cbqVIzJlYnrc_1a6gjtUuY0Tvk4vYhJit8sOE4qQQR0OlqBFNELP4CJfUxdLAvNtS5-fdmyhSl089wa_ylIidfT2VISqP0Lx2YCQSEe8Ox5YrI0/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSsOdJ5YJ0KB09dv7-Vg_d5MokCQd-cbqVIzJlYnrc_1a6gjtUuY0Tvk4vYhJit8sOE4qQQR0OlqBFNELP4CJfUxdLAvNtS5-fdmyhSl089wa_ylIidfT2VISqP0Lx2YCQSEe8Ox5YrI0/s1600/3.png&quot; height=&quot;260&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
sha1값을 확인하고 싶으면 -sha1 옵션을 사용하고, 둘다 확인하고 싶으면 -both 옵션을 사용한다.&lt;br /&gt;
&lt;br /&gt;
자세한 내용은 같은 폴더에 위치한 ReadMe.txt 파일을 참고한다.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/6293382964176977834/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/6293382964176977834' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/6293382964176977834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/6293382964176977834'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2015/03/tipmicrosoft-file-checksum-integrity.html' title='Tip::Microsoft File Checksum Integrity Verifier'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVaInPxksPAPFYDsBirVHzGL1_rfsq56rHuokgFA3NIDsWzIBx7cppb5wUiNpmYwEIjg5o92XK6EEhH0m-Y9zIiPjzsJFHc5Ag34sdvc4c4a3DWlBnJPZmMWqYlU_AZN8cP_7qCZICBIU/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-1605105619954762063</id><published>2015-03-20T12:34:00.000+09:00</published><updated>2015-03-20T12:34:17.569+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="lollipop"/><category scheme="http://www.blogger.com/atom/ns#" term="NEXUS 5"/><category scheme="http://www.blogger.com/atom/ns#" term="System cache. Slow"/><title type='text'>FIX::안드로이드 롤리팝 업그레이드 후 느려지는 현상</title><content type='html'>NEXUS 5에서 롤리팝(5.01)으로 올렸더니 어플 몇 개 실행하면 엄청 느려지고, 가끔 벽돌이 되기도 한다. 구글이 이럴리가 ㅠㅠ 하면서 구글을 뒤져보니 시스템 캐시(System cache)를 지우라고 하는데 방법이 좀 까다롭다. 휴대폰을 껐다가 볼륨버튼 누르고... 하지만 설정으로 들어가서 쉽게 캐시를 지울 수 있는 방법이 있다고 해서...&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;color: #9fc5e8;&quot;&gt;설정&amp;gt;저장소&amp;gt;캐시된 데이터&lt;/span&gt;&lt;/b&gt;를 누르면 &lt;span style=&quot;color: #9fc5e8;&quot;&gt;&quot;캐시된 데이터를 지우시겠습니까?&quot;&lt;/span&gt;라고 물어본다. &lt;span style=&quot;color: #9fc5e8;&quot;&gt;&lt;b&gt;&quot;확인&quot;&lt;/b&gt;&lt;/span&gt; 누르면 끝.&lt;br /&gt;&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
자 이제 롤리팝을 누리자!&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/1605105619954762063/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/1605105619954762063' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/1605105619954762063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/1605105619954762063'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2015/03/fix_20.html' title='FIX::안드로이드 롤리팝 업그레이드 후 느려지는 현상'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-8040608654676233328</id><published>2015-03-16T12:32:00.003+09:00</published><updated>2016-08-05T11:31:08.991+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="USB"/><title type='text'>FIX::장치가 더 이상 응답하지않거나 연결이 끊어졌습니다.</title><content type='html'>USB를 통해서 스마트폰이나 저장장치에 파일을 복사할 때 &quot;장치가 더 이상 응답하지않거나 연결이 끊어졌습니다.&quot;라는 문구와 함께 에러가 날 경우.&lt;br /&gt;
&lt;br /&gt;
1. PC의 USB포트에서 장치를 뺐다가 다시 연결한다.&lt;br /&gt;
&lt;br /&gt;
2. PC의 USB 포트를 변경해서 끼워본다.&lt;br /&gt;
&lt;br /&gt;
3. USB 허브를 사용할 경우 허브가 아닌 PC의 다른 포트에 직접 연결한다.&lt;br /&gt;
&lt;br /&gt;
4. Android폰의 경우 &quot;미디어 기기(MTP)&quot;로 연결 후 위 방법으로 시도한다.&lt;br /&gt;
&lt;br /&gt;
5. USB 컴퓨터 연결 옵션에서 PTP로 변경 후 다시 MTP로 설정한다. - 무슨 이유인지 모르겠으나 롤리팝(5.01)이 설치된 NEXUS 5에서 처음 USB 케이블을 연결하면 위 에러가 발생하면서 파일 복사가 제대로 되지 않는다. 5번 방법으로 PTP설정으로 변경 후 다시 MTP로 설정하면 이후에 복사가 잘 된다. ;;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #9fc5e8; font-size: x-large;&quot;&gt;MTP PTP 설정방법&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
아래와 같이 알림에서 &quot;미디어 기기로 연결됨&quot;을 누른다.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH_oJ-TN3-9nmINZXcWb-ZIXmoXX1fmlzwbSbC7DqLdP_XHYLl4NM6nrnupxS1ZkWol_79XrwOb-35K5jSFXf5Dl_HETnkSmtxwbv3KoRw6jlYwBnIrRkaxhFfXjE1l_Wh7JRteRc4Rns/s1600/Screenshot_2015-06-01-12-16-36%255B1%255D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH_oJ-TN3-9nmINZXcWb-ZIXmoXX1fmlzwbSbC7DqLdP_XHYLl4NM6nrnupxS1ZkWol_79XrwOb-35K5jSFXf5Dl_HETnkSmtxwbv3KoRw6jlYwBnIrRkaxhFfXjE1l_Wh7JRteRc4Rns/s400/Screenshot_2015-06-01-12-16-36%255B1%255D.png&quot; width=&quot;225&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
USB 컴퓨터 연결 화면에서 목적에 맞는 연결방식을 선택하면 끝&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGTKhxj6Cxv7BZfRMum_-bBqVbxw1frf1hN2QVu77NInSO2SBgXCqS3TV9vtymJOw5ZfjLW0KMi_ly1Y_7ArOthstMd_LRMC5f3qMttwpeqA0fLChQJ0FVg0LQJzEeRjtCzUrENXqN7NU/s1600/Screenshot_2015-06-01-12-16-42%255B1%255D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGTKhxj6Cxv7BZfRMum_-bBqVbxw1frf1hN2QVu77NInSO2SBgXCqS3TV9vtymJOw5ZfjLW0KMi_ly1Y_7ArOthstMd_LRMC5f3qMttwpeqA0fLChQJ0FVg0LQJzEeRjtCzUrENXqN7NU/s400/Screenshot_2015-06-01-12-16-42%255B1%255D.png&quot; width=&quot;225&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/8040608654676233328/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/8040608654676233328' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/8040608654676233328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/8040608654676233328'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2015/03/fix.html' title='FIX::장치가 더 이상 응답하지않거나 연결이 끊어졌습니다.'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH_oJ-TN3-9nmINZXcWb-ZIXmoXX1fmlzwbSbC7DqLdP_XHYLl4NM6nrnupxS1ZkWol_79XrwOb-35K5jSFXf5Dl_HETnkSmtxwbv3KoRw6jlYwBnIrRkaxhFfXjE1l_Wh7JRteRc4Rns/s72-c/Screenshot_2015-06-01-12-16-36%255B1%255D.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-2089411409518700268</id><published>2015-03-16T10:51:00.001+09:00</published><updated>2015-03-30T10:24:34.536+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VirtualBox"/><title type='text'>FIX::VirtualBox E_FAIL (0x80004005) error</title><content type='html'>&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;출근해서 VirtualBox VM 실행 했는데 아래와 같은 에러가 난다면...&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;Result Code: E_FAIL (0x80004005)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;Component: Machine&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;Interface: IMachine {XXXXXXXXXXXXXXXXXXXXXXXXXX}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;해결방법은 아래와 같다.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;1. 해당 VM의 네트워크 인터페이스를 비활성화 시켰다가 다시 활성화 시키고 시작한다. (2010년 버전)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;2. 레지스트리를 수정한다. (비추천, Windows 7 버전,&amp;nbsp;&lt;a href=&quot;http://superuser.com/questions/785072/e-fail-0x80004005-when-running-linux-through-windows-8-virtualbox&quot;&gt;http://superuser.com/questions/785072/e-fail-0x80004005-when-running-linux-through-windows-8-virtualbox&lt;/a&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;3. VirtualBox를 업데이트 한다.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;(지금 내가 해결한 버전)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;도움말 -&amp;gt; 업데이트 찾기 클릭하면 최신버전을 알아서 받는다. 설치도중 실행중인 프로세스가 있다고 하면 기존에 실행시킨 VirtualBox를 종료시키고, 계속 retry 버튼을 클릭한다.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;혹시 다른 방법이 새로 발견되면 알려주세욤. 굽신굽신&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/2089411409518700268/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/2089411409518700268' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/2089411409518700268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/2089411409518700268'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2015/03/fixvirtualbox-efail-0x80004005-error.html' title='FIX::VirtualBox E_FAIL (0x80004005) error'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-848114145379806859</id><published>2015-03-05T17:45:00.002+09:00</published><updated>2015-03-26T10:29:13.883+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bitnami"/><category scheme="http://www.blogger.com/atom/ns#" term="email"/><category scheme="http://www.blogger.com/atom/ns#" term="mediawiki"/><title type='text'>aws에 설치한 bitnami mediawiki의 email설정</title><content type='html'>aws에 bitnami mediawiki를 설치하고, 이메일 설정하면서 정리한 내용이다.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #9fc5e8;&quot;&gt;
sendmail 설치&lt;/span&gt;&lt;/h3&gt;
&amp;gt;apt-get install sendmail&lt;br /&gt;
&lt;h3&gt;
&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #9fc5e8;&quot;&gt;
LocalSetting.php 파일에 아래 내용 추가&lt;/span&gt;&lt;/h3&gt;
$wgSMTP = array(&lt;br /&gt;
&amp;nbsp;&quot;host&quot; =&amp;gt; &quot;localhost&quot;,&lt;br /&gt;
&amp;nbsp;&quot;IDHost&quot; =&amp;gt; &quot;localhost&quot;,&lt;br /&gt;
&amp;nbsp;&quot;port&quot; =&amp;gt; &quot;25&quot;,&lt;br /&gt;
&amp;nbsp;&quot;auth&quot; =&amp;gt; false&lt;br /&gt;
);&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #9fc5e8;&quot;&gt;
net_smtp와 auth_sasl 설치&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&amp;gt;pear install net_smtp&lt;/div&gt;
&lt;div&gt;
&amp;gt;pear install auth_sasl&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #9fc5e8;&quot;&gt;&lt;b&gt;sendmail 재시작&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&amp;gt;sudo /opt/bitnami/ctlscript.sh restart&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #9fc5e8;&quot;&gt;mediawiki 재시작&lt;/span&gt;&lt;/h3&gt;
&amp;gt;sudo /etc/init.d/sendmail restart&lt;br /&gt;
또는&lt;br /&gt;
&amp;gt;sudo service sendmail restart&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;color: #9fc5e8;&quot;&gt;
net_smtp와 auth_sasl을 설치하지 않으면 발생할 수 있는 에러들&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
. authentication failure [SMTP: No supported authentication methods (code: 250, response&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
. authentication failure [SMTP: Invalid response code received from server (code: 535, response: 5.7.0 authentication failed)]&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/848114145379806859/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/848114145379806859' title='1개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/848114145379806859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/848114145379806859'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2015/03/aws-bitnami-mediawiki-email.html' title='aws에 설치한 bitnami mediawiki의 email설정'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-8325854359403422751</id><published>2015-03-04T15:04:00.001+09:00</published><updated>2015-03-04T15:04:31.351+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="diff"/><category scheme="http://www.blogger.com/atom/ns#" term="git"/><title type='text'>git diff 색깔로 구분하기</title><content type='html'>CentOS 6.6에서 git의 버전은 1.7.1이다. 1.7.1에서 diff 했을 때 색깔로 구분해서 표시해서 보기좋게 하는 방법을 소개한다.&lt;br /&gt;
&lt;br /&gt;
~/.gitconfig 파일에 아래 내용을 추가한다.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;[color]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&amp;nbsp; &amp;nbsp; diff = auto&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
다른 버전의 git에서는&amp;nbsp;&lt;a href=&quot;http://blog.outsider.ne.kr/1011&quot; target=&quot;_blank&quot;&gt;diff-highlight&lt;/a&gt;를 쓰는 것이 좋을 것 같다. 1.7.1에서 diff-highlight를 적용하면 아래와 같은 에러가 난다.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;fatal: bad config value for &#39;pager.diff&#39; in /home/USER/.gitconfig&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/8325854359403422751/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/8325854359403422751' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/8325854359403422751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/8325854359403422751'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2015/03/git-diff.html' title='git diff 색깔로 구분하기'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-563770899148281490</id><published>2015-03-02T17:56:00.002+09:00</published><updated>2015-03-02T17:57:00.807+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><category scheme="http://www.blogger.com/atom/ns#" term="sinatra"/><title type='text'>Fix:Sinatra 응답속도가 매우 느린 문제</title><content type='html'>ruby로 뭔가 해보려고 &lt;a href=&quot;http://www.sinatrarb.com/&quot; target=&quot;_blank&quot;&gt;sinatra&lt;/a&gt;를 사용해봤다. 예제를 돌리는데 응답하는데까지 대략 10초 이상이 걸린다. ㅡ,.ㅡ;;;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
아래 검색결과로 해결되었다.&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/1156759/webrick-is-very-slow-to-respond-how-to-speed-it-up&quot;&gt;http://stackoverflow.com/questions/1156759/webrick-is-very-slow-to-respond-how-to-speed-it-up&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
DNS lookup은 가끔 어플리케이션이 느린것 처럼 보이게 한다. 예를 들어 DNS설정이 제대로 되어있지 않은 서버 또는 private network에서 sendmail은 부팅 시간을 오래 걸리게 하고, ssh는 응답속도가 매우 느린데 이유는 DNS lookup을 하는데 timeout이 걸릴때까지 시간이 걸리기 때문이다. sinatra도 마찬가지.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
sinatra가 사용하는 webrick의 config.rb 파일을 찾아 수정해 줘야 한다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;&lt;b&gt;&amp;gt;find RUBY_INSTALLED_DIR/ -name config.rb&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;/opt/rubies/ruby-1.9.3-p551/lib/ruby/gems/1.9.1/gems/rack-1.6.0/lib/rack/config.rb&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;/opt/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/openssl/config.rb&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;/opt/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/xmlrpc/config.rb&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;/opt/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/webrick/config.rb&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ruby-install을 이용해서 1.9.3버전을 설치하면 위와 같이 나온다. RUBY_INSTALLED_DIR에 ruby가 설치된 디렉토리를 넣어준다. 모르겠으면 그냥 &#39;/&#39;.. :)&lt;/div&gt;
&lt;div&gt;
위에서는 /opt/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/webrick/config.rb 파일을 열어서 아래와 같이 고친다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;:DoNotReverseLookup =&amp;gt; nil,&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
위 라인을&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #ffe599;&quot;&gt;:DoNotReverseLookup =&amp;gt; true,&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
로 변경&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
다시 실행하면 LTE급 속도로 응답한다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/563770899148281490/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/563770899148281490' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/563770899148281490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/563770899148281490'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2015/03/fixsinatra.html' title='Fix:Sinatra 응답속도가 매우 느린 문제'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-8130997665800847929</id><published>2015-02-27T17:11:00.002+09:00</published><updated>2015-02-27T17:17:12.218+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>undefined local variable or method `rsion&#39; for main:Object (NameError)</title><content type='html'>&lt;a href=&quot;https://github.com/postmodern/ruby-install&quot; target=&quot;_blank&quot;&gt;ruby-install&lt;/a&gt;을 사용해서 ruby를 설치하니 PATH에 잡히지 않았다. PATH 대충 잡고 &quot;ruby -version&quot;을 실행하니 아래와 같은 에러가 나온다.&lt;br /&gt;
&lt;br /&gt;
&amp;gt; ruby -version&lt;br /&gt;
ruby 1.9.3p551 (2014-11-13) [x86_64-linux]&lt;br /&gt;
-e:1:in `&lt;br /&gt;
&lt;main&gt;&#39;: undefined local variable or method `rsion&#39; for main:Object (NameError)&lt;/main&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
무슨 문제가 있는가 하고 google님께 여쭤보니...&lt;/div&gt;
&lt;div&gt;
&quot;바보야! java는 -version이고, ruby는 --version이니라.&quot; 하신다. 쫄지말자 &quot;-&quot;를 하나만 사용해서 그런거다.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;b&gt;&lt;span style=&quot;color: #ea9999;&quot;&gt;ruby 버전확인&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;div&gt;
ruby -v 또는 ruby --version&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
* 참고 :&amp;nbsp;&lt;a href=&quot;https://www.ruby-forum.com/topic/157681&quot;&gt;https://www.ruby-forum.com/topic/157681&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/8130997665800847929/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/8130997665800847929' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/8130997665800847929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/8130997665800847929'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2015/02/undefined-local-variable-or-method.html' title='undefined local variable or method `rsion&#39; for main:Object (NameError)'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-3650301668515889283</id><published>2014-10-27T12:20:00.001+09:00</published><updated>2014-10-29T13:58:49.085+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="rc"/><category scheme="http://www.blogger.com/atom/ns#" term="release candidate"/><category scheme="http://www.blogger.com/atom/ns#" term="run commands"/><category scheme="http://www.blogger.com/atom/ns#" term="version"/><title type='text'>Linux 파일명에서 rc</title><content type='html'>리눅스 파일을 보다보면 rc라는 단어를 포함한 파일명을 보게된다.&lt;br /&gt;
&lt;br /&gt;
XXX.rc&lt;br /&gt;
XXXX-1.8.rc5&lt;br /&gt;
&lt;br /&gt;
rc는 2가지 뜻이 있다.&lt;br /&gt;
&lt;br /&gt;
1. Run Commands - 뭔가를 시작할 때 필요한 정보 또는 명령을 포함한 파일이다. 예를 들어 OS가 부팅될 때 호출되는 스크립트 파일명에 붙을 수 있다.&lt;br /&gt;
2. Release Candidate - Stable한 버전을 릴리즈 하기 전 검증이 덜 된 배포본이다. 사용가능한 상태이나 완벽한 상태라고 하기엔 부족한상태. rc상태에서 버그가 고쳐지거나 하면 rc뒤에 숫자가 올라간다. 검증 완료되면 rc가 떨어지고 stable한 버전이 된다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
.&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Run_commands&quot;&gt;http://en.wikipedia.org/wiki/Run_commands&lt;/a&gt;&lt;br /&gt;
.&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Software_release_life_cycle#Release_candidate&quot;&gt;http://en.wikipedia.org/wiki/Software_release_life_cycle#Release_candidate&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/3650301668515889283/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/3650301668515889283' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/3650301668515889283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/3650301668515889283'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2014/10/linux-rc.html' title='Linux 파일명에서 rc'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-8837627909373487545</id><published>2014-05-09T15:26:00.001+09:00</published><updated>2014-05-09T15:26:37.596+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apple"/><category scheme="http://www.blogger.com/atom/ns#" term="Game Center"/><category scheme="http://www.blogger.com/atom/ns#" term="ipad"/><category scheme="http://www.blogger.com/atom/ns#" term="iPhone"/><title type='text'>아이폰, 아이패드에서 게임센터 로그인 안될 때 해결방법</title><content type='html'>요즘 SUPERCELL게임들을 하고 있는데 자꾸 게임센터 암호를 물어보더니 이제 친구목록도 제대로 안나오는 상태가 되었다. 게임센터에 들어가도 제대로 동작하지 않았다.&lt;br /&gt;
구글링 하니 아래와 같은 방법으로 해결 하라고 하신다.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #ffe599;&quot;&gt;=&amp;gt; 설정-&amp;gt;일반-&amp;gt;재설정-&amp;gt;모든 설정 재설정&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
데이터나 미디어는 그대로 있고 설정만 날리는 옵션인 듯 보인다.&lt;br /&gt;
완료 후에도 게임이나 사진 등은 그대로 있다.&lt;br /&gt;
&lt;br /&gt;
와이파이 설정 등은 새로 해줘야 하니 미리 챙기시길...&lt;br /&gt;
&lt;br /&gt;
아이패드가 꺼졌다 켜지고 게임센터도 정상적으로 동작한다.&lt;br /&gt;
가끔 iCloud 패스워드를 연속해서 물어보는 경우가 있다. 패스워드를 바르게 입력해도 새로 어플을 실행시키면 계속 물어본다. 이런 경우에도 동일한 방법으로 해결될 듯 하다.</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/8837627909373487545/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/8837627909373487545' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/8837627909373487545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/8837627909373487545'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2014/05/blog-post.html' title='아이폰, 아이패드에서 게임센터 로그인 안될 때 해결방법'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5147914120046795916.post-6432905672373590710</id><published>2014-03-20T12:05:00.000+09:00</published><updated>2014-03-20T12:05:36.862+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CURRENT_TIMESTAMP"/><category scheme="http://www.blogger.com/atom/ns#" term="DATETIME"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="TIMESTAMP"/><title type='text'>mysql DATETIME형의 기본값으로 현재시간 설정</title><content type='html'>mysql에서 시간을 저장하는 컬럼에 현재시간을 기본으로 설정하려면 기본값을 CURRENT_TIMESTAMP로 하면 된다. CURRENT_TIMESTAMP를 기본값으로 하면 INSERT나 UPDATE시 now()를 쓰는 것과 같은 효과를 볼 수 있다.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
하지만 DATETIME형의 경우 5.6버전 이후부터 CURRENT_TIMESTAMP를 사용할 수 있다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
5.5이하 버전에서 기본값으로 현재시간을 설정하려면 DATETIME형 대신 TIMESTAMP형을 사용한다. 저장하려는 시간이 아래 기간 안에 있다면 문제없이 쓸 수 있다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&#39;1970-01-01 00:00:01&#39; UTC to &#39;2038-01-19 03:14:07&#39; UTC.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
위 시간에 벗어나는 시간대를 저장해야 하고 INSERT시 현재값을 저장하려면 아래 방법 중 1개를 선택한다.&lt;/div&gt;
&lt;div&gt;
1. mysql 5.6버전 이상으로 업그레이드하고 DATETIME형을 사용, DEFAULT값을 CURRENT_TIMESTAMP로 한다.&lt;/div&gt;
&lt;div&gt;
2. 5.5버전 이하에서는 DATETIME형으로 선언하고, INSERT시 now()를 사용해서 시간을 수동으로 설정한다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
참조&lt;/div&gt;
&lt;div&gt;
.&amp;nbsp;&lt;a href=&quot;http://dev.mysql.com/doc/refman/5.5/en/datetime.html&quot; target=&quot;_blank&quot;&gt;11.3.1 The DATE, DATETIME, and TIMESTAMP Types&lt;/a&gt;&amp;nbsp;(ver 5.5)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nojinho.blogspot.com/feeds/6432905672373590710/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5147914120046795916/6432905672373590710' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/6432905672373590710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5147914120046795916/posts/default/6432905672373590710'/><link rel='alternate' type='text/html' href='http://nojinho.blogspot.com/2014/03/mysql-datetime.html' title='mysql DATETIME형의 기본값으로 현재시간 설정'/><author><name>nj</name><uri>http://www.blogger.com/profile/01583231042104733284</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>