最近在忙着搭建jenkins系统集成版本控制和git分布式版本控制,其中涉及到了点svn方面的,由于自己也是第一次搭建svn,挺顺利的,中间遇到点小问题:
我使用的是yum安装的svn,安装完成配置结束。
/etc/init.d/svnserve start ok //貌似启动起来了
netstat -antple | grep svn
3690 //呀,端口也有了,貌似小意思哦
但其实你在win客户端使用时发现怎么登陆都报错,很扯淡的。
怎么解决呢?
最近在忙着搭建jenkins系统集成版本控制和git分布式版本控制,其中涉及到了点svn方面的,由于自己也是第一次搭建svn,挺顺利的,中间遇到点小问题:
我使用的是yum安装的svn,安装完成配置结束。
/etc/init.d/svnserve start ok //貌似启动起来了
netstat -antple | grep svn
3690 //呀,端口也有了,貌似小意思哦
但其实你在win客户端使用时发现怎么登陆都报错,很扯淡的。
怎么解决呢?
确认你已经安装好lnmp我用的是lnmp1.2 系统centos 6.5 32位
1.按照官方文档,下载phalcon源码。我下载到/root目录中
#git clone –depth=1 git://github.com/phalcon/cphalcon.git
2.确定是32位系统
# getconf LONG_BIT
32
#cd /root/cphalcon/build/32bits/
3.找到phpize
#whereis phpize
phpize: /usr/bin/phpize
#/usr/bin/phpize
# ./configure –with-php-config=/usr/local/php/bin/php-config –enable-phalcon
#make
1.把yaf-2.3.3.tgz下载到/root
#tar zxvf yaf-2.3.3.tgz
#cd yaf-2.3.3
2.找到phpize到目录
#whereis phpize
phpize: /usr/bin/phpize
3.执行phpize
#/usr/bin/phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
4.再执行一下命令
# ./configure – -with-php-config=/usr/local/php/bin/php-config
# make && make install
求MYSQL中某字段内的重复数据,其中ziduan是表table中的字段,具体请自行替换
select ziduan,count(ziduan) from table group by ziduan having count(ziduan)>1
比如 user_name在user_table 中重复
select user_name,count(*) as count from user_table group by user_name having count>1;
1.确定你安装好lnmp 然后备份一下nginx
cd ~
service nginx stop
mv /usr/local/nginx /usr/local/nginx18
2.安装Tengine (备注with前两个-)
cd ~
wget http://tengine.taobao.org/download/tengine-2.0.0.tar.gz
tar zxvf tengine-2.0.0.tar.gz
cd tengine-2.0.0
./configure –with-http_concat_module
make
make install
3.把以前的配置文件拷贝回来
mv /usr/local/nginx/conf/nginx.conf /usr/local/nginx/conf/nginx.confbak
cp /usr/local/nginx18/conf/nginx.conf /usr/local/nginx/conf/nginx.conf
4.编辑/usr/local/nginx/conf/nginx.conf 的对应的Server中添加如下内容
location /static/ {
concat on; #启用concat函数
concat_unique off; #允许返回不同类型的文件内容(js,css同时合并)
concat_delimiter “\n”; #自动在返回每个文件内容的末尾添加换行符
concat_ignore_file_error off; #不要忽略所合并的文件不存在等错误
}
5.重启Tengine
service nginx start
6.测试,你的js和css可以这样写
<link rel="stylesheet" type="text/css" href="/static/css/??style.css,css.css"> <script type="text/javascript" src="/static/js/??jquery.js,slide.js"></script>