终端作为交互式工具,用户可以通过它与shell环境进行交互,在终端打印文本时绝大多数shell脚本和工具日常需要进行的基本任务,能够执行打印的方法有很多,格式也各不相同.Echo是用于终端打印的基本命令至于单引号 双引号 和 不带引号都有一定的缺点,如:使用不带引号的echo时,你没办法显示;使用单引号时,bash不会对单引号中的变量求值,而是作为字符串显示双引号里面的!会被当做命令执行Print
Shell脚本的开始Shell脚本通常是一个以#!起始的文本文件#!/bin/bashLinux环境下的任何脚本语言,都是以这样一个被成为shebang的特殊行作为起始的.有两种运行脚本的方式,一种是将脚本作为sh的命令行参数,另一种是将脚本作为具有执行权限的可执行文件将脚本作为命令行参数时的运行方式Sh script.sh为了使脚本能够独立运行,需要具备可执行权限Chmod a+x script
[root@mio-252 named]# service named startGenerating /etc/rndc.key:^C[root@mio-252 named]# rndc-confgen -r /dev/urandom -awrote key file "/etc/rndc.key"
网上很多帖子都是把 fastcgi_param 写死 这样造成了很多麻烦其实配置一个变量就可以很好的解决这个问题http { server { listen 80; server_name ~^(.+)?.mio
1.下载phpredishttps://github.com/owlient/phpredis2.安装phpredis(传说中的三板斧)phpize./configure makemake install3.安装memcachedyum install memcached php-pecl-memcache
1.安装GCCyum install gcc2.安装nginxwget http://nginx.org/download/nginx-1.4.2.tar.gz 3.安装nginx依赖的库yum install zlib-develyum install pcre-deveel4.安装PHP MYSQLyum -y install php mysql mysql-server mysql-deve
[root@MIO-U253 www.mio.com]# /usr/local/nginx/sbin/nginx -s reload
出现了这个问题 没有PCRE库./configure: error: the HTTP rewrite module requires the PCRE library.You can either disable the module by using --without-http_rewrite_moduleoption, or install the PCRE library into th
1 安装完成之后 将redis启动脚本复制至/etc/init.d/redis_端口号修改启动脚本进行一些基本的配置2 建立文件夹 /etc/redis/ 将配置文件拷贝进来 名称为端口号3 /etc/init.d/redis_端口号 start 即可 _._
make的时候报了个这个错解决方法 make MALLOC=libc