一、防火墙(iptables)临时状态查看/开启/关闭serviceiptablesstatusserviceiptablesstartserviceiptablesstop永久状态查看/开启/关闭chkconfig--listiptableschkconfigiptablesoffchkconfigiptableson注意:设置完之后重启(reboot)才能生效二、iptables临时查看,关闭
分类:
系统相关 时间:
2020-03-11 12:28:24
阅读次数:
96
在/etc/init.d路径下新建一个文件(这里以tomcat为例) vi /etc/init.d/tomcat 按i进入脚本编辑,开始写tomcat开机自动启动脚本; #!/bin/sh # chkconfig: 2345 80 90 # description: Auto-starts tomc ...
分类:
系统相关 时间:
2020-03-09 19:29:22
阅读次数:
70
首先,在linux系统的/etc/init.d/目录下创建nginx文件,使用如下命令: vim /etc/init.d/nginx 在脚本中添加如下命令: #!/bin/sh # # nginx - this script starts and stops the nginx daemon # # ...
分类:
其他好文 时间:
2020-03-06 23:45:52
阅读次数:
78
一、JDK安装:将jdk1.7.0_55.zip拷贝到自己这台服务器上,解压在/usr/java/下cd /usr/javatar -zxvf jdk1.7.0_55.tgz环境配置:vi /etc/profile #改动Linux的环境变量,在该文件最后加上下面几行(红色部分需改成jdk实际的安装 ...
分类:
其他好文 时间:
2020-03-03 01:06:37
阅读次数:
67
病毒现象 服务器出现卡顿、CPU飙升 以下为WatchDogs的判断方式及其命令:存在恶意进程watchdogs: ps -ef | grep watchdogs存在恶意进程ksoftirqds: ps -ef | grep ksoftirqds存在恶意启动项watchdogs: chkconfig ...
分类:
其他好文 时间:
2020-02-28 19:06:10
阅读次数:
108
安装 将Jenkins存储库添加到yum repos,并从此安装Jenkins。 sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo sudo rpm --import ht ...
分类:
其他好文 时间:
2020-02-27 23:43:35
阅读次数:
780
一,服务分类 1,服务简介与分类 1,服务的分类 启动与自启动 1,服务启动:就是在当前系统中让服务运行,并提供功能 2,服务自启动:自启动是指让服务在系统开机或重启动之后,随着系统的启动而自动启动的服务 查询已安装的服务: 1,RPM包安装的服务 chkconfig --list 查看服务自启动状 ...
分类:
系统相关 时间:
2020-02-14 18:47:14
阅读次数:
124
1. 在需要设置为开机启动的脚本中加入必须的chkconfig启动脚本规范,如下: #!/bin/bash # chkconfig: 2345 80 12 # description: auto start shell script 2. 使用chkconfig将脚本加入自动启动列表 # mv yo ...
分类:
其他好文 时间:
2020-01-31 22:53:02
阅读次数:
86
记录服务器每次重启之后启动一些服务. systemd systemd简介 CentOS7已不再使用chkconfig管理启动项,而是使用systemd。关于systemd的衍生和发展,可以参见《CentOS7/RHEL7 systemd详解》和《CentOS7进程管理systemd详解》。简单介绍如 ...
分类:
其他好文 时间:
2020-01-22 18:43:09
阅读次数:
117
一. 写在前面 centos7建议使用systemctl来管理服务的自启动,它能够满足之前service和chkconfig的功能 1.systemd有系统和用户区分;系统(/user/lib/systemd/system/)、用户(/etc/lib/systemd/user/) 2.一般系统管理员 ...
分类:
其他好文 时间:
2020-01-22 16:46:44
阅读次数:
124