Apr252012
Apr202012
nginx: [emerg] unknown “fastcgi_https” variable
在使用nginx的过程中,有一次重启nginx出现这样的错误:
【Restarting nginx: nginx: [emerg] unknown “fastcgi_https” variable nginx: configuration file /etc/nginx/nginx.conf test failed】
后来发现需要在nginx.conf中需要加入如下设置:
log_format main ‘$remote_addr – $remote_user [$time_local] “$request “‘
‘$status $body...阅读全文
Apr162012
Apr162012
Netbeans在Ubuntu下的配置(字体问题)
转之:Netbeans在Ubuntu下的配置
在ubuntu上安装了netbeans,但是每次都会被其字体问题搞得混天黑地,从网上找到了这篇文章。
说明:从网上可以搜到各种Netbeans在Linux下中文方块的问题和解决办法,用来用去,实际上直接使用Ubuntu下自代的“文泉驿[等宽]微米黑”字体最方便(个人喜好)。
解决方法:
Java代码
cd /usr/java/jdk1.6.0_27/jre/lib/fonts
sudo mkdir fallback
sudo ln -s ...阅读全文
Apr132012
ubuntu中安装和配置nginx,php,mysql环境
1、Nginx
安装nginx
sudo apt-get install nginx
Ubuntu安装之后的文件结构大致为:
所有的配置文件都在/etc/nginx下,并且每个虚拟主机已经安排在了/etc/nginx/sites-available下
程序文件在/usr/sbin/nginx
日志放在了/var/log/nginx中
并已经在/etc/init.d/下创建了启动脚本nginx
默认的虚拟主机的目录设置在了/var/www/nginx-default (有的版本 默认的虚拟主机的目录设置在了/var/www,...阅读全文
Apr132012
NGINX 启动[warn]: conflicting server name “abc.com” on 0.0.0.0:80, ignored
启动NGINX的时候提示 [warn]: conflicting server name “abc.com” on 0.0.0.0:80, ignored 出现这个错误一般是由于技术员的粗心造成的,原因是相同的域名abc.com出现两次甚至是多次 一般在把配置文件分离出来写时候会容易犯。技术员经常复制配置文件,然后忘记修改里面的内容 解决方法就是把所有配置文件查一遍看是否有重复出现的。 或者查询哪个配置文件中有abc.com
阅读全文
Mar142012
Mar082012
Mar082012
PHPUnit + Netbeans, integration with Magento
转载之:PHPUnit + Netbeans, integration with Magento | Summa Solutions.
These are a few and easy steps.
- First you have to get your environment ready (for that read this post).
- Then go to Netbeans and open your Magento project.
- Right click on the index file and select the “Creat PHPUnit tests” option:
- It will ask you to select the tes...阅读全文
Mar032012



