在linux的世界里。给主机设置固定ip是这么做的(使用root用户): 1.查看要配的网络接口 用ifconfig查看查看在用的网卡接口,一般都用第一个如:eth0,en1,em1等 2.停用网络自己主动配置(假设有的话) systemctl stop NetworkManager.service ...
分类:
其他好文 时间:
2017-07-28 13:32:50
阅读次数:
141
1.通过Linux下用类似记事本查看文件,可以用vi命令。 2.Redhat下关闭防火墙,命令 systemctl stop firewalld 查看防火墙状态的命令systemctl status firewalld ...
分类:
数据库 时间:
2017-07-27 20:17:31
阅读次数:
172
1、下载mariadb(mysql) yum install mariadb mariadb-server 2、启动mariadb systemctl start mariadb 3、开机自启动(可忽略) systemctl enable mariadb 4、设置 root密码等相关 mysql_s ...
分类:
其他好文 时间:
2017-07-24 19:06:58
阅读次数:
170
1. GPG 密钥 rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 2.防火墙 systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止 ...
分类:
其他好文 时间:
2017-07-24 18:57:09
阅读次数:
137
管理系统服务CentOS6CentOS7(firewalld.service可简写成firewalldhttpd.service可简写成httpd)关闭防火墙#serviceiptablesstop#systemctlstopfirewalld.service禁止防火墙开机自启#chkconfigiptablesoff#systemctldisablefirewalld.service查看防火墙是否运行#serviceiptable..
分类:
其他好文 时间:
2017-07-24 16:32:41
阅读次数:
223
CentOS上面使用yum安装比较方便 准备工作: Centos自带yum,首先给yum换源,换成国内的阿里云 第一步:安装erlang 安装rpm仓库: 安装erlang 第二步:安装rabbitmq 先下载rpm 安装 安装完成后启动服务: 查看服务状态: 详细信息: 查看对应的日志文件: 日志 ...
分类:
其他好文 时间:
2017-07-24 00:09:46
阅读次数:
649
nginx 配置文件:/etc/nginx/sites-availbale/default 集群搭建 1、部署nginx反向代理三个web服务,调度算法使用加权轮询; Answer: (ubuntu位置:/etc/nginx/nginx.conf) http { upstream pythonweb ...
分类:
其他好文 时间:
2017-07-23 18:02:27
阅读次数:
188
http://www.cnblogs.com/metoy/p/4320813.html CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下 1、直接关闭防火墙 systemctl stop firewalld.service #停止firewall sy ...
分类:
其他好文 时间:
2017-07-23 16:51:31
阅读次数:
184
系统服务的控制1.systemd系统初始化程序,系统开始的第一个进程,pid为12.systemctl命令systemctllist-units列出当前系统服务的状态systemctllist-unit-files列出服务的开机状态systemctlstatussshd查看指定服务的状态systemctlstopsshd关闭指定服务systemctlstartsshd开启指定..
分类:
系统相关 时间:
2017-07-23 00:56:14
阅读次数:
199
一、系统服务控制1、systemd系统服务初始化系统开始的第一个进程,pid为1。2、systemctl命令(注意在企业6和企业7的服务启动命令不同,企业6为/etc/init.d/服务名称动作,而下文为企业7)systemctllist-units##列出当前系统服务的状态systemctllist-unit-files##列出服务的开机状..
分类:
系统相关 时间:
2017-07-23 00:51:20
阅读次数:
257