<mongodb在linux上的部署> 事实上redis安装程序挺好,直接帮我们生成了服务,直接可以使用systemctl去启动它,而mongodb在这方面没有那么智能,需要我们去编写自己的服务脚本了,然后把它加到开机自启动里面就可以了,主要的过程分为以下几个步骤: mongodb我安装在了/roo ...
分类:
数据库 时间:
2017-07-10 13:19:33
阅读次数:
232
使用nmcli命令配置网络 NetworkManager是管理和监控网络设置的守护进程,设备既就是网络接口,连接是对网络接口的配置,一个网络接口可以有多个连接配置,但同时只有一个连接配置生效。 1 配置主机名 CentOS6 之前主机配置文件:/etc/sysconfig/network CentO ...
分类:
其他好文 时间:
2017-07-09 19:29:22
阅读次数:
193
1. CentOS mariadb 是mysql的替代品 2. 安装mariadb sudo yum install mariadb-server mariadb 3. 启动 sudo systemctl start mariadb 参考 systemctl start mariadb #启动Mar ...
分类:
数据库 时间:
2017-07-07 20:11:46
阅读次数:
217
一、安装mysql 1、 sudo apt-get install mysql-server -y 2、 安全设置:mysql_secure_installation,然后按两个N,三个Y。 二、设置两台主机的my.cnf 1、 设置两台主机的my.cnf a、 主服务器:vim /etc/my.c ...
分类:
数据库 时间:
2017-07-07 00:49:28
阅读次数:
171
原文地址:http://blog.csdn.net/jiangtao_st/article/details/73612298 一, 服务器快速搭建gitlab方法 可以参考gitlab中文社区 的教程centos7安装gitlab:https://www.gitlab.cc/downloads/#c ...
分类:
其他好文 时间:
2017-07-06 15:51:47
阅读次数:
238
进程管理 1.查看进程 ps -ef ps -aux top -d 1 时间间隔1秒 默认3秒 -p XX 查看指定PID的进程信息 2.结束进程 服务管理 CentOS 7.0 1.启动关闭 systemctl start httpd.service 启动服务 systemctl stop htt ...
分类:
系统相关 时间:
2017-07-05 16:43:06
阅读次数:
176
一、 1、系统配置要求 操作系统:64位操作系统和3.10或者更高版本的内核:uname -r Docker-v1.12 及更高版本 Docker Compose-v1.8 及更高版本 2、更新系统 3、安装 4、基本docker命令 5、测试安装nginx 6、删除测试的nginx 7、指定容器n ...
分类:
数据库 时间:
2017-07-05 16:38:42
阅读次数:
248
1、firewalld的基本使用 启动: systemctl start firewalld 查看状态: systemctl status firewalld 停止: systemctl disable firewalld 禁用: systemctl stop firewalld 2.systemc ...
分类:
其他好文 时间:
2017-07-05 13:36:56
阅读次数:
178
我们需要向centos操作系统的服务器上上传文件或者下载文件,这时候,ftp有必要安装下, 我们选择主流的vsftp; 第一步:安装vsftp yum install -y vsftpd 第二步:设置开机启动 systemctl enable vsftpd 第三步:启动ftp服务 systemctl ...
分类:
其他好文 时间:
2017-07-03 23:49:22
阅读次数:
458
一、配置防火墙,开启80端口、3306端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable fire ...
分类:
其他好文 时间:
2017-07-03 12:29:06
阅读次数:
313