上一页 1 ··· 8 9 10 11 12 13 14 15 下一页
摘要: 1.salt '*' sys.doc显示minion设备上支持的命令 2.salt-call 可以显示比salt更多的信息,可以用来调试,检查,如果需要更详细的信息使用salt-call -l debug state.highstate3.grains用来设置minion系统的静态参数,可以在/etc/salt/minion中设置,也可以用命令grains.setval设置查看salt '*' grains.items可以查看相应minion上所有的静态参数salt 'minion-1' grains.item os 可以查看minion-1上的 阅读全文
posted @ 2013-12-04 18:32 silence.li 阅读(424) 评论(0) 推荐(0)
摘要: root@cacti:~/box# cat convert.py#!/usr/bin/env pythonimport sqlite3,time,rrdtool,osdef boxstatus(): ''' check the status of the box, and set it to 1 if it is online, set it to 0 if it is offline ''' if "status.db": os.system('rm status.db') dcon = sqlite3.co 阅读全文
posted @ 2013-12-04 14:41 silence.li 阅读(431) 评论(0) 推荐(0)
摘要: http://linux-sunxi.org/Cubieboard/Programming/StatusLEDsAccessing the status LEDsThe Cubieboard has two status LEDs, a green one and a blue one. These can be accessed and switched on and off with the following instructions.PreparationYou need to have a bootable image with a recent kernel (3.x).Add t 阅读全文
posted @ 2013-11-29 09:54 silence.li 阅读(329) 评论(0) 推荐(0)
摘要: #!/bin/bash# Filename: main.shusage(){ echo "scp file :./main.sh scp sourcefile destfile" echo "ssh exec: ./main.sh ssh command"}file=iplist.txt#password='fengmao'case $1 in "scp") for ip in `cat $file`; do ./scp.exp $ip $2 $3 done ;; "ssh") for ip in 阅读全文
posted @ 2013-11-28 14:34 silence.li 阅读(336) 评论(0) 推荐(0)
摘要: apt-get install htop 阅读全文
posted @ 2013-11-26 21:56 silence.li 阅读(138) 评论(0) 推荐(0)
摘要: 1.tftp使用独立daemon,这样不用再安装xinet,apt-get install tftp-hpa tftpd-hpacat /etc/default/tftpd-hpaTFTP_USERNAME="tftp"TFTP_DIRECTORY="/tftpboot"TFTP_ADDRESS="10.1.1.1:69"TFTP_OPTIONS="--secure"tftp的默认工作路径由以上配置生效2.dhcp按照上一篇配置即可。一点说明:关于多一个网卡多ip段的dhcp设定规则:為 IP Alias 設定 D 阅读全文
posted @ 2013-11-26 11:20 silence.li 阅读(693) 评论(0) 推荐(0)
摘要: Ubuntu Server 部署手册pxe+tftp+vsftp+apache2=======================================================================服务器配置TFTP配置安装tftpapt-get install tftp-hpa tftpd-hpa ,或者apt-get install tftp-hpa tftpd-hpaxinetd配置TFTPTFTP有两种应用方式,一种作为独立的服务,一种作为xinetd存在。作为独立服务需配置/etc/default/tftpd-hpa##注:要先安装xinetd,再安装tft. 阅读全文
posted @ 2013-11-26 11:03 silence.li 阅读(3139) 评论(0) 推荐(0)
摘要: 1.安装nginx,tomcat, jdk1.1. nginx下载:官网下载nginx-1.4.3.tar.gz安装:root@ns2:/app/lan/nginx/sbin# ./nginx -Vnginx version: nginx/1.4.3built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) configure arguments: --prefix=/app/act/nginx/nginx-1.4.3 --with-debug --with-http_addition_module --with-http_dav_module --wi 阅读全文
posted @ 2013-11-26 10:53 silence.li 阅读(389) 评论(0) 推荐(0)
摘要: 1.格式化输出select * from mysql.user\G2.显示版本show version()3.显示引擎show enginesmysql> show engines;+--------------------+---------+------------------------------------------------------------+--------------+------+------------+| Engine | Support | Comment ... 阅读全文
posted @ 2013-11-26 09:43 silence.li 阅读(190) 评论(0) 推荐(0)
摘要: http://blog.yorkgu.me/2012/02/09/kernel-nf_conntrack-table-full-dropping-packet/综合:ip_conntrack就是linux NAT的一个跟踪连接条目的模块,ip_conntrack模块会使用一个哈希表记录tcp 通讯协议的 established connection记录,当这个哈希表满了的时候,便会导致nf_conntrack: table full, dropping packet错误。解决办法如其所述,对ip_conntrack的两个参数进行设置即可,不过在centos上,需要这样设置:12345vi /e 阅读全文
posted @ 2013-11-22 14:54 silence.li 阅读(577) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 下一页