这次LAMP环境才去多服务器方式,apache部署在一台服务器上PHP部署在一台服务器上MariaDB部署在一台服务器上。
测试OS:Centos6.5x86_64
软件版本:apache2.4.xphp5.4.xMariaDB5.5.x
网络环境:
[root@LookBack163~]#ifconfigeth0|awk-F‘[:]+‘‘/inetaddr/{print$4}‘
172.16.41..
分类:
数据库 时间:
2014-08-15 02:57:58
阅读次数:
720
sed命令sed只是对缓冲区中原始文件的副本进行编辑,不改变源文件,所以要保存则要重定向到另一个文件sed三种方式:1.sed[选项]‘sed命令‘输入文件2.sed[选项]-fsed脚本文件输入文件3../sed脚本文件输入文件其中3的sed脚本文件要以#!bin/sed-f等开头选项:-n不打印所有行到标准输..
分类:
其他好文 时间:
2014-08-15 02:52:27
阅读次数:
555
1. 高精度这题略水,字符串可过,还不加压位等,操作只有BitShift和add/sub,不过编程复杂度有些高.(输出都是二进制我能说些什么...)2. N皇后问题 (警告! 不是平时你见到的N皇后问题...是一道Hash的模拟题,N皇后的位置都给你了,就是统计)二级标题很详细了,搜索那些解N皇后问...
分类:
其他好文 时间:
2014-08-15 01:28:07
阅读次数:
284
1.table,title,td,tr
无标题
First
Second
First
Second
2.about_meta,title,refresh,body,pre,h1,span,b,i,u,tt,sup,sub,s, ,®,©...
title 标...
分类:
Web程序 时间:
2014-08-14 23:57:36
阅读次数:
494
DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located...
分类:
其他好文 时间:
2014-08-14 23:39:56
阅读次数:
234
#$1必须是绝对路径crurl=$1func_hdir(){echo$crurlcd$crurlforaitemin`ls-l|grep"^d"|awk‘{print$9}‘`;docrurl=$crurl/$aitemfunc_hdir$aitemdonedirc=`ls$crurl`if["$dirc"=""]thenecho$crurlrm-rf$crurlficrurl=${crurl%/*}}func_hdir
分类:
系统相关 时间:
2014-08-14 20:59:50
阅读次数:
282
有一些网友看了前两天的《Linux下应该知道的技巧》希望我能教教他们用awk和sed,所以,出现了这篇文章。我估计这些80后的年轻朋友可能对awk/sed这类上古神器有点陌生了,所以需要我这个老家伙来炒炒冷饭。况且,AWK是贝尔实验室1977年搞出来的文本出现神器,今年是蛇年,是AWK的本命年,而且...
分类:
其他好文 时间:
2014-08-14 20:14:19
阅读次数:
328
#!/bin/basha=($(awk‘{print$1}‘/home/yanchao/ip.txt))b=($(awk‘{print$2}‘/home/yanchao/ip.txt))c=($(awk‘{print$3}‘/home/yanchao/ip.txt))d=($(awk‘{print$4}‘/home/yanchao/ip.txt))e=($(awk‘{print$5}‘/home/yanchao/ip.txt))for((i=0;i<${#a[@]};i++))docobblersyst..
分类:
其他好文 时间:
2014-08-14 17:10:09
阅读次数:
208
functioncomptime(beginTime,endTime){varbeginTimes=beginTime.substring(0,10).split('-');varendTimes=endTime.substring(0,10).split('-');//parse方法要求短日期可以...
分类:
Web程序 时间:
2014-08-14 16:29:38
阅读次数:
203
效果很好而且很简单用text的click属性即可private sub text1_click()label1.caption="******"label2.caption=""label3.caption=""label4.caption=""……labeln.caption=""end subp...
分类:
其他好文 时间:
2014-08-14 16:03:58
阅读次数:
249