Centos7安裝emqx遇上的小坑

2021-09-24 00:02:24 字數 1286 閱讀 7309

環境:centos7

yum install -y  openssl
然後直接啟動即可大功告成!!!

/etc/emqx.conf

## allow anonymous authentication by default if no auth plugins loaded.

## notice: disable the option in production deployment!

#### value: true | false

allow_anonymous =

false

配置 etc/plugins/emqx_auth_mysql.conf

## variables:

## - %u: username

## - %c: clientid

## - %cn: common name of client tls cert

## - %dn: subject of client tls cert

## 這裡新增上加鹽字段

auth.mysql.auth_query =

select password,salt from mqtt_user where username =

'%u' limit 1

## auth.mysql.auth_query = select password_hash as password from mqtt_user where username = '%u' limit 1

## password hash.

#### value: plain | md5 | sha | sha256 | bcrypt

##auth.mysql.password_hash = sha256

## sha256 with salt prefix

## auth.mysql.password_hash = salt,sha256

## bcrypt with salt only prefix

## auth.mysql.password_hash = salt,bcrypt

#配置加鹽

## sha256 with salt suffix

auth.mysql.password_hash = sha256,salt

## pbkdf2 with macfun iterations dklen

最容易出現的埠衝突是8080埠,這個埠的話需要在plus模組中配置

centos7 安裝centos桌面

一 輸入命令 yum groupinstall gnome desktop graphical administration tools 二 設定系統啟動等級。systemctl get default 獲取當前系統執行形式,會顯示multi user.target 命令列終端 或者 graphic...

centos7安裝nginx(yum安裝)

感興趣的可以檢視用壓縮包安裝的過程 1 通過檢視當前linux核心以及版本號進行獲取nginx的rpm安裝源適配。uname a2 獲取nginx相關的rpm源 防止版本號不對應產生的各種問題 rpm uvh3 yum安裝nginx yum install nginx等待安裝完成。1 安裝完成後,n...

CentOS7安裝docker(yum安裝)

1.中文文件 2.檢視linux版本 cat etc redhat release3.是否聯網 這裡yun安裝,不聯網gg 4.解除安裝舊版本 sudo yum remove docker docker client docker client latest docker common docker...