心安处即吾乡!
发布时间: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.........【阅读全文】
发布时间: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.........【阅读全文】
发布时间: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.........【阅读全文】
发布时间: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.........【阅读全文】