安装数据库,在centos7中MySQL数据库为mariadb,此次试验需要开启两台Linux虚拟机做数据库的备份(主从复制)两台都安装数据库[root@localhost ~]# yum -y install mariadb*开启数据库[root@localhost ~]# systemctl s... ...
分类:
其他好文 时间:
2017-01-30 17:58:34
阅读次数:
224
1、[root@localhost ~]# yum -y install http* bind* 首先安装httpd和域名解析软件包2、[root@localhost ~]# vi /etc/httpd/conf/httpd.conf 修改httpd配置文件3、 DocumentRoot /www ... ...
分类:
Web程序 时间:
2017-01-25 12:45:24
阅读次数:
311
1.安装启动配置服务及简单使用yum install python-jinja2 salt salt-master salt-minion -ysystemctl start salt-master && systemctl start salt-minion && systemctl enable ...
分类:
其他好文 时间:
2017-01-24 03:46:40
阅读次数:
308
很多情况下因为项目转手或者设备搬迁后,物理机呵呵了,然后你也要呵呵了 1.数据库 vim /etc/my.cnf [mysqld] 下追加(看好位置哦,别直接无脑加到最后) skip-grant-table systemctl restart mariadb mysql use mysql upda ...
分类:
其他好文 时间:
2017-01-24 03:46:19
阅读次数:
195
查看特性firewall-cmd --list-all 查看firewall服务状态systemctl status firewalld firewall-cmd --state 开启端口 firewall-cmd --zone=public --add-port=80/tcp --permanen ...
分类:
其他好文 时间:
2017-01-22 20:16:54
阅读次数:
190
CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service systemctl disable firewalld.service systemctl mask firew ...
分类:
其他好文 时间:
2017-01-19 17:50:56
阅读次数:
246
httpd yum install httpd -y systemctl status httpd systemctl start httpd systemctl stop firewalld Mariadb yum install mariadb-server mariadb-client -y ...
分类:
其他好文 时间:
2017-01-18 12:36:19
阅读次数:
160
Systemd 是 Linux 系统工具,用来启动守护进程,已成为大多数发行版的标准配置。可以通过 systemctl --version 命令来查看使用的版本 常用命令 Supervisor Supervisor是是一个用python写的进程管理程序,不仅仅可以用来管理进程,还可以用来做开机启动。 ...
分类:
其他好文 时间:
2017-01-17 15:26:34
阅读次数:
221
首先配置防火墙 CentOS 7.0默认使用的是firewall作为防火墙 1.关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 2 ...
分类:
其他好文 时间:
2017-01-16 08:21:17
阅读次数:
272
一、配置防火墙,开启80端口、3306端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable fire ...
分类:
其他好文 时间:
2017-01-12 12:44:31
阅读次数:
208