分两种:一次性的定时任务、周期性的定时任务。 一次性的定时任务,又称at定时任务,命令为atd ,这里d是deamon的首字母,守护的意思,指守护进程;其实很多程序都是以d结尾,如httpd、memcached等等。 一般Linux都默认安装了atd服务,可以通过 chkconfig --list ... ...
分类:
系统相关 时间:
2017-01-09 00:00:16
阅读次数:
387
Redirecting to /bin/systemctl stop iptables.service systemctl stop iptables.service ?????? centos从7开始默认用的是firewalld,这个是基于iptables的,虽然有iptables的核心,但是ip ...
分类:
其他好文 时间:
2017-01-05 01:14:35
阅读次数:
181
1、直接关闭防火墙 systemctl stop firewalld.service; #停止firewall systemctl disable firewalld.service; #禁止firewall开机启动 2、安装并启动 iptables service,以及设置开机自启 yum -y ...
分类:
其他好文 时间:
2017-01-04 14:00:50
阅读次数:
165
开启防火墙 当我们修改了某些配置之后(尤其是配置文件的修改),firewall并不会立即生效。可以通过两种方式来激活最新配置 systemctl restart firewalld 和 firewall-cmd --reload 两种方式,前一种是重启firewalld服务,建议使用后一种“重载配置 ...
分类:
系统相关 时间:
2017-01-01 16:21:28
阅读次数:
365
1、firewalld的基本使用 1、firewalld的基本使用 1、firewalld的基本使用 启动: systemctl start firewalld 查看状态: systemctl status firewalld 停止: systemctl disable firewalld 禁用: ...
分类:
其他好文 时间:
2016-12-28 12:36:02
阅读次数:
191
1.首先,我们需要两台虚拟机(CentOS7,Linux文本)。 2.给两台虚拟机配置网络环境分别为桥接模式 CentOS7 ip为192.168.100.137、24,linux文本ip为192.168.100.237/24,然后各自配置yum源配置文件(http://www.cnblogs.co ...
分类:
数据库 时间:
2016-12-27 20:33:52
阅读次数:
280
配置yum 使用yum命令来安装时间同步 yum install ntp -y 进入 /etc/ntp.conf 蓝色圈内的内容,在前面加上#号,在后方添加一行 重启ntpd服务:systemctl restart ntpd.service 时间同步完成 ...
分类:
其他好文 时间:
2016-12-27 20:05:17
阅读次数:
160
准备工作: 安装yum库,将下载好的 mysql5.7.16 的安装包纺织 /opt 目录下 一丶将mysql5.7.16 的5个程序文件进行安装(这样不用解决centos7自带的mariadb数据库的依赖) 二丶重启MySQL服务 三丶查找MySQL服务的临时密码 找到A temporary pa ...
分类:
数据库 时间:
2016-12-26 21:15:45
阅读次数:
247
1、在本地虚拟机上上传mysql的5个安装包 2、查看opt目录下是否有这5个安装包 1 2 yum install /var/opt/mysql-community-* -y //安装MySQL <br>systemctl restart mysqld.service //重启服务 1 2 yum ...
分类:
数据库 时间:
2016-12-26 18:48:30
阅读次数:
219
我在虚拟机上安装了CentOS7操作系统,将 /etc/sysconfig/network-scripts/ifcfg-eth0 文件配置静态 IP 为192.168.1.210,如图1: 然后我用 "systemctl restart network" 命令重新启动了网络,用"ifconfig"命 ...
分类:
其他好文 时间:
2016-12-24 17:04:19
阅读次数:
438