Warning: Using a password on the command line interface can be insecure 

에러를 해결하려면

 

https://knight76.tistory.com/entry/mariadbmysqldbWarning-Using-a-password-on-the-command-line-interface-can-be-insecure 처럼 진행해야 한다.

 

[mariadb/mysqldb]Warning: Using a password on the command line interface can be insecure

shell 에서 mysql db접속시 패스워드를 입력하면 mysql 5.6 부터는 Warning 문구가 발생한다. $ mysql #{database} -u#{username} -p#{password} Warning: Using a password on the command line interface can be..

knight76.tistory.com

그러나, 테스트 환경 (CI/CD) 구축때는 조금 꼭 이렇게 하는게 부담스러울 수 있는데..-p패스워드 처럼 편한게 어디 있나.. 

 

그래서 에러 출력만 안나오게 하는 방법이 있다. 2> /dev/null를 이용하는 방법이 좋을 수 있다.

 

 

docker-compose exec -T mysql mysql -uroot -p패스워드 -e "set global general_log=on" 2> /dev/null

 

그러나 확인할 때는 > /dev/null 2>1 를 사용할 수 도 있다. 

 

 is_success=$(docker-compose exec -T mysql mysql -uroot -p패스워드 -e "show databases" > /dev/null 2>1 && echo "true")

 

Posted by '김용환'
,

rabbitmq 버전을 확인하려면 status 커맨드로 확인할 수 있다. 밑에 보이는 버전 명을 참고 한다.

 

$ sudo rabbitmqctl status
Status of node 'rabbit@google-alpha-rabbitmq001'
[{pid,21005},
 {running_applications,
     [{rabbitmq_event_exchange,"Event Exchange Type","3.6.14"},
      {rabbitmq_top,"RabbitMQ Top","3.6.14"},

....



 {rabbit,"RabbitMQ","3.6.14"},

...
Posted by '김용환'
,

https://speakerdeck.com/ewolff/monolith-to-microservices-a-comparison-of-strategies

 

Monolith to Microservices: A Comparison of Strategies

This presentation shows several different strategies to migrate a monolith to a set of microservices.

speakerdeck.com

 

 

Posted by '김용환'
,