서버 등 운영체제(OS)/Linux (36) 썸네일형 리스트형 history 명령 재 실행 리눅스는 이전에 명령들을 기억합니다. shell > history 를 치면 이전에 입력했던 명령어들이 나타납니다. 실행했던 명령어 리스트중 어떤 명령어를 실행시키고 싶으면 다음과 같이 합니다. shell > !번호 를 입력하면 그 번호의 명령어를 실행합니다. SSL 웹서버 시작시 암호 입력 안하기 SSL인증서를 적용한 이후 웹서버 시작시에 암호를 묻는 경우가 있다. 아래처럼 진행해서 nokey 처리를 하면 된다. # openssl rsa -in 기존KEY -out 생성KEY 물론 기존 key 파일은 백업을 먼저 해두자. [Ubuntu] W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: The link above provides detailed explanation with screenshots. It also has some other simple methods that could be tried before doing this manually. Since it is not accessible from some regions let me describe the method that worked for me. Go to the OpenPGP Public Key Server. There you can enter your key into the Search String field, leaving everything else as is, then click "Search!". When sea.. -bash: ./test.sh: /bin/bash^M: bad interpreter: 그런 파일이나 디렉토리가 없음 vim 에서 vim에서는 dos mode의 화일을 읽어도 화면에 ^M을 표시하지 않습니다. 대신 밑에 [dos] 라고 나타납니다. 다음과 같이 해서 unix mode로.. 즉 ^M을 빼는것입니다. :set fileformat=unix 반대로 unix mode에서 dos mode로 바꾸고 싶다면 :set fileformat=dos CentOS 7 로케일 변경 CentOS 7 에서 로케일 변경하는 방법입니다. 현재 사용가능한 한글관련 로케일# localectl list-locales | grep -i ko ko_KR ko_KR.euckr ko_KR.utf8 kok_IN kok_IN.utf8 korean korean.euc ru_RU.koi8r ru_UA.koi8u tg_TJ.koi8t uk_UA.koi8u utf8 로 변경 # localectl set-locale LANG=ko_KR.utf8 수동으로 변경시는 /etc/locale.conf 파일을 만들어 아래 내용 추가LANG=ko_KR.utf8 서버 부팅 후 로케일 설정 확인# locale LANG=ko_KR.utf8 LC_CTYPE="ko_KR.utf8" LC_NUMERIC="ko_KR.utf8" LC_TI.. CentOS7 MRTG Install [1] Install Apache HTTP Server, refer to here. [2] Install MRTG, SNMP. [root@dlp ~]# yum -y install net-snmp net-snmp-utils mrtg [3] Configure SNMP (Simple Network Management Protocol). [root@dlp ~]# vi /etc/snmp/snmpd.conf # line 41: comment out #com2sec notConfigUser default public # line 74,75: uncomment and change # change to your local network for "mynetwork" section # change comunity name .. Short Tip: Get UUID of Hard Disks [Update] There is an update to this post available: UUIDs and Linux: Everything you ever need to know. The Universally Unique Identifier can be used to identify a device independent form its mount point or device name. This is more and more important as many devices today support hot-plugging or are external anyway. Therefore it makes sometimes sense to access a device (for example in fstab) not by devic.. yum update or yum install fails with package conflict between 64 bit and 32 bit package architectures ? Environment Red Hat Enterprise Linux 5 Red Hat Enterprise Linux 6 64 bit architecture 32 bit packages installed sharing some files with the 64 bit ones Issue Files are conflicting between 64 and 32 bit packages, how to fix it ? yum update or yum install fails with package conflict between 64 bit and 32 bit package architectures. 32 bit package showing conflict problem with 64 bit package. RawTra.. 이전 1 2 3 4 5 다음