linux
DAQIQIU
这个作者很懒,什么都没留下…
展开
-
usage of vi
1. ZZ(command mode) : save and exit;2.ctrl+f/b:page down/up3.H/M/L:to head,middle,low of document.4./:search forward5.?:search backward n means next march in searching6.dd:delete line...原创 2013-05-01 15:29:55 · 118 阅读 · 0 评论 -
bash tips
comand1 & comand2 :执行过comand1后立即执行comand2,comand1转入后台comand1 &&comand2:comand1执行成功后再执行comand2comand1 || comand2 :comand1执行失败时才执行comand2~/.bash_history:存放bash命令历史记录...原创 2013-05-01 21:52:10 · 119 阅读 · 0 评论 -
ls rwx前文件类型
'-':regular file'b':block special file'c':character special file'C':high performance ("contiguous data") file'd':directory'D':door (Solaris 2.5 and up)'l':symbolic link'M':off-line ("mig...原创 2013-05-07 19:46:29 · 172 阅读 · 0 评论 -
centos6 httpd 403 forbidden
启动http server后用到应用路径vi编辑html可以访问,但是自己上传资源后出现403,查看error_log发现access denied,网上搜索解决方法:1、修改httpd.conf中用户,把apache改成上传文件用户,我觉着上传文件的用户应该没权限监听80端口,我把用户直接改成root了,重启服务报错, User apache Group apa...原创 2013-05-10 15:11:16 · 259 阅读 · 0 评论 -
my linux command tips
grepgrep <expression> <path>grep '^public' /etc/passwd #search line begin with public in '/etc/passwd'grep options:-E enable extends pattern-i case insensitive-n show line n...原创 2013-05-11 22:09:06 · 105 阅读 · 0 评论 -
linux tips
/dev/null特殊的文件,可以将不需要的信息重定向到这里,相当于将它抛弃。$HOME每次登陆后,bash按照如下顺序在~/home下找.bash_profile .bash_loign .profile文件,并且执行找到的第一个文件。/etc/profile是一个全局script,每次登陆在执行个人script之前执行全局script。$?用来保存上...原创 2013-05-11 22:12:42 · 105 阅读 · 0 评论 -
安装apache http server
我的系统是centos6,自带的http server不能添加mod_jk模块,网上查是系统原因。所以自己装apache http server。安装apache http server 2.2.4,按照文档用cofigure命令配置报错,configure: error: APR not found. 需要先安装apr-1.4.6.tar.gz。安装apche APR,还是config...原创 2013-05-13 10:37:27 · 120 阅读 · 0 评论 -
apache http server jk方式整合tomcat
小配置量整合apache http server 和tomcat安装http server和tomcathttp://daqiqiu.iteye.com/blog/1867740 配置mod_jk.sotar -xvf tomcat-connectors-1.2.37-src.tar.gz ./configure --with-apxs=/<http serv...原创 2013-05-13 14:37:46 · 347 阅读 · 0 评论