在centos7下忘记了Mairadb的密码
如下图所示
用vi编辑器或者nano
centos7好像没有自带nano用 yum -y install nano来安装
之后打开
nano /etc/my.cnf
添加如下图所示
skip-grant-tables之后保存退出
systemctl restart mariadb.service
重启服务
重新设置...
分类:
数据库 时间:
2015-07-19 16:35:23
阅读次数:
203
由于工作需要,需要学习php,本来想安装lamp的但是考虑到现在nginx服务器有良好的性能且应用广泛。这里我决定搭建Linux(CentOS7+Nginx+MySQL+PHP)下的web服务器。一、安装httpd。 yum install -y httpd
安装完成之后使用以下命令启动httpd服务:
systemctl start httpd.service #启动apache...
分类:
数据库 时间:
2015-07-19 06:39:17
阅读次数:
202
一、设置命令行级别方法[root@localhost~]#systemctlset-defaultmulti-user.targetrm‘/etc/systemd/system/default.target‘ln-s‘/usr/lib/systemd/system/multi-user.target‘‘/etc/systemd/system/default.target‘[root@localhost~]#shutdown-rnow二、设置窗口级别方法:[root@l..
分类:
其他好文 时间:
2015-07-18 20:05:05
阅读次数:
118
查询所有单元的状态:[root@rhce7 ~]# systemctl UNIT LOAD ACTIVE SUB DESCRIPTIONproc-sys-fs-binfmt_misc.a...
分类:
其他好文 时间:
2015-07-17 00:08:59
阅读次数:
386
#yum?-y?install?qemu-kvm?libvirt?virt-install?bridge-utils
#lsmod?|?grep?kvm??#?make?sure?modules?are?loaded
#systemctl?start?libvirtd
#systemctl?enable?libvirtd 算了,http://li...
分类:
Windows程序 时间:
2015-07-16 12:07:12
阅读次数:
1187
Job for openstack-glance-api.service failed. See 'systemctl status openstack-glance-api.service' and 'journalctl -xn' for deta
openstack-glance-api.service start request repeated too quickly, refusing to start...
分类:
Windows程序 时间:
2015-07-12 12:54:47
阅读次数:
1295
从 sysvinit 到 systemd近年来,Linux 系统的 init 进程经历了两次重大的演进,传统的 sysvinit 已经淡出历史舞台,新的 init 系统 UpStart 和 systemd 各有特点,而越来越多的 Linux 发行版采纳了 systemd。本文简要介绍了这三种 ini...
分类:
系统相关 时间:
2015-07-12 01:44:17
阅读次数:
285
从 sysvinit 到 systemd近年来,Linux 系统的 init 进程经历了两次重大的演进,传统的 sysvinit 已经淡出历史舞台,新系统 UpStart 和 systemd 各有特点,而越来越多的 Linux 发行版采纳了 systemd。本文简要介绍了这三种 init 系统的使用...
分类:
系统相关 时间:
2015-07-12 01:43:16
阅读次数:
189
近年来,Linux 系统的 init 进程经历了两次重大的演进,传统的 sysvinit 已经逐渐淡出历史舞台,新的 UpStart 和 systemd 各有特点,越来越多的 Linux 发行版采纳了 systemd。本文简要介绍了这三种 init 系统的使用和原理,每个 Linux 系统管理员和系...
分类:
系统相关 时间:
2015-07-12 01:38:37
阅读次数:
269
http://www.ibm.com/developerworks/cn/views/linux/libraryview.jsp?sort_by=&show_abstract=true&show_all=&search_flag=&contentarea_by=Linux&search_by=浅析+...
分类:
系统相关 时间:
2015-07-10 14:44:09
阅读次数:
130