CENTOS 第6页
系统路径/usr/lib/systemd/system和/etc/systemd/system的区别?-Ddmit

系统路径/usr/lib/systemd/system和/etc/systemd/system的区别?

使用man systemd.unit命令,可以看到详细的解释。 大体区别: /usr/lib/systemd/system: 安装包相关配置,一般是供应商提供的操作系统资源。通常,只允许包管理工具(yum/dnf/rpm/apt)进行包安...
ddmit的头像-DdmitDdmit5年前
018490
CentOS 7使用源码安装php-Ddmit

CentOS 7使用源码安装php

环境: digitalocean CentOS 7.4 x64 php:php-7.0.4 下载php文件 cd ~/lnmp_pkg wget http://php.net/distributions/php-7.0.4.tar.gz && tar -xzvf php-7.0.4.tar.gz wget http://ftp....
ddmit的头像-DdmitDdmit5年前
018350
No package htop available问题解决-Ddmit

No package htop available问题解决

CENTOS安装htop提示: No package htop available. Error: Nothing to do 解决办法 解决办法,安装epel-release之后,再安装htop: [winbert@winbert-server ~]$ sudo yum install -y epel-relea...
ddmit的头像-DdmitDdmit5年前
018290
Elasticsearch常用操作-Ddmit

Elasticsearch常用操作

这里以索引名为data_index为例,elasticsearch的地址为http://10.47.0.96:9200,版本为Elasticsearch 7.1.1。 索引 1.创建索引 1)创建名为data_index的索引 curl -XPUT 'http://10.47.0.96:920...
ddmit的头像-DdmitDdmit6年前
018040
通过yum的方式在centos上搭建lnmp环境-Ddmit

通过yum的方式在centos上搭建lnmp环境

这篇文章讲述的是通过yum的方式从官方源安装lnmp环境,如果你的环境是接入互联网的,那么推荐这种方式,方便更新。 首先,需要确定的是我们要安装的组建有: linux stable version: nginx-1.10....
ddmit的头像-DdmitDdmit6年前
017810
Docker Compose常用命令-Ddmit

Docker Compose常用命令

环境 docker-compose version 1.24.0, build 0aa59064 帮助 [4spaces.org@localhost seafile]$ docker-compose -h Define and run multi-container applications with Docker. Usage: docker-co...
ddmit的头像-DdmitDdmit6年前
017800
CENTOS如何新建Sudo用户账号-Ddmit

CENTOS如何新建Sudo用户账号

sudo命令提供了一种向普通用户授予管理员特权的机制,该特权通常仅对root用户可用。 本文将介绍创建具有sudo访问权限的新用户的最简单方法,而无需修改服务器的sudoers文件。 如果要为现有用户...
ddmit的头像-DdmitDdmit4年前
17740
CentOS启用Google BBR加速网络-Ddmit

CentOS启用Google BBR加速网络

启用BBR,内核版本必须至少升级到4.9.0,升级内核的方法详见: CentOS使用ELRepo RPM repository升级内核版本。 BBR (Bottleneck Bandwidth and RTT) 是一种新的拥塞控制算法,由Google贡献给Li...
ddmit的头像-DdmitDdmit5年前
017593
如何在CentOS7安装部署fastdfs分布式文件系统-Ddmit

如何在CentOS7安装部署fastdfs分布式文件系统

为解决文件频繁上传给服务器造成的压力,引入了fastdfs分布式文件系统,下面是安装及部署的具体步骤。 一、下载安装libfastcommon 1.1 下载libfastcommon 地址:https://github.com/happyfish10...
ddmit的头像-DdmitDdmit4年前
017160
CENTOS 7修改默认时区-Ddmit

CENTOS 7修改默认时区

CentOS查看当前时区及修改默认时区的方式如下: 1.查看当前时区 date -R 2.修改时区 tzselect 执行上面的命令,然后按照提示进行操作,但是只能当前回话保存,如果想要永久保存,需要修改 ~/.ba...
ddmit的头像-DdmitDdmit6年前
016730