Build Configuration Reference https://www.cnblogs.com/nmap/p/6219816.html
2 kinds of storage mode Minion Terminal configuration Direct storage and master-side event monitoring storage
The third Way master-side direct configuration file parameters in the library, this is relatively simple. http://blog.51cto.com/tianruyun/1795687
Simply say the third method step:
1. Create a database
CREATE DATABASEsalt
DEFAULT CHARACTER SET UTF8
DEFAULT COLLATE utf8_general_ci;
2. Create a database table
Use salt
;
DROP TABLE IF EXISTS `jids`; CREATE TABLE `jids` ( `jid` varchar(255) NOT NULL, `load` mediumtext NOT NULL, UNIQUE KEY `jid` (`jid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `salt_returns`; CREATE TABLE `salt_returns` ( `fun` varchar(50) NOT NULL, `jid` varchar(255) NOT NULL, `return` mediumtext NOT NULL, `id` varchar(255) NOT NULL, `success` varchar(10) NOT NULL, `full_ret` mediumtext NOT NULL, `alter_time` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, KEY `id` (`id`), KEY `jid` (`jid`), KEY `fun` (`fun`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
3. Authorization
Grant all on salt.* to [email protected] '% ' identified by ' salt ';
4. Configure the Master file
Mysql.host: ' 127.0.0.1 '
Mysql.user: ' Salt '
Mysql.pass: ' Salt '
Mysql.db: ' Salt '
mysql.port:3306
Master_job_cache:mysql
Salt returners back into the database