반응형

 

KSH 용도 (Solaris)

 

 

 

콘솔(KSH)

https://linuxgazette.net/issue65/padala.html

 

So You Like Color !!! (The mysterious ^[[ characters) LG #65

#include #define RESET 0 #define BRIGHT 1 #define DIM 2 #define UNDERLINE 3 #define BLINK 4 #define REVERSE 7 #define HIDDEN 8 #define BLACK 0 #define RED 1 #define GREEN 2 #define YELLOW 3 #define BLUE 4 #define MAGENTA 5 #define CYAN 6 #define WHITE 7 #d

linuxgazette.net

 

 

 

^[ 부분은 CTRL+V 를 눌러서 입력함

 

 

배쉬쉘(BASH)

 

일반계정 : export PS1='\[\e[36;1m\]\u@\[\e[32;1m\]\h:\[\e[37;1m\][${PWD}]\[\e[0m\]$> '

root 계정 : export PS1='\[\e[31;1m\]\u@\[\e[31;1m\]\h:\[\e[32;1m\][${PWD}]\[\e[0m\]$> '

 

 

본쉘(sh)

 

cd()

{

    chdir $*;

    PS1="$LOGNAME@`hostname`:`pwd` $>"    

}

 

PS1="$LOGNAME@`hostname`:`pwd` $>"

반응형
반응형

 

설치 : http://naver.github.io/pinpoint/1.8.4/main.html

 

Pinpoint 1.8.4 | Leading Open-Source APM

What’s New in 1.8.4 If you want to communicate data between Span and Stat over TCP , we highly suggest upgrading your agent to 1.8.4 as it includes a bug fix for it. Enhancements Allow collector to log received span/stat packet count Avoid storing excessiv

naver.github.io

 

http://naver.github.io/pinpoint/1.8.4/installation.html

 

Installation | Leading Open-Source APM

To set up your very own Pinpoint instance you can either download the build results from our latest release, or manually build from your Git clone. In order to run your own Pinpoint instance, you will need to run below components: HBase (for storage) Pinpo

naver.github.io

1. 자바 6 ~ 9 까지 설치 후 JAVA_X_HOME 설정

2. mvnw 명령어를 사용하여 빌드

3. 설치 폴더/quickstart/bin 아래

   - ./start-hbase.sh (DB 시작)

   - ./init-hbase.sh (Table 생성 작업으로 최초 한번)

   - ./start-collector.sh (콜렉터 시작)

   - ./start-web.sh

===== TEST App 수행 ====

   - ./start-testapp.sh

 

4. 접근 UI

    WEB UI : http://localhost:28080

    TEST UI : http://localhost:28081

 

5. Stop (START 반대)

  설치 폴더/quickstart/bin 아래

   ./stop-testapp.sh

   ./stop-web.sh

   ./stop-collector.sh

   ./stop-hbase.sh

 

 

반응형
반응형

무료 DB 접근툴로 역 ERD도 정상적으로 잘 그려지는것을 확인하였습니다.

 

아무래도 한국어가 지원하다보니 뭔가 보여지는 모습도

 

산출물 형태를 띄고 있어 맘에 듭니다.

 

특징

 

1. 역 ERD 아주 잘 그려짐

2. 여러가지 DB를 웹 상에서 가능

3. 웹 상으로 띄우기 때문에 여러사람이 사용 가능

 

라이선스 : 일반버전 LGPL 라이선스 

 

소스 및 컴파일 다운로드 주소

https://sourceforge.net/projects/tadpoledbhub/

 

Tadpole DB Hub

Download Tadpole DB Hub for free. Web based Database collboration tools. Original home : https://github.com/hangum/TadpoleForDBTools It is a tool to manage Altibase, Amazon RDS, Apache Hive, Apache Tajo, MongoDB, CUBRID, MariaDB, MySQL, Oracle, MSSQL, SQLi

sourceforge.net

 

https://www.tadpolehub.com/tadpole

 

TadpoleHub | tadpolehub

라이브러리 aws-java-sdk-1.4.7 입니다. 작성되는 시점에서 최신 버전입니다. 

www.tadpolehub.com

 

 

 

오픈소프 버전 vs 엔터프라이즈 버전 차이

https://www.oss.kr/oss_case/show/2b6ac347-f8d4-4fc0-9c5c-33d56745f377

 

[공개SW 스타트업/테드폴허브]올챙이가 대왕개구리 되는 그날까지 - 공개SW 포털

올챙이가 대왕개구리 되는 그날까지 백지영/디지털데일리 엔터프라이즈 솔루션부 팀장/jyp@ddaily.co.kr 시높시스와 가트너 등 시장조사기관의 조사에 따르면 상용 소프트웨어(S...

www.oss.kr

 

 

반응형

'Database' 카테고리의 다른 글

「SQLP 핵심노트」 Ⅰ & Ⅱ 출간  (0) 2021.09.08
무료 ERD 툴 ERMASTER  (0) 2019.08.08
damo 암호화 컬럼 복원시 주의사항  (0) 2017.08.20
Sybase IQ Administrator 사용 Script  (0) 2012.10.18
JNDI Log4SQL 적용 예...  (0) 2011.04.21
반응형

웹 UI 기반의 모니터링 솔루션으로 다양한 서버 상태 모니터링 및 재기동도 가능합니다.

 

(번역기)

 

웹 브라우저에서 서버를 보고 마우스로 시스템 작업을 수행하십시오. 
컨테이너를 시작하고, 스토리지를 관리하고, 네트워크를 구성하고, 로그를 검사하는 것은 쉽습니다.

언제든지 터미널과 웹 인터페이스 사이를 이동할 수 있습니다. 
Cockpit에는 터미널이 내장되어 있습니다.

터미널에서 Cockpit을 ​​통해 시작된 서비스를 중지 할 수 있습니다. 


서버 상태를 즉시 이해하십시오. 
Cockpit 개요 페이지에는 현재 통계 및 시스템 상태가 표시됩니다.

여러 서버 를 동시에 모니터링하고 관리 합니다 . 
새 호스트를 추가하면 기본 서버가 친구를 돌보게됩니다.

성가신 문제를 쉽게 해결하십시오.

- 네트워크 문제 진단
- 오작동하는 가상 시스템 파악 및 대응
- 한 번의 클릭으로 SELinux 로그를 검사하고 일반적인 위반 사항을 수정

 

 

 

 

설치 가능 정보 : https://cockpit-project.org/running.html

 

Running Cockpit — Cockpit Project

Cockpit makes it easy to administer your GNU/Linux servers via a web browser.

cockpit-project.org

 

다운로드 URL : https://cockpit-project.org

 

Cockpit Project — Cockpit Project

Cockpit makes it easy to administer your GNU/Linux servers via a web browser.

cockpit-project.org

 

 

반응형

'OS > Centos' 카테고리의 다른 글

ss 명령어 사용법  (0) 2020.04.09
네트워크 파라미터 관련  (0) 2020.04.09
Centos 7 Firewall-cmd 관련 정보들  (0) 2019.05.08
Centos 7 서버 설정 하기  (0) 2019.04.17
VirtualBox 에서 Centos 7 초기 설치 후 설정하기  (0) 2019.03.07
반응형

MariaDB와 Mysql 성능을 테스트하기 위해

 

HammerDB를 사용하다가

 

보니...

 

정작 중요한 my.cnf 설정이 정상적인가? 물음에 도달하게 되었습니다.

 

정확한 설정값을 위해 자동 튜닝 스크립트를 제공하는 사이트를 발견하였습니다.

 

보통 정상적으로 튜닝 범주라고 체크 할려면 48시간이상 이용해야 한다는 사실은 존재합니다.

 


 

virtualbox 상에서 실행한 결과 (OK : 정상 / !! 설정 이상 / -- SKIP)

 

 >>  MySQLTuner 1.7.15 - Major Hayden <major@mhtx.net>
 >>  Bug reports, feature requests, and downloads at http://mysqltuner.com/
 >>  Run with '--help' for additional options and output filtering

[--] Skipped version check for MySQLTuner script
[OK] Logged in using credentials passed on the command line
[OK] Currently running supported MySQL version 10.3.17-MariaDB
[OK] Operating on 64-bit architecture

-------- Log file Recommendations ------------------------------------------------------------------
[--] Log file: /var/lib/mysql/hammerdb.err(0B)
[!!] Log file /var/lib/mysql/hammerdb.err doesn't exist
[!!] Log file /var/lib/mysql/hammerdb.err isn't readable.

-------- Storage Engine Statistics -----------------------------------------------------------------
[--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
[--] Data in InnoDB tables: 999.9M (Tables: 9)
[OK] Total fragmented tables: 0

-------- Analysis Performance Metrics --------------------------------------------------------------
[--] innodb_stats_on_metadata: OFF
[OK] No stat updates during querying INFORMATION_SCHEMA.

-------- Security Recommendations ------------------------------------------------------------------
[OK] There are no anonymous accounts for any database users
[OK] All database users have passwords assigned
[!!] User 'root@%' does not specify hostname restrictions.
[!!] There is no basic password file list!

-------- CVE Security Recommendations --------------------------------------------------------------
[--] Skipped due to --cvefile option undefined

-------- Performance Metrics -----------------------------------------------------------------------
[--] Up for: 34m 1s (279K q [136.873 qps], 133 conn, TX: 74M, RX: 38M)
[--] Reads / Writes: 50% / 50%
[--] Binary logging is disabled
[--] Physical Memory     : 1.8G
[--] Max MySQL memory    : 15.2G
[--] Other process memory: 0B
[--] Total buffers: 1.4G global + 28.2M per thread (500 max threads)
[--] P_S Max memory usage: 0B
[--] Galera GCache Max memory usage: 0B
[!!] Maximum reached memory usage: 1.7G (94.00% of installed RAM)
[!!] Maximum possible memory usage: 15.2G (845.58% of installed RAM)
[!!] Overall possible memory usage with other process exceeded memory
[OK] Slow queries: 0% (0/279K)
[OK] Highest usage of available connections: 2% (11/500)
[OK] Aborted connections: 1.50%  (2/133)
[!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
[!!] Query cache may be disabled by default due to mutex contention.
[!!] Query cache efficiency: 0.0% (0 cached / 1M selects)
[OK] Query cache prunes per day: 0
[OK] No Sort requiring temporary tables
[OK] No joins without indexes
[OK] Temporary tables created on disk: 0% (22 on disk / 37K total)
[OK] Thread cache hit rate: 90% (13 created / 133 connections)
[OK] Table cache hit rate: 95% (141 open / 147 opened)
[OK] Open file limit used: 1% (59/4K)
[OK] Table locks acquired immediately: 100% (108 immediate / 108 locks)

-------- Performance schema ------------------------------------------------------------------------
[--] Performance schema is disabled.
[--] Memory used by P_S: 0B
[--] Sys schema isn't installed.

-------- ThreadPool Metrics ------------------------------------------------------------------------
[--] ThreadPool stat is enabled.
[--] Thread Pool Size: 2 thread(s).
[--] Using default value is good enough for your version (10.3.17-MariaDB)

-------- MyISAM Metrics ----------------------------------------------------------------------------
[!!] Key buffer used: 18.2% (24M used / 134M cache)
[OK] Key buffer size / total MyISAM indexes: 128.0M/123.0K
[OK] Read Key buffer hit rate: 98.9% (180 cached / 2 reads)

-------- InnoDB Metrics ----------------------------------------------------------------------------
[--] InnoDB is enabled.
[--] InnoDB Thread Concurrency: 4
[OK] InnoDB File per table is activated
[OK] InnoDB buffer pool / data size: 1.0G/999.9M
[!!] Ratio InnoDB log file size / InnoDB Buffer pool size (99.609375 %): 340.0M * 3/1.0G should be equal to 25%
[!!] InnoDB buffer pool <= 1G and Innodb_buffer_pool_instances(!=1).
[--] Number of InnoDB Buffer Pool Chunk : 8 for 8 Buffer Pool Instance(s)
[OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
[OK] InnoDB Read buffer efficiency: 99.84% (26160668 hits/ 26202270 total)
[!!] InnoDB Write Log efficiency: 83.1% (617680 hits/ 743341 total)
[OK] InnoDB log waits: 0.00% (0 waits / 125661 writes)

-------- AriaDB Metrics ----------------------------------------------------------------------------
[--] AriaDB is enabled.
[OK] Aria pagecache size / total Aria indexes: 128.0M/1B

-------- TokuDB Metrics ----------------------------------------------------------------------------
[--] TokuDB is disabled.

-------- XtraDB Metrics ----------------------------------------------------------------------------
[--] XtraDB is disabled.

-------- Galera Metrics ----------------------------------------------------------------------------
[--] Galera is disabled.

-------- Replication Metrics -----------------------------------------------------------------------
[--] Galera Synchronous replication: NO
[--] No replication slave(s) for this server.
[--] Binlog format: MIXED
[--] XA support enabled: ON
[--] Semi synchronous replication Master: OFF
[--] Semi synchronous replication Slave: OFF
[--] This is a standalone server

-------- Recommendations ---------------------------------------------------------------------------
General recommendations:
    Restrict Host for user@% to user@SpecificDNSorIp
    MySQL was started within the last 24 hours - recommendations may be inaccurate
    Reduce your overall MySQL memory footprint for system stability
    Dedicate this server to your database for highest performance.
    Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
    Performance schema should be activated for better diagnostics
    Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
    Consider installing Sys schema from https://github.com/good-dba/mariadb-sys for MariaDB
    Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
Variables to adjust:
  *** MySQL's maximum memory usage is dangerously high ***
  *** Add RAM before increasing MySQL buffer variables ***
    query_cache_size (=0)
    query_cache_type (=0)
    query_cache_limit (> 1M, or use smaller result sets)
    performance_schema = ON enable PFS
    innodb_log_file_size should be (=85M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
    innodb_buffer_pool_instances (=1)

 


Perl로 작성된 쉘이 아래 주소에 있으며,

 

https://github.com/major/MySQLTuner-perl

 

major/MySQLTuner-perl

MySQLTuner is a script written in Perl that will assist you with your MySQL configuration and make recommendations for increased performance and stability. - major/MySQLTuner-perl

github.com

 

2019.08.14 

mysqltuner.pl
0.22MB

 

실행법

#> perl mysqltuner.pl --user root --pass='root'

 

지원하는 DB는

 

Test result are available here: Travis CI/MySQLTuner-perl

  • MySQL 8 (partial support, password checks don't work)
  • MySQL 5.7 (full support)
  • MySQL 5.6 (full support)
  • MariaDB 10.3 (full support)
  • MariaDB 10.2 (full support)
  • MariaDB 10.1 (full support)
  • MariaDB 10.0 (full support, 6 last month support)
  • Percona Server 5.7 (full support)
  • Percona Server 5.6 (full support)
  • Percona XtraDB cluster (full support)
  • MySQL 3.23, 4.0, 4.1, 5.0, 5.1, 5.5 (partial support - deprecated version)
  • Perl 5.6 or later (with perl-doc package)
  • Unix/Linux based operating system (tested on Linux, BSD variants, and Solaris variants)
  • Windows is not supported at this time (Help wanted !!!!!)
  • Unrestricted read access to the MySQL server (OS root access recommended for MySQL < 5.1)
  • CVE vulnerabilities detection support from https://cve.mitre.org

 

반응형
반응형

1. VirusTotal 사이트 검사

https://www.virustotal.com/gui/home/url

 

VirusTotal

 

www.virustotal.com

 

2. W3C 통합 검사기

 

https://validator.w3.org/unicorn/?ucn_lang=ko#validate-by-uri+task_conformance+with_options

 

Unicorn

Nu Html Checker is now the default, for markup other than HTML5 you may use the legacy Markup Validator through custom task settings.

validator.w3.org

3. 통합 진단 클리닉

통합 진단 클리닉이란?

홈페이지 URL  파일을 통하여 홈페이지에 존재하는 액티브X,  표준,  연결성,  개방성에 대한 진단 결과를 제공 합니다. 진단 결과를 통해  취약점에 위배되는 사항에 대하여 파악하고 개선할  있습니다.

진단 항목

  • 액티브X 진단 : 액티브X 사용여부를 진단합니다.
  •  표준 진단 :  표준 준수여부를 진단합니다.
  •  연결성 진단 : HTML 소스내부 링크  앵커 유효성을 진단합니다.
  •  개방성 진단 : robots.txt 구문  구조를 검사하고 해당 URL의 접근을 허용하는지 진단합니다.

 

 

https://www.koreahtml5.kr/front/diagnosis/diagnosticUrl.do

 

KOREA HTML5 |

HTML5 소개하고 동향정보와 활용정보, 교육안내 등 관련 정보 제공

www.koreahtml5.kr

 

4. 인증서 체커

 

인증서가 정상 설치되었는지 체크하는 사이트

 

https://www.websiteplanet.com/ko/webtools/ssl-checker/

 

무료 SSL 인증서 체커 – 귀하의 SSL 설치를 확인해보세요

다음 무료 SSL 체커에 도메인 또는 URL을 기입하면, 귀하의 서버 내의 SSL 인증서 설치 문제를 확인할 수 있습니다.

www.websiteplanet.com

 

5. 사이트 SSL 등급 체크

 

https://www.ssllabs.com/ssltest/

 

SSL Server Test (Powered by Qualys SSL Labs)

SSL Server Test This free online service performs a deep analysis of the configuration of any SSL web server on the public Internet. Please note that the information you submit here is used only to provide you the service. We don't use the domain names or

www.ssllabs.com

 

 

반응형
반응형

Eclipse 기반에 추가 설치를 통해 무료 ERD 툴을 사용할 수 있습니다.

 

장점 : 많은 Database를 지원

단점 : 정렬 기능, 물리 및 논리 변환 기능등 상세하기 조작은 어려웠습니다.

 

단순하게 논리 ERD를 DB로 부터 읽어서 역으로 바로 그려줄수 있는 장점이 있습니다.

(추가 작업을 하면 되겠지만 상세하게 지원되는 DB는 다른것 같습니다.)

 

1. Eclipse를 설치합니다.

   Eclipse IDE for Enterprise Java Developers 

 

2. Eclipse 실행 후 Help => Install New Software 선택

   관련 Repository 위치를 

   http://ermaster.sourceforge.net/update-site 

   추가 후 검색되어 나오는

   ERMaster를 설치합니다.

 

3. 이클립스 재시작 후

   신규 프로젝트를 생성합니다.

   General --> Project (임의의 이름을 정하고 생성합니다.)

 

   그후

   프로젝트 -> New -> Other -> ERMaster 선택 -> 종속될 프로젝트 (3번 처음 시작할 때 만든 프로젝트 선택)

   선택 합니다.

 

   Database 선택 부분

 

   Tibero 예)

   데이터베이스 : StandardSQL

   

   화면이 뜨면 바탕화면에서 마우스 우클릭

     => 가져오기 -> 데이터베이스

       

   3.1 DB 정보 입력

   데이터 베이스 : StandardSQL

 

   (DBA 문의)

   데이터베이스 명 : 사용하는 데이터베이스 명 입력

   사용자 명 : 사용자명 입력

   패스워드 :  패스워드입력

   포트번호 : 8629 (디폴트 8629)

 

   만약 JDBC 관련 입력이 안된다면 창을 닫고 다시 선택하면 활성화 됩니다.

 

   JDBC URL : tibero:thin:@<DB 아이피>:<포트번호>:<SID>

   JDBC 드라이버 클래스 이름 : com.tmax.tibero.jdbc.TbDriver

   

   JDBC 드라이버 (tibero 6 용)

   

tibero6-jdbc-14.jar
1.39MB

    

   Next 버튼으로 연결

   

   가져올 스키마, 개체 선택, 시퀀스 포함하면 오류발생

 

   기타 테이블 개수가 많은경우 오류가 발생합니다.

   

   => workspace 밑에 .matadata 밑에 .log 파일을 열면 상세 원인을 분석 가능합니다.

 

   급하게 찾고 정리한 내용이라 상세 옵션이나 설정은 인터넷을 검색하시면 더욱 좋습니다.!  

   

   끝.

반응형

'Database' 카테고리의 다른 글

「SQLP 핵심노트」 Ⅰ & Ⅱ 출간  (0) 2021.09.08
무료 DB 접근 툴  (0) 2019.08.19
damo 암호화 컬럼 복원시 주의사항  (0) 2017.08.20
Sybase IQ Administrator 사용 Script  (0) 2012.10.18
JNDI Log4SQL 적용 예...  (0) 2011.04.21

+ Recent posts