전체 글 (325) 썸네일형 리스트형 -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 MySQL 기본적인 모니터링 방법과 Connection과 Memory 튜닝 방법 MySQL Database의 경우 Oracle 이나 MS SQL Server에 비해서 대용량의 자료를 처리하는 경우가 적기에 튜닝에 필요성이 적은 것 같습니다. 그러나 웹이라는 환경은 많은 사용자가 동시에 접속을 할 수 있기에 항상 모니터링과 최적화는 기본이라고 생각합니다. 본 강좌에서는 기본적인 모니터링 방법과 Connection과 Memory 부분에 대한 튜닝 방법을 소개하도록 하겠습니다. 가. 모니터링 및 초기화 명령어 show status - MySQL 데이타베이스의 현재 상황 show Processlist - MySQL 프로세스 목록 show variables - 설정 가능한 모든 변수 목록 flush logs - MySQL의 로그파일 초기화 flush status - MySQL 상태정보 초기화.. Running a syntax check on /etc/my.cnf Usually, I update variables on the fly using something like: mysql> SET GLOBAL max_connections = 150; … and then modify /etc/my.cnf to make the change persistent. The problem in doing this is that you’re not verifying that your /etc/my.cnf is correct and can only hope that a restart doesn’t encounter any problems. Fortunately, Sai emailed us a great little tip to verify the syntax. You can run t.. 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.. 각 은행별 영문명, 영문주소, SWIFT (B.I.C) 코드 먼저 신한은행 SWIFTCODE와 영문명, 그리고 신한은행 영문주소에요 다음은 국민은행 SWIFTCODE와 영문명, 그리고 국민은행 영문주소에요 마지막으로 우리은행 SWIFTCODE와 영문명, 그리고 국민은행 영문주소에요 다음에는 전체 은행별 SWiFT CODE와 영문명 영문조소를 올려볼게요 각 은행별 스위프트 코드와 영문명인데요 사실 자주 사용할일은 거의 없겠지만 자신의 주거래은행 스위프트코드는 따로 메모나 이미지로 저장해놓고 있으면 나중에 필요할때 쉽게 사용할수 있을거에요 https 에서 한글 깨짐 현상(GET) 가 한 개가 아니라는걸 간과해서 protocol 이 HTTP/1.1 인 에만 설정을 하는 것입니다. 중에 protocol="HTTP/1.1" SSLEnabled="true" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" 등의 값이 포함된 다른 에도 URIEncoding 을 적어줘야 하고, mod_jk 을 통해서 처리하는 거라면 AJP/1.3 쪽 에서도 처리를 해야 합니다. https 443 Connector에 URIEncoding="UTF-8" 추가 후 해결, 이전 1 ··· 17 18 19 20 21 22 23 ··· 41 다음