RHEL7: MariaDB的简单安装与使用

安装

[root@s1 ~]# yum group install mariadb mariadb-client -y

[root@s1 ~]# systemctl enable mariadb.service

[root@s1 ~]# systemctl start mariadb.service

[root@s1 ~]# mysql_secure_installation
Set root password? [Y/n] Y
New password: 
Re-enter new password: 
(按默认配置一路回车下去就行)

[root@s1 ~]# firewall-cmd --permanent --add-service=mysql
[root@s1 ~]# firewall-cmd --reload 

[root@s1 ~]# ss -tulnp | grep mysql
tcp    LISTEN     0      50                     *:3306                  *:*      users:(("mysqld",10844,13))

继续阅读“RHEL7: MariaDB的简单安装与使用”

RHEL7: NTP

参考文档

http://www.ntp.org/rfc.html
http://linux.vbird.org/linux_server/0440ntp.php

查看日期时间及NTP概况

[root@rhel7-0 ~]# timedatectl
      Local time: Wed 2014-12-31 12:47:07 EST
  Universal time: Wed 2014-12-31 17:47:07 UTC
        RTC time: Sun 2015-01-04 08:51:13
        Timezone: America/New_York (EST, -0500)
     NTP enabled: n/a
NTP synchronized: no
 RTC in local TZ: no
      DST active: no
 Last DST change: DST ended at
                  Sun 2014-11-02 01:59:59 EDT
                  Sun 2014-11-02 01:00:00 EST
 Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2015-03-08 01:59:59 EST
                  Sun 2015-03-08 03:00:00 EDT

继续阅读“RHEL7: NTP”