安装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
一、centos7下mysql 安装配置 yum -y install mariadb* systemctl start mariadb.service systemctl enable mariadb.service 二、初始化 ...
分类:
数据库 时间:
2016-12-06 20:39:05
阅读次数:
243
http://www.wenbin.cf/post/37/ 1. 安装nginx,createrepo 2. 修改nginx配置文件,/etc/nginx/nginx.conf 重启nginx, systemctl restart nginx 3. 在nginx根目录建立文件夹 4. 准备同步阿里云 ...
分类:
其他好文 时间:
2016-12-06 13:52:24
阅读次数:
277
linux系统的启动过程 在介绍破解Linux系统root密码之前先了解一下linux系统的启动过程 其中,以上第10步的”Systemd查找默认目标(target),然后启动该target的所有单元“中的target指的是如下启动加载单元 破解Linux系统root用户密码 破解root密码的大致 ...
分类:
系统相关 时间:
2016-12-05 17:17:27
阅读次数:
364
1. tomcat 需要增加一个pid文件 在tomca/bin 目录下面,增加 setenv.sh 配置,catalina.sh启动的时候会调用,同时配置java内存参数。 2. 增加tomcat.service 3. 使用tomcat.service 配置开机启动 systemctl enabl ...
分类:
其他好文 时间:
2016-12-05 17:06:14
阅读次数:
206
1、启动、关闭、重置服务 (rhel7 为 systemctl)[root@rhel-6 ~]# service atd status #关闭atd服务 atd 已停[root@rhel-6 ~]# service atd start ... ...
分类:
其他好文 时间:
2016-12-05 14:47:34
阅读次数:
353
Centos7Systemd详解目录一、systemd的由来二、systemd三、服务管理1、systemctl22、服务查看3、服务状态4、hostnamectl5、localectl6、timedatectl7、loginctl四、unit1、Unit类型2、systemctllist-units命令可以查看当前系统的所有Unit3、unit状态4、依赖关系五、unit配置文件..
分类:
其他好文 时间:
2016-11-30 23:24:57
阅读次数:
1338