Centos7에서 파이썬 3.8.3, Mosquitto 설치

김성훈·2021년 6월 8일
0

파이썬

$ yum install gcc openssl-devel bzip2-devel libffi-devel

$ cd /root

$ wget https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tgz

$ tar xzf Python-3.8.3.tgz

$ cd Python-3.8.3

$ ./configure --enable-optimizations

make altinstall

$ cd /usr/local/bin

$ vi /root/.bashrc

alias python="/usr/local/bin/python3.8"

$ source /root/.bashrc

$ python -v
$ pip3.8 --version

Mosquitto

$ yum install -y epel-release
$ yum install -y mosquitto
$ systemctl start mosquitto
$ systemctl enable mosquitto
$ systemctl status mosquitto

mosquitto 1.6.10 설치됨

// module 설치
$ pip3.8 install paho-mqtt
$ pip3.8 install pymysql

0개의 댓글