星期二, 12月 08, 2020
NOR1
MOSQUITTO1
yum install epel-release
yum install libwebsockets #epel套件
yum install mosquitto
vi mosquitto.conf
#mqtt 服務 port
port 1883
#以下二行為啟用mqtt 的 websockets port (給javascript用)
listener 1893
protocol websockets
persistence false
persistence_location /var/lib/mosquitto/
allow_anonymous true
#存檔
#測試
mosquitto -c /etc/mosquitto/mosquitto.conf
#服務啟動
systemctl start mosquitto
#開機啟動
syetemctl enable mosquitto
#註服務log檔是記在 /var/log/messages 中。
postgresql
yum install epel-release
#連上官網,選擇OS, 版本等即可得到如鑑指令
dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
dnf -qy module disable postgresql
dnf install -y postgresql13-server
/usr/pgsql-13/bin/postgresql-13-setup initdb
systemctl enable postgresql-13
systemctl start postgresql-13
www1
安裝anaconda #目前是python 3.8.5
conda create --name py3.8 python=3.8
vi ~/.bashrc
#最後加上一行
source activate py3.8
#登出/登入 看看命令提示字元前面是否有(py3.8)字樣,有就正常。
conda install numpy
conda install scipy
conda install matplotlib
conda install netcdf4
conda install pandas
conda install pytz
conda install python-dateutil
conda install django
# gdal
conda install -c conda-forge gdal # 有些軟體版本會降
conda install -c conda-forge postgis # 有些軟體版本會降(包含gdal, 所以上面gdal應該不用裝
)
#安裝apache
訂閱:
文章 (Atom)