一、配置防火墙,开启80端口、3306端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: #停止firewall服务 systemctl stop firewalld.service #禁止firewall开机启动 syst ...
分类:
数据库 时间:
2016-12-24 16:19:45
阅读次数:
282
方法一:使用命令安装(前提是已经安装了EPEL)。 安装redis: yum -y install redis 启动/停止/重启 Redis 启动服务: 1 systemctl start redis.service 停止服务: systemctl stop redis.service 重启服务: ...
分类:
其他好文 时间:
2016-12-22 09:04:20
阅读次数:
276
# printf "howhy:$(openssl passwd -crypt 123456)\n" >>conf/htpasswd # cat conf/htpasswd howhy:xyJkVhXGAZ8tM systemctl restart nginx ...
分类:
其他好文 时间:
2016-12-20 20:07:15
阅读次数:
169
一、防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall:systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #... ...
分类:
其他好文 时间:
2016-12-15 17:25:56
阅读次数:
270
Systemctl是一个systemd工具,主要负责控制systemd系统和服务管理器。 Systemd是一个系统管理守护进程、工具和库的集合,用于取代System V初始进程。Systemd的功能是用于集中管理和配置类UNIX系统。 在Linux生态系统中,Systemd被部署到了大多数的标准Li ...
分类:
其他好文 时间:
2016-12-10 13:35:29
阅读次数:
237
LinuxSystemctl是一个系统管理守护进程、工具和库的集合,用于取代System V、service和chkconfig命令,初始进程主要负责控制systemd系统和服务管理器。通过Systemctl –help可以看到该命令主要分为:查询或发送控制命令给systemd服务,管理单元服务的命 ...
分类:
其他好文 时间:
2016-12-10 13:02:41
阅读次数:
174
安装docker,对于Centos7,如下: $ sudo yum update$ sudo yum -y install docker$ sudo systemctl start docker 首先下载mongodb的镜像,直接通过dockerhub下载较慢,可首先设置加速,通过阿里云,如下: # ...
分类:
数据库 时间:
2016-12-09 00:15:29
阅读次数:
320
安装完了 mariadb 后 有一天重启机器发现 启动不了 mariadb.service systemctl start mariadb.service //然后发现下面的问题 job for mariadb.service failed because the control process e ...
分类:
数据库 时间:
2016-12-07 23:16:56
阅读次数:
375
1.首先需要安装好java,并配置好环境变量 2.下载elasticsearch的rpm包,命令如下: wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/rpm/elastics ...
分类:
其他好文 时间:
2016-12-07 16:38:04
阅读次数:
225
awk-F指明输入时用到的字段分隔符默认空格为分隔符-v自定义变量基本格式:awk[options]‘program‘file$1,$2..$n称为域标识,$0为所有域。文件的每一行称为记录awk‘{print}‘/etc/passwd默认print$0显示全段awk‘BEGIN{print"hello,awd"}‘awk‘{print"hello,awd"}‘支持输入df|awk‘{p..
分类:
其他好文 时间:
2016-12-06 23:11:35
阅读次数:
268