Systemctl

nginx启动、停止重启

安装: https://qizhanming.com/blog/2018/08/06/how-to-install-nginx-on-centos-7 启动 启动代码格式:nginx安装目录地址 -c nginx配置文件地址 例如: [root@LinuxServer sbin]# /usr/local/nginx/sbin/nginx -c /usr/l...

CentOS 7 64位

1.查看Ip: ip addr 以前记得使用的是 ifconfig       这里提示没有发现命令      使用 ip addr 出现了上边的结果。系统刚刚在虚拟机中装好,所以显示的是上边的结果。但是出现了ip: 127.0.0.1 2.修改ip配置,联网 vi /etc/sysconfig/network-scripts/ifcfg-e...

nginx部署(普通用户)

1. Install Nginx software prerequisites : $ sudo yum install pcre pcre-devel openssl-devel perl gcc make -y 2. Download Nginx from official website and extract it : $ wget http:...

【 Linux 】Systemd 使用说明(1)

1. 前言   在 CentOS 7 中使用 systemd 取代了 init 的启动模式,这样的更新换代有什么好处呢?首先需要对 init 和 systemd 有个概念的认识。 2. init 概述   在 CentOS 7 之前的版本中,init 作为第一个启动进程,是所有进程的父进程。使用 init 有两个显著的缺点:   (1)启动时间长。init...

systemctl 命令的用法

对比表,以 apache / httpd 为例 任务 旧指令 新指令 使某服务自动启动 chkconfig --level 3 httpd on systemctl enable httpd.service 使某服务不自动启动 chkconfig --level 3 httpd off systemctl disable httpd.serv...

zabbix安装部署

Zabbix安装部署 环境准备 OS:CentOS 7.2 64bit Zabbix版本:3.0.12 MySQL版本:5.6 注意:zabbix3.0相关要求 mysql5.0以上版本、apache1.3以上版本、php5.4以上版本。 版本选择 在版本选择建议选择官方技术支持时间较长(LTS)的稳定版本,从上图我我们可以看到没有最新最稳定的...

CentOS 7添加开机启动服务/脚本

一、添加开机自启服务 在CentOS 7中添加开机自启服务非常方便,只需要两条命令(以Jenkins为例):systemctl enable jenkins.service #设置jenkins服务为自启动服务sysstemctl start  jenkins.service #启动jenkins服务 二、添加开机自启脚本 在centos7中增加脚本有两种...

Linux学习3-yum安装java和Tomcat环境

前言 linux上安装软件,可以用yum非常方便,不需要下载解压,一个指令就能用yum安装java和tomcat环境。 前面一篇已经实现在阿里云服务器上搭建一个禅道系统的网站,算是小有成就,但并不是每个网站搭建都是这么简单的。 一般开发包是一个.war的文件,这就需要用到一个中间键,比如tomcat了,tomcat又是依赖于java环境的,所以先安装jav...

Linux之防火墙配置

Centos 7 firewall : 1、firewalld的基本使用 启动: systemctl start firewalld 关闭: systemctl stop firewalld 查看状态: systemctl status firewalld  开机禁用  : systemctl disable firewalld 开机启用  : sys...

centos7网卡报错解决办法总结(FailedtostartLSB:Bringup/downnetworking)

centos7网卡报错解决办法总结(FailedtostartLSB:Bringup/downnetworking 参考http://blog.51cto.com/11863547/1905929 问题描述: 我的vm中安装了一台虚拟机centos7,用着用着不知道为什么网络就不能用了. 解决: 查询了一下,好像是系统自带的NetworkManager这...