解决方法:vim /etc/my.cnf 文件,加入 : sql-mode="NO_ENGINE_SUBSTITUTION" , Systemctl restart mysqld 进入mysql的之后可执行: select @@sql_mode 查询当前使用的sql_mode是什么
分类:
数据库 时间:
2016-03-04 11:45:24
阅读次数:
251
1.环境: hadoop 2.6.0 jdk 1.7x64 centos7 eclipse j2ee 2.安装hadoop 1.关闭防火墙 centos7.0以上使用此命令 systemctl start firewalld.service #临时关闭 systemctl disable firew
分类:
系统相关 时间:
2016-03-04 01:53:11
阅读次数:
207
CentOS 6和CentOS 7都可以定义开机启动哪些服务,但CentOS 6的命令是chkconfig,CentOS 7是systemctl。 本文将介绍两种命令的实现方式。 一、CentOS 6的服务 在CentOS 6下编写一个服务http,位于/etc/init.d目录下,具体的脚本如下:...
分类:
其他好文 时间:
2016-02-26 22:11:24
阅读次数:
289
前言 系统 centos 7.0(x86_64) 数据库 oracle 11g(x86_64) oracle 11g包下载:http://pan.baidu.com/s/1c0JHYhi Author:zzm 1.配置防火墙 方法1: 关闭防火墙(不推荐,不安全) Systemctl disable
分类:
数据库 时间:
2016-02-25 00:07:28
阅读次数:
499
从最新版本的linux系统开始,默认的是 Mariadb而不是mysql! 使用系统自带的repos安装很简单: yum install mariadb mariadb-server systemctl start mariadb ==> 启动mariadb systemctl enable mar
分类:
数据库 时间:
2016-02-22 19:06:54
阅读次数:
166
在centos7用MariaDB代替了mysql数据库 1、确保机器上有yum,执行安装命令 yum install mariadb maraidb-server 2、启动mariadb systemctl start mariadb #设置开机启动 systemctl enable mariadb
分类:
数据库 时间:
2016-02-20 14:41:46
阅读次数:
235
CentOS 7的服务systemctl脚本存放在:/usr/lib/systemd/,有系统(system)和用户(user)之分,像需要开机不登陆就能运行的程序,还是存在系统服务里吧,即:/usr/lib/systemd/system目录下 每一个服务以.service结尾,一般会分为3部分:[
分类:
其他好文 时间:
2016-02-07 02:20:00
阅读次数:
229
在RHEL7.2中,通过以下命令设置开机进入图形界面或者命令行界面: systemctl set-default graphical.target #设置开机默认进入图形界面 systemctl set-default multi-user.target #设置开机默认进入命令行模式,不运行X Wi
分类:
其他好文 时间:
2016-02-05 01:24:35
阅读次数:
170
今天,启动MySQL服务器失败,如下所示: [root@spark01 ~]# /etc/init.d/mysqld start Starting mysqld (via systemctl): Job for mysqld.service failed because the control pr
分类:
数据库 时间:
2016-01-28 09:20:05
阅读次数:
444
问题:Jobforhttpd.servicefailed.See‘systemctlstatushttpd.service‘and‘journalctl-xn‘fordetails.问题的状态:(1)重启[root@iZ25dmhrwpjZ~]#systemctlrestarthttpd.serviceJobforhttpd.servicefailed.See‘systemctlstatushttpd.service‘and‘journalctl-xn‘fordetails.查(2)..
分类:
Web程序 时间:
2016-01-24 07:06:16
阅读次数:
1701