yearning2.0 (go-language version) deployment

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_42859864/article/details/100102956

1. Preparing the environment:
(1) mysql5.7 and above
(2) advance built "Yearning" library
you may need to refer to this article
2, Yearning download
(Note: Please choose the latest version Select Assets of Yearning-xxxlinux-amd64 Download the .zip package)
Here Insert Picture Description
3, unzip
unzip command (do not know can leave a message)
4, fill in the configuration file

cat conf.toml
[Mysql]
Db = "Yearning"
Host = "127.0.0.1"            //你的数据库IP
Port = "3306"										
Password = "xxxx"
User = "root"

[General]   #数据库加解密key,只可更改一次。
SecretKey = "dbcjqheupqjsuwsm"

About SecretKey
SecretKey is a token / password database encryption / decryption of salt.

Recommended for all users before the initial installation Yearning SecretKey change (no change there will be a security risk)

Format: uppercase and lowercase letters can, length must be 16

Special Note:
This key can only be changed during the initial installation later can not be changed again before such changes cause once again been stored in the data source password can not be decrypted, eventually leading to not obtain the relevant data source information!!

5, started
(1) to initialize the database

./Yearning -m

To initialize again, please delete the yearning table, otherwise repeat the invalid
(2) to start the service

./Yearning -s -b "你的IP" -p "8000"

Open Open your browser http: // your IP: 8000
default password: admin / Yearning_admin

Finish!

Frequently Asked Questions:
1, Centos appear -bash: unzip: command not found
the solution
2, not closed Selinux, be sure to turn off, or open URLs.
Solution
3, turn off the firewall
solutions

Guess you like

Origin blog.csdn.net/qq_42859864/article/details/100102956