一、yum安装: 1. 在/etc/yum.repos.d/目录创建文件elasticsearch.repo 2. 添加以下内容 3. 执行yum命令:sudo yum install elasticsearch -y 4. 设置开机启动:sudo chkconfig --add elasticse ...
分类:
其他好文 时间:
2018-11-10 00:08:35
阅读次数:
209
1./etc/rc.local 自启动 2.通过chkconfig管理 如何让一个脚本被chkconfig管理 [root@oldboyedu01 ~]# vim /etc/init.d/oldgirld # chkconfig: 2345 99 99 ##这步必须的 vim /etc/init.d ...
分类:
其他好文 时间:
2018-11-07 14:08:36
阅读次数:
399
博主使用的操作系统是最新的CentOS 7,所以可能和网上一些老的博文有一定出入,那是因为版本更新的原因。这里写图片描述1 serviceservice命令用于对系统服务进行管理,比如启动(start)、停止(stop)、重启(restart)、重新加载配置(reload)、查看状态(status) ...
分类:
其他好文 时间:
2018-11-03 18:14:42
阅读次数:
274
学习应该围绕着体系而进行,适当的学习底层,是为了建立体系的连结点,而不是为追底层而底层。 首页 联系 管理 随笔 - 43 文章 - 0 评论 - 2 学习应该围绕着体系而进行,适当的学习底层,是为了建立体系的连结点,而不是为追底层而底层。 学习应该围绕着体系而进行,适当的学习底层,是为了建立体系的 ...
分类:
其他好文 时间:
2018-11-03 02:26:22
阅读次数:
283
如何自己加入脚本并可用chkconfig查看 设置文件名为:case.sh #!/bin/bash#chkconfig: 35 90 10 在三和五模式中开启 . /etc/init.d/functions case $1 in start) action "服务开始启动.." /bin/true ...
分类:
其他好文 时间:
2018-11-02 21:50:37
阅读次数:
177
一 NFS常见服务管理1.1 启动NFS 1 [root@imxhy ~]# systemctl start nfs #CentOS7.x系列启动 2 3 [root@imxhy ~]# service nfs start #CentOS6.x系列启动1.2 状态查看 1 [root@imxhy ~... ...
分类:
其他好文 时间:
2018-11-01 13:38:19
阅读次数:
167
# 查看防火墙状态 service iptables status # 停止防火墙 service iptables stop # 启动防火墙 service iptables start # 重启防火墙 service iptables restart # 永久关闭防火墙 chkconfig ip ...
分类:
其他好文 时间:
2018-11-01 11:40:01
阅读次数:
354
在linux下我们一般是需要了解我们的进程的状态的. 我们以mysql为例 service mysqld status 我这里是启动状态,可以看见pid chkconfig list +你的服务 可以看见是启动的,有on状态 pidof +你的服务 可以看见pid,说明,此时,mysql服务正在运行 ...
分类:
系统相关 时间:
2018-10-31 15:44:00
阅读次数:
216
1.查询防火墙状态 service iptables status 2.开启防火墙 service iptables start 3.关闭防火墙 service iptables stop 4.重启防火墙 service iptables restart 5.永久关闭防火墙 chkconfig ip ...
分类:
其他好文 时间:
2018-10-30 13:20:30
阅读次数:
144