#!/bin/sh#chkconfig: 2345 80 05#description: elasticsearch export JAVA_HOME=/usr/local/javaexport JRE_HOME=/usr/local/java/jreexport CLASSPATH=.:$JAVA ...
分类:
其他好文 时间:
2018-12-17 18:59:44
阅读次数:
208
运维Linux系统,部署或升级openssh是经常面临的事,以下已redhat6和redhat7为例。 在redhat6中部署openssh会有什么坑,在编辑openssh源码包时会报一些类似的错误,如下: checking OpenSSL header version... 10000003 (O ...
分类:
系统相关 时间:
2018-12-17 11:45:35
阅读次数:
449
1.关闭防火墙 1.1 查看防火墙状态 service iptables status 1.2 关闭防火墙 service iptables off 1.3 关闭防火墙开机启动 chkconfig iptables off 2.关闭selinux vi /etc/selinux/config 将 S ...
分类:
其他好文 时间:
2018-12-12 00:20:48
阅读次数:
174
一,循环执行 1、crond服务管理与访问控制 service crond restart chkconfig crond on 2、用户的crontab设置 crontab [选项] 选项: -e: 编辑crontab定时任务 -l: 查询crontab任务 -r: 删除当前用户所有的cronta ...
分类:
其他好文 时间:
2018-12-11 19:52:57
阅读次数:
226
linux下安装tomcat: 将catalina.sh复制到init.d目录下,保证在任何地方都可以启动tomcat,使用:service tomcat start ,比较方便的启动tomcat 出现问题: service tomcat does not support chkconfig 添加: ...
分类:
系统相关 时间:
2018-12-11 18:16:26
阅读次数:
893
1、本地环境 2、在/etc/init.d创建nginx文件,并添加如下内容 脚本内容如下: shell !/bin/sh nginx this script starts and stops the nginx daemon chkconfig: 85 15 description: NGINX ...
分类:
系统相关 时间:
2018-12-10 18:18:28
阅读次数:
260
使用 systemctl list-unit-files 可以查看启动项 , 因为用chkconfig --list命令出现如下提示: 左边是服务名称,右边是状态,enabled是开机启动,disabled是开机不启动 过滤查询可以systemctl list-unit-files | grep e ...
分类:
其他好文 时间:
2018-12-06 14:10:26
阅读次数:
2414
一、安装相应所需依赖包yuminstalllokkityuminstallcurlopenssh-serveropenssh-clientspostfixcronie-yservicepostfixstartchkconfigpostfixonlokkit-shttp-ssshcurl-sShttp://packages.gitlab.cc/install/gitlab-ce/script.rpm
分类:
其他好文 时间:
2018-12-03 00:49:29
阅读次数:
218
NetworkTimeProtocol(NTP,网络时间协议)用于同步它所有客户端时钟的服务。 NTP服务器将本地的时钟与一个外网公共的NTP服务器同步,然后作为时间服务器。使内网所有客户端能同步时钟。 最大的好处就是相关系统上日志文件中的数据,如果网络中使用中央日志主机集中管理日志,得到的日志结果... ...
分类:
其他好文 时间:
2018-12-02 16:44:56
阅读次数:
137
boot/系统内核文件所放的地方 cd /etc/rc.d/init.d 这个里边放的都是通过rpm安装(经过liunux处理过的源代码)的东西,只有这里边也就是只有通过rpm安 装的才能用chkconfig永久启动关闭 和service临时启动命令关闭 chkconfig --level 3 ht ...
分类:
系统相关 时间:
2018-11-29 11:07:45
阅读次数:
213