一、初步摸索对于Saltstack的初步了解知道相比puppet配置简单些,实现自动化运维,减少大批量操作的失误。二、安装及测试1、初期做实验,准备一台master作为服务器端,一台作为客户端设置好机器的ip地址root@master~]#cat/etc/hosts127.0.0.1localhostlocalhost.localdomainloc..
分类:
其他好文 时间:
2015-04-17 18:30:39
阅读次数:
140
访问Nginx出现状态码为403forbidden原因及故障模拟1)nginx配置文件里不配置默认首页参数或者首页文件在站点目录下没有indexindex.phpindex.htmlindex.htm;问题模拟示例:[root@wwwextra]#catwww.conf
#wwwvirtualhostbyoldboy
server{
listen80;
server_namewww.etiantian.org;..
分类:
其他好文 时间:
2015-04-17 18:28:38
阅读次数:
235
题目链接:Binary Tree Level Order Traversal
II
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For exam...
分类:
其他好文 时间:
2015-04-17 18:16:21
阅读次数:
176
[root@bmspay ~]# cat /etc/sysconfig/iptables# Generated by iptables-save v1.4.7 on Fri Apr 3 14:16:25 2015*filter:INPUT ACCEPT [0:0]:FORWARD ACCEPT [0...
分类:
其他好文 时间:
2015-04-17 17:52:59
阅读次数:
138
1. 修改root权限GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' identified by 'root' WITH GRANT OPTION;-- 设置特定主机才拥有访问特权GRANT ALL PRIVILEGES ON *.* TO 'root'@'loc...
分类:
数据库 时间:
2015-04-17 17:41:54
阅读次数:
236
TreePanel 简单实例。 root:是树的根节点。checked: true 树有选择框。onCheckboxChange:设置树连及效果,父级选中后 所有子集也全部选中。getChecked():获取所有选择的 树节点数据。getChecked()下的get...
分类:
Web程序 时间:
2015-04-17 17:21:57
阅读次数:
197
w命令也用于显示登录到系统的用户情况,但是与who不同的是,w命令功能更加强大,它不但可以显示有谁登录到系统,还可以显示出这些用户当前正在进行的工作:[root@hpf-linux~]#w
17:04:13up1:05,2users,loadaverage:0.00,0.00,0.00
USERTTYFROMLOGIN@IDLEJCPUPCPUWHAT
roottt..
分类:
系统相关 时间:
2015-04-17 15:58:27
阅读次数:
223
mysql数据库用rpm包安装后,出现了一系列的问题,下面就开始解答一下1.安装完成后,servicemysqlstart,正常启动使用mysql或者mysql-uroot-p直接回车后,报如下错误ERROR1045(28000):Accessdeniedforuser‘root‘@‘localhost‘(usingpassword:NO)解决办法如下:servicemysqlstop
my..
分类:
数据库 时间:
2015-04-17 15:58:23
阅读次数:
172
1.在任何路径下建立一个文件夹如:AddHost[root@cluster~]#mkdirAddHost2.在AddHost目录下创建一个AddHost.sh脚本文件和一个mac.txt主机mac地址列表[root@clusterAddHost]#touchAddHost.shmac.txt3.其中AddHost.sh脚本内容如下#!/bin/bashIP=254RANK=0NODE=1COUNT=6//6意为添加..
分类:
其他好文 时间:
2015-04-17 15:57:30
阅读次数:
172
192.168.1.210node1
192.168.1.220node2
192.168.1.200nfs
1.200:
yuminstall-ynfs-utils
vim/etc/exports
/data/share192.168.1.0/24(rw,sync,no_root_squash)
/etc/init.d/rpcbindrestart;/etc/init.d/nfsrestart
210,220:
yuminstall-ynfs-utils
showmount-e192.168.1.200
m..
分类:
数据库 时间:
2015-04-17 15:54:57
阅读次数:
194