Chinaunix首页 | 论坛 | 博客
  • 博客访问: 311095
  • 博文数量: 96
  • 博客积分: 230
  • 博客等级: 二等列兵
  • 技术积分: 722
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-13 22:25
个人简介

心安处即吾乡!

文章分类

全部博文(96)

文章存档

2016年(1)

2014年(79)

2013年(7)

2012年(9)

我的朋友

发布时间:2014-04-17 20:25:03

1.nginx.conf配置文件如下#用户 用户组  #user  www www;#工作进程,根据硬件调整,有人说几核cpu,就配几个,我觉得可以多一点worker_processes  4;#错误日志#error_log  logs/error.log;#error_log  logs/error.log  notice;#error_log  logs/erro.........【阅读全文】

阅读(983) | 评论(0) | 转发(0)

发布时间:2014-04-17 20:24:11

在FreeBSD下的nginx服务器,需要借助FastCGI来解析PHP。1.检查 FastCGI 是否启动:# sockstat -l | grep 9000www      php-cgi    6665  0  tcp4   127.0.0.1:9000        *:*或者 # netstat -an 看是否有下面这行Pr.........【阅读全文】

阅读(1629) | 评论(0) | 转发(0)

发布时间:2014-04-17 20:23:10

Q. Quick question – How do I install VIM text editor for my FreeBSD server? Currently it has old version of vi. I like vim as it is a highly configurable text editor and efficient one.A. VIM (Vi IMproved ) is not installed by default under FreeBSD. Vim is a text editor that is upwards compati.........【阅读全文】

阅读(777) | 评论(0) | 转发(0)

发布时间:2014-04-17 20:18:33

A. CSH is default shell under FreeBSD. First, make sure bash is installed. Type bash to see if you can execute bash:$ bashIf you get command not found error. Use pkg_add command to install bash# pkg_add -r -v bashNow to setup bash as shell type chsh command.chsh -s /path/to/shell {user-nam.........【阅读全文】

阅读(675) | 评论(0) | 转发(0)

发布时间:2014-04-17 20:17:08

以下来源于一个很棒的群的聊天记录,整理成shell学习笔记(问题收集)…… 1.bash版本引起的正则匹配问题问题:market_admin_131_142:~/decli/test # [[ $a =~ "[0-9]+" ]] && echo "---"---market_admin_131_142:~/decli/test # [[ $a =~ [0-9]+ ]] && echo "---" ---market_admin_1.........【阅读全文】

阅读(928) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册