<Directory "/web/admin">## Possible values for the Options directive are "None", "All",# or any combination of:# Indexes Includes FollowSymLinks SymLinksifOw
source mysql_one{type= mysqlsql_host= localhostsql_user= rootsql_pass= 098098sql_db= sphinxsql_port= 3306sql_sock= /var/lib/mysql/mysql.socksql_query_pre= SET NAMES utf8sql_query= SELECT * FROM mio_ar
searchd 命令:强行停止:searchd --config /home/myuser/sphinx.conf –stop安静停止:searchd --config /home/myuser/sphinx.conf –stopwait状态:searchd --config /home/myuser/sphinx.conf –status指定PID文件searchd --config /home
需要提前安装好的东西yum install make gcc g++ gcc-c++ libtool make mysql-devel libxml2-devel expat-devel##安装mmseg$ cd mmseg-3.2.14$ ./bootstrap #输出的warning信息可以忽略,如果出现error则需要解决$ ./configure --
生成一个文件[root@mio-253 test]# dd if=/dev/zero bs=100k count=1 of=data1001+0 records in1+0 records out102400 bytes (102 kB) copied, 0.00105711 s, 96.9 MB/s也可以指定分割大小,将文件分割成多个更小的文件[root@mio-253 test]# split
[root@mio-253 shells]# echo $RANDOM8854[root@mio-253 shells]# echo $RANDOM12854[root@mio-253 shells]# echo $RANDOM9811[root@mio-253 shells]# echo var.$$var.11705[root@mio-253 shells]# echo var.$$var.1
Sort命令既可以从特定的文件,也可以从stdin获取输入,并将输出写入stdout[root@mio-253 shells]# sort b.txt a.txt c.txt > sorted.txt[root@mio-253 shells]# cat sorted.txt aaaabbbbbbbccccc找出已排序文件中不重复的行[root@mio-253 shells]# cat sor
计算md5sum[root@mio-253 shells]# md5sum a.txt c34bcea9f2263deb3379103c9f10c130 a.txt核实[root@mio-253 shells]# md5sum -c a.md5a.txt: OK
Xargs命令应紧跟在管道之后,他以标准输入作为主要的源数据流,并使用stdin并通过提供命令行参数来执行其他命令将多行输入换成单行输出[root@mio-253 shells]# cat a.txt | xargs1 2 3 4 5 6 7 8 9 10将单行转换成多行[root@mio-253 shells]# cat a.txt | xargs -n 21 23 45 67 89 10以字符
遇上了几个坑 首先 修改配置文件后用 nginx -s reload 打死不生效(其实也不是不生效 只是老是不正常) 重启nginx后突然什么都好了然后$1的陷阱 rewrite也会使用$1 于是造成上面的$1被覆盖了 导致错误只有把root那里使用的$1赋值给另外一个名字的变量最后配置文件如下 server { li