"Mobius"의 두 판 사이의 차이
둘러보기로 가기
검색하러 가기
잔글 (→사전 준비 사항) |
잔글 (→Mosquitto 설치) |
||
44번째 줄: | 44번째 줄: | ||
=== Mosquitto 설치 === | === Mosquitto 설치 === | ||
+ | |||
+ | yum -y install mosquitto mosquitto-devel php71-php-pecl-mosquitto | ||
+ | |||
+ | systemctl enable mosquitto.service | ||
+ | systemctl restart mosquitto.service | ||
+ | systemctl status mosquitto.service | ||
+ | |||
+ | #--- Mosquitto 설치 확인 | ||
+ | mosquitto_sub.exe -h localhost -t /mytopic/1 | ||
+ | mosquitto_pub.exe -h localhost -t /mytopic/1 -m "Hello MQTT test" | ||
+ | |||
+ | vi /etc/mosquitto/mosquitto.conf | ||
+ | listener 8883 #--- SSL 적용시 사용 | ||
+ | cafile /etc/mosquitto/ca_certificates/ca-crt.pem | ||
+ | certfile /etc/mosquitto/certs/server-crt.pem | ||
+ | keyfile /etc/mosquitto/certs/server-key.pem | ||
+ | |||
+ | password_file /etc/mosquitto/pwfile.example #--- 인증용 Password 파일 | ||
+ | acl_file /etc/mosquitto/aclfile.example #--- ACL 파일 | ||
=== Mobius 설치 === | === Mobius 설치 === |
2018년 9월 12일 (수) 17:52 판
Mobius
CentOS에서 Mobius 설치
VirtualBox 가상 서버 생성
mkdir -p /work/vagrant/OBCon-SCADA cd /work/vagrant/OBCon-SCADA vi Vagrantfile Vagrant.configure("2") do |config| config.vm.box = "centos/7" config.vm.network "forwarded_port", guest: 7577, host: 7577 config.vm.network "forwarded_port", guest: 7578, host: 7578 config.vm.network "forwarded_port", guest: 7579, host: 7579 config.vm.network "forwarded_port", guest: 7582, host: 7582 config.vm.network "forwarded_port", guest: 1883, host: 1883 config.vm.network "forwarded_port", guest: 8883, host: 8883 config.vm.network "forwarded_port", guest: 3306, host: 3306 config.vm.network "forwarded_port", guest: 80, host: 80 config.vm.network "forwarded_port", guest: 443, host: 443 config.vm.network "forwarded_port", guest: 22, host: 2022 config.vm.provider "virtualbox" do |vb| vb.name = "SuiteCRM" vb.memory = "3072" vb.cpus = "4" end end vagrant init vagrant up vagrant ssh
- SSH 접속을 위한 Private key 파일 : /work/vagrant/OBCon-SCADA/.vagrant/machines/default/virtualbox/private_key
사전 준비 사항
- CentOS 7 초기 환경 설정
- MariaDB 설치
기타 준비 사항
Mosquitto 설치
yum -y install mosquitto mosquitto-devel php71-php-pecl-mosquitto systemctl enable mosquitto.service systemctl restart mosquitto.service systemctl status mosquitto.service #--- Mosquitto 설치 확인 mosquitto_sub.exe -h localhost -t /mytopic/1 mosquitto_pub.exe -h localhost -t /mytopic/1 -m "Hello MQTT test" vi /etc/mosquitto/mosquitto.conf listener 8883 #--- SSL 적용시 사용 cafile /etc/mosquitto/ca_certificates/ca-crt.pem certfile /etc/mosquitto/certs/server-crt.pem keyfile /etc/mosquitto/certs/server-key.pem password_file /etc/mosquitto/pwfile.example #--- 인증용 Password 파일 acl_file /etc/mosquitto/aclfile.example #--- ACL 파일