구조도구성품IoT devices: 라즈베리파이 등 MQTT ClientMQTT Broker: EMQ (https://www.emqx.io)Kafka producer: Kafka Junction (https://github.com/brycemcd/MQTT-to-Kafka)Kafka consumer: Logstash + kafka input plugin + elasticsearch output pluginKafka (+ Zookeeper)Elastic stack프로세스IoT 기기에서 MQTT 프로토콜로 MQTT Broker 에 hello-kafka 토픽에 데이터 전송(=pub). Kafka Producer 인 Kafka bridge 에서 MQTT Broker (종류 중 Emqx 사용함)의 hello-kafk..
$ dpkg -L (패키지명)
Master server$ mysql -uroot -pmysql> GRANT REPLICATION SLAVE ON *.* to 'repl'@'172.%' IDENTIFIED BY 'repl-password-here';mysql> flush tables with read lock;mysql> reset master;# Make note of the file name and file positionmysql> show master status;$ /etc/init.d/mysql stop$ xfs_freeze -f /mnt/mysql# Take AWS EC2 EBS snapshot and when it begins do next step$ xfs_freeze -u /mnt/mysql$ /etc/init.d/m..
TL;DR (요약)터미널에서 mongo Repl 진입mongo> db.fsyncLock() 명령으로 mongoDB 얼리기$ xfs_freeze -f /mnt/mdbtake the EBS 스냅샷EBS 스냅샷이 pending 상태로 뜨면$ xfs_freeze -u /mnt/mdbmongo> db.fsyncUnlock() 명령으로 mongoDB 얼리기 해제 절차자동 Sync 방법:increase ulimithttps://medium.com/@muhammadtriwibowo/set-permanently-ulimit-n-open-files-in-ubuntu-4d61064429aclean shutdown mongod instance (use either a or b below)mongo> db.shutdownSer..
0. ssh 접속 불가시 ec2 instance 상태 확인 ec2 instance 선택 -> Actions -> Instance Settings -> Get Instance Screenshot 1. instance 를 stop2. root 볼륨을 Detach3. 볼륨의 스냅샷 생성4. 스냅샷으로부터 기존보다 큰 크기로 새 볼륨 생성5. 새 볼륨을 인스턴스에 Attach, Device 입력란에 /dev/sda1 입력(해야 root 볼륨으로 붙음).6. 인스턴스 start7. 디스크 공간 확인하고 확장되었다면 마침. 아니면 다음 과정으로.8. resize2fs 등으로 확장 작업 시행.9. 재시작
composer clearcachecomposer global update
아래 명령들을 각각 시도해보았다.$ chown -R $(whoami) ~/.npm$ npm install --cache /tmp/empty-cache $ npm i --unsafe-perm$ npm i --unsafe-perm --cache /tmp/empty-cache위 명령들로도 해결이 안되는 경우가 발생하였고다른 node.js 패키지 관리자인 yarn 으로 갈아타니 깔끔하게 해결되었다.
- Total
- Today
- Yesterday
- Android
- sencha touch
- ASP
- JQuery
- CSS
- nodejs
- Linux
- classic asp
- javascript
- PHP
- nginx
- macos
- IOS
- mssql
- Wordpress
- JSON
- 워드프레스
- Prototype
- 한글
- iphone
- Docker
- laravel
- git
- IE
- Mac
- Debug
- 안드로이드
- iis
- API
- centos
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |