在chkconfig--addservername的时候老是提示服务不支持chkconfig 经过查找,解决办法如下。1、脚本tomcatstart前三行如下:#!/bin/bash#chkconfig:23458196#description:Starttomcat第一行,告诉系统使用的shell,所有的shell脚本都是这样。第二行,chkconfig后面有三个参数2345,81和96告诉ch
分类:
其他好文 时间:
2018-04-13 12:06:54
阅读次数:
385
systemctl -- 系统服务管理器 systemctl -- 系统服务管理器 systemctl 是系统服务管理器命令,它实际上将 service 和 chkconfig 这两个命令组合到一起。直接运行命令可以列出所有正在运行的服务,输出列表具有更详细的信息,比如: [root@beyes c ...
分类:
其他好文 时间:
2018-04-11 21:37:10
阅读次数:
225
cron、chkconfig、systemd、unit、target
分类:
其他好文 时间:
2018-04-11 16:06:07
阅读次数:
177
yum install net-tools // 安装网络基础包 yum install ntp systemctl start ntpd ntpdate 10.16.42.7 //更新时间 service nptd start //开启ntp服务 chkconfig --level 23456 n ...
分类:
系统相关 时间:
2018-04-09 18:44:39
阅读次数:
195
1. 禁止加载IPv6模块 # echo "install ipv6 /bin/true" > /etc/modprobe.d/disable-ipv6.conf 每当系统需要加载IPv6模块时,强制执行/bin/true来代替实际加载的模块。 2. 关闭ip6tables # chkconfig ...
分类:
系统相关 时间:
2018-04-07 20:08:18
阅读次数:
224
规则定义 # service iptables start # chkconfig iptables on 想让规则生效,则shell命令行下执行 sh /bin/iptables.sh即可 [root@node3 ~]# cat /bin/iptables.sh ...
分类:
其他好文 时间:
2018-04-07 12:42:23
阅读次数:
147
我们对service和chkconfig两个命令都不陌生,systemctl 是管制服务的主要工具, 它整合了chkconfig 与 service功能于一体。 systemctl is-enabled iptables.servicesystemctl is-enabled servicename ...
分类:
其他好文 时间:
2018-04-06 16:03:14
阅读次数:
172
一、准备工作 现在有3台机器,这里以centos6.8为例,以minimal方式安装 192.168.1.101 192.168.1.102 192.168.1.103 1、在3台节点上都先关闭防火墙 iptables –F chkconfig iptables off setenforce 0 编 ...
分类:
其他好文 时间:
2018-04-05 23:10:13
阅读次数:
221
Linux常用命令(部分) 准备首先安装vmware虚拟机,安装centos镜像文件 1:linux的目录结构(部分) /bin 常用的系统命令目录 /boot 启动命令目录 /etc 配置文件目录 /home 存放除root用户外的其它用户目录 /lib 存放jar包目录 /mnt 挂载目录—挂载 ...
分类:
系统相关 时间:
2018-04-05 16:50:35
阅读次数:
261
1.准备Linux环境 1.1关闭防火墙 #查看防火墙状态 service iptables status #关闭防火墙 service iptables stop #查看防火墙开机启动状态 chkconfig iptables --list #关闭防火墙开机启动 chkconfig iptable ...
分类:
系统相关 时间:
2018-04-04 00:00:19
阅读次数:
282