一、初识bashBash是一种解释型语言,但它也提供了交互式接口,支持变量,因此提供了编程环境,所以可以称bash为程序语言。解释型语言属于弱类型语言,其特点为:1.它不强制区分变量类型,即无论存储什么数据,默认均以字符格式(ASCII码)存储。2.不需要事先声明变量,需要时直..
分类:
其他好文 时间:
2014-05-03 02:09:05
阅读次数:
476
基于Ansible实现批量管理Ansible提供一种最简单的方式用于发布、管理和编排计算机系统的工具,可在数分钟内搞定,Ansible本身是一种python程序,只需要配置一个节点,只要ssh连接ok被控制节点不需要安装任何工具,就可以实现远程连接执行任何操作支持多节点发布、远程任务执行..
分类:
其他好文 时间:
2014-05-03 01:38:43
阅读次数:
595
rsync客户端+inotify-tools1.1.1.12rsync服务器1.1.1.111.1.1.12配置[root@slave3wwwroot]#cat/etc/rsyncd-web.sh
#!/bin/bash
host1=1.1.1.11
src=/web/wwwroot/
dst1=web1
/usr/bin/inotifywait-mrq--timefmt‘%d/%m/%y%H:%M‘--format‘%T%w%f%e‘-emodify,delete,create,attrib..
分类:
其他好文 时间:
2014-05-03 01:08:22
阅读次数:
426
sed‘s/^/\//g‘4行首增加指定字符提取网页中的播放地址:#!/bin/bash
printf"enteryourdir:"
readdir
echo"$dirisxx"
cd$dir
echo`pwd`
forfilein`ls.`
do
if[-d$file];then
echo$file
cd$file
echo`pwd`
tree`pwd`|grepplay|sed‘s/.*//g‘>11
tree`pwd`|grepplay|sed‘s/.*//g..
分类:
其他好文 时间:
2014-05-03 00:53:15
阅读次数:
336
64位系统中,安装freetype时,出现这个问题。后来发现,此问题进出现在64位系统中。
修复方法:
cd zlib-1.2.3 //进入zlib目录
CFLAGS="-O3 -fPIC" ./configure //使用64位元的方法进行编译
make
make install
然后,进入freetyp...
分类:
其他好文 时间:
2014-05-02 23:50:23
阅读次数:
397
安装libpng,出现“configure: error: ZLib not
installed”。
解决方法:
1. 进入ZLib的安装包,不必加--prefix参数命令:
./configure
make && make install
2. 进入libpng解压缩包中,输入:
./configure --prefix=/...
分类:
其他好文 时间:
2014-05-02 22:38:51
阅读次数:
289
官网:https://sqlite.org/download.html
下载代码安装三步走:
./configure // ./configure --help查看安装参数设置,学习configure的配置,明白安装后include、lib、bin等文件的位置
make
make install
学习SQL基本语法,各个数据库基本相同http://www.w3cschool.cc...
分类:
数据库 时间:
2014-05-02 20:50:33
阅读次数:
412
编译Lua时,出现这样的错误:
gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX -c -o lua.o lua.clua.c:67:31: error:
查阅了一下,centOS上需要安装readline-devel ncurses-devel
yum install readline-devel ncurses-devel
...
分类:
系统相关 时间:
2014-05-02 07:03:00
阅读次数:
455
需要使用redis来做任务队列,所以花点时间研究下怎么使用...
Eclipse插件的安装和使用1.
在线更新(http://blog.csdn.net/charlies_fu/article/details/5638068)打开eclipse工具,选择HELP---Install
new software----输入网址,如我们这里要安装hibernate to...
分类:
其他好文 时间:
2014-05-02 01:14:07
阅读次数:
321