Continue? [N/y]: y #是否初始化数据库
Create/Upgrade database name 'mogilefs'? [Y/n]: y #是否创建数据库
Grant all privileges to user 'moguser', connecting from anywhere, to the mogilefs database 'mogilefs'? [Y/n]: y #是否创建数据库用户
![image.png](https://upload-images.jianshu.io ... imageView2/2/w/1240)
启动mogstored服务
[root@node1 ~]# service mogstored start
Starting mogstored (via systemctl): [ OK ]
开机器自启动:
[root@node1 ~]# systemctl enable mariadb
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
[root@node1 ~]# systemctl enable mogilefsd
Created symlink from /etc/systemd/system/multi-user.target.wants/mogilefsd.service to /usr/lib/systemd/system/mogilefsd.service.
[root@node1 ~]# chkconfig mogstored on
节点2和节点3上启动
启动服务:
[root@node2 ~]# service mogilefsd start
Starting mogilefsd (via systemctl): [ OK ]
[root@node2 ~]# service mogstored start
Starting mogstored (via systemctl): [ OK ]
开机器自启动:
[root@node2 ~]# chkconfig mogstored on
Created symlink from /etc/systemd/system/multi-user.target.wants/mogilefsd.service to /usr/lib/systemd/system/mogilefsd.service.
[root@node2 ~]# chkconfig mogstored on