- 博客(332)
- 资源 (3)
- 收藏
- 关注
翻译 laravel queue:work & queue:listen
laravel queue:work & queue:listenThe most important difference is that queue:work –daemon does not restart the framework on each job, but queue:listen does. In fact, listen starts a whole new Laravel p
2017-03-03 16:41:49 1819
转载 PHP判断图片格式的7种方法
转自: http://www.cnblogs.com/CheeseZH/p/4567220.html思路1. 把图片名当做字符串来处理,那么判断图片格式的也就是变成了查找“.”号的字符串。方法一:strrchr() 函数查找字符串在另一个字符串中最后一次出现的位置,并返回从该位置到字符串结尾的所有字符。echo $ext = strrchr($imgurl,'.');输
2016-08-17 14:29:31 12198
原创 Nginx直接跳转
用Nginx直接做页面跳转,可以将域名指向国外然后跳转回来 location / { rewrite ^ http://www.csdn.net redirect; }
2016-08-12 13:47:43 999
转载 sudo保持前用用户的env环境变量
在虚拟机里安装了一个Ubuntu,在局域网下,需要设置代理才能访问网络和安装程序。很自然的给sudo vim /etc/bash.bashrc添加代理。1234# 设置代理export http_proxy=http://web-proxy.oo.com:8080export https_proxy=http://web-pr
2016-07-19 14:30:59 8943
转载 How to handle big repositories with git
转自http://blogs.atlassian.com/2014/05/handle-big-repositories-git/git is a fantastic choice for tracking the evolution of your code base and to collaborate efficiently with your peers. But wh
2016-07-11 14:24:12 565
翻译 Where to put “-p” for solving “pptpd is not running”?
down votefavoriteI'm working with pptpd on 14.04 and got a problem that when run /etc/init.d/pptpd start and /etc/init.d/pptpd status, it states that /use/sbin/pptpd is not run
2016-06-30 16:27:41 498
转载 ubuntu16.04 php7 to php5.6
转自: http://askubuntu.com/questions/756181/installing-php-5-6-on-xenial-16-04List installed php packages with dpkg -l | grep php| awk '{print $2}' |tr "\n" " " then remove unneeded packages wit
2016-06-27 13:33:13 3938
转载 nginx built-in variables (nginx 内置的变量)
转自: http://siwei.me/blog/posts/nginx-built-in-variablesNginx 这些变量非常有用, refer to: http://wiki.nginx.org/HttpCoreModule#.24argsThe core module supports built-in variables, whose names correspond
2016-06-21 16:20:51 674
原创 SQL常用易忘命令
-- show global variables like "binlog_format";-- set global binlog_format=ROW;-- SHOW SLAVE STATUS;-- STOP SLAVE;SHOW SLAVE STATUS;-- SHOW PROCESSLIST;-- START SLAVE;
2016-05-31 20:07:19 424
原创 欢迎使用CSDN-markdown编辑器
Git常用易忘命令git branch --set-upstream-to=origin/dev devgit remote set-url origin [email protected]:web/wechat.git
2016-05-31 20:05:42 363
转载 PHP5.5 New features
Class name resolution via ::class ¶It is possible to use ClassName::class to get a fully qualified name of class ClassName. For example:<?phpnamespace Name\Space;class ClassName {}echo ClassName::cla
2016-04-15 14:09:36 340
转载 Nginx的命令行控制-转自《深入理解Nginx模块开发与架构解析》第2版
转自《深入理解Nginx模块开发与架构解析》第2版1.6 Nginx的命令行控制在Linux中,需要使用命令行来控制Nginx服务器的启动与停止、重载配置文件、回滚日志文件、平滑升级等行为。默认情况下,Nginx被安装在目录/usr/local/nginx/中,其二进制文件路径为/usr/local/nginx/sbin/nginx,配置文件路径为/usr/local/nginx/conf/ngi
2016-04-09 17:43:25 447
原创 jQuery滚动到页面指定位置
$('html,body').animate({scrollTop:$('#special-car').offset().top},500);
2016-04-05 14:30:32 660
转载 linux下centos用iptables做本机端口转发方法(真实可用)
一 从一台机到另一台机端口转发启用网卡转发功能#echo 1 > /proc/sys/net/ipv4/ip_forward举例:从192.168.0.132:21521(新端口)访问192.168.0.211:1521端口a.同一端口转发(192.168.0.132上开通1521端口访问 iptables -A RH-Firewall-1-INPUT -m state -
2016-03-28 14:41:21 9017
转载 php大form用post方式传递数据过多被截取的问题
环境: CentOs ver 6.3php ver 5.3.20nginx 1.0昨天生产环境出了个bug,一个巨大无比的post表单,几百个输入框,近一千个checkbox,在用post方法提交到后台的时候, 发现数据被拦腰截断。一路打debug, 发现PHP 拿到 $_POST的时候,数据就不足。一开始以为是php中的post_max_size问题,但是设成100M也不管
2015-12-31 11:14:53 3804 1
转载 CentOS 6 时间,时区,设置修改及时间同步
转自:http://blog.csdn.net/kimsoft/article/details/8091734一、时区显示时区date --help 获取帮助date -Rdate +%z上面两个命令都可[plain] view plaincopy[root@localhost ~]
2015-12-18 10:21:29 474
转载 Installing PHP and the Oracle Instant Client for Linux and Windows For PHP 5.5, OCI8 2.0 and Oracle
转自Oracle官方文档: http://www.oracle.com/technetwork/articles/dsl/technote-php-instant-12c-2088811.htmlInstalling PHP and the Oracle Instant Client for Linux and WindowsFor PHP 5.
2015-11-17 16:19:21 1280
翻译 Xdebug
Xdebug是最流行的PHP分析器之一,使用它分析应用的调用堆栈,能轻易找出瓶颈和性能问题。配置Xdebug的配置保存在php.ini文件中。下面是我推荐使用的Xdebug配置。记得要修改分析结果的输出目录。保存这些设置后,要重启PHP进程。xdebug.profiler_enable=0xdebug.profiler_enable_trigger=1xdebug.profil
2015-11-14 18:52:21 465
转载 Xdebug工作原理
转自: http://my.oschina.net/atanl/blog/371424对于PHP开发,初来咋到,开发环境的搭建和理解感觉是最操逼的一件事了。不像JAVA,打开一个Eclipse就可以开搞,Php的Debug都要几个插件来配合工作。这些都是死的,好说。但是对于Xdebug的工作原理我一直是耿耿于怀,后来看了一篇神文Xdebug断点调试的工作原理详解。读后,我的总结是,
2015-11-14 18:34:14 2355
转载 Android Studio安装
I had the same problem on a new installed Linux Mint 16. To fix this you just need to type commandsudo apt-get install openjdk-7-jdkAnd that's it. You even do not need to add repositiries or cr
2015-10-27 22:05:42 439
原创 Nginx rewrite且重置root示例
location /h5/ { rewrite ^/h5/(.*)(\.js|\.css|\.png|\.jpg|\.jpeg|\.gif|index\.php|robots\.txt)$ /$1$2 break; rewrite ^/h5/(.*)$ /h5/index.php/$1; root /data/website/testh5.fi
2015-10-24 20:53:03 2237
转载 Nginx 关于 Rewrite 执行顺序详解
Nginx 关于 Rewrite 执行顺序详解转自http://eyesmore.iteye.com/blog/1142162第一篇: break 和 last 的区别Rewrite 模块概述REFER: http://wiki.nginx.org/NginxHttpRewriteModule#rewrite If the directives of this modu
2015-10-15 10:38:15 554
转载 做MySQL主从时,注意使用replicate_wild_do_table和replicate-wild-ignore-table
使用replicate_do_db和replicate_ignore_db时有一个隐患,跨库更新时会出错。如在Master(主)服务器上设置 replicate_do_db=test(my.conf中设置)use mysql;update test.table1 set ......那么Slave(从)服务器上第二句将不会被执行 如Master设置 replic
2015-10-08 15:27:47 605
转载 MySQL从库搭建步骤
1. 创建复制账户GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO repl@'192.168.0.%' IDENTIFIED BY 'p4ssword';2. 打开主库binlog日志log_bin = mysql-binserver_id = 10如果之前没有在MySQL的配置文件中log-bin选项,就需要
2015-09-29 15:49:28 1611
转载 用mysqldump --master-data 建立slave
用mysqldump --master-data 建立slave先来看看官方文档的解释Use this option to dump a master replication server to produce a dump file that can be used to set up another server as a slave of the master. It causes
2015-09-19 20:05:55 339
原创 iptables WEB服务器配置示例
iptables -Fiptables -Xiptables -Ziptables -P INPUT ACCEPTiptables -A INPUT -i eth1 -p tcp --dport 80 -j ACCEPTiptables -A INPUT -i eth1 -p tcp --dport 12010 -j ACCEPT#iptables -A INPUT -i eth1 -p
2015-08-01 23:31:53 1609
原创 CentOS LNMP环境搭建
CentOS6 安装Nginx1.6.2 + PHP5.4.34 + MySQL 5.5安装Remi源: MySQL5.5.xrpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm测试>> yum info mysql --enablerepo=remi安装>> yum install mysql mysql-
2015-08-01 23:29:19 421
转载 四种常见的 POST 提交数据方式
四种常见的 POST 提交数据方式文章目录application/x-www-form-urlencodedmultipart/form-dataapplication/jsontext/xmlHTTP/1.1 协议规定的 HTTP 请求方法有 OPTIONS、GET、HEAD、POST、PUT、DELETE、TRACE、CONNECT 这几种。其中 POS
2015-07-29 11:11:13 463
转载 PHP 5.3.0以上推荐使用mysqlnd驱动
转自:http://zhangxugg-163-com.iteye.com/blog/18949901.什么是mysqlnd驱动?PHP手册上的描述:MySQL Native Driver is a replacement for the MySQL Client Library (libmysql). MySQL Native Driver is
2015-07-22 18:19:29 421
转载 linux blkid
在Linux下可以使用blkid命令对查询设备上所采用文件系统类型进行查询。blkid主要用来对系统的块设备(包括交换分区)所使用的文件系统类型、LABEL、UUID等信息进行查询。要使用这个命令必须安装e2fsprogs软件包。直接使用blkid可列出当前系统中所以已挂载文件系统的类型lijilin@lijilin-TH55B-HD:~$ sudo blkid/d
2015-07-21 16:53:36 1468
转载 PHP错误处理
错误类型PHP 主要有两种错误:触发错误和异常。其中触发错误大概可以分为:编译错误、引擎错误和运行时错误,其中前两个是无法捕获的;异常都是可以捕获的,当没有尝试捕获时则会中断代码。触发错误可以通过 error_get_last() 来进行获得,异常可以使用标准的 try...catch 语句来捕获。处理方式错误报告error_reporting() 函数是
2015-07-04 23:20:20 363
转载 Linux系统Load average负载详细解释
我们知道判断一个系统的负载可以使用top,uptime等命令去查看,它分别记录了一分钟、五分钟、以及十五分钟的系统平均负载例如我的某台服务器:$ uptime09:50:21 up 200 days, 15:07, 1 user, load average: 0.27, 0.33, 0.37大部分的人都认为这个数字越小越好,其实有很多关联的提示信息,今天看到这个好文
2015-06-24 09:40:50 381
原创 mysql grant
grant select, insert, update, delete, alter, drop on fldnv_worktmp.* to public_user@'%';
2015-06-19 13:38:37 407
转载 Linux Shell 1>/dev/null 2>&1 含义
转自:http://blog.csdn.net/ithomer/article/details/9288353shell中可能经常能看到:echo log > /dev/null 2>&1命令的结果可以通过%>的形式来定义输出/dev/null :代表空设备文件> :代表重定向到哪里,例如:echo "123" > /home/123.txt1 :表
2015-06-18 14:49:25 350
转载 Linux 技巧:让进程在后台可靠运行的几种方法
转自: https://www.ibm.com/developerworks/cn/linux/l-cn-nohup/我们经常会碰到这样的问题,用 telnet/ssh 登录了远程的 Linux 服务器,运行了一些耗时较长的任务, 结果却由于网络的不稳定导致任务中途失败。如何让命令提交后不受本地关闭终端窗口/网络断开连接的干扰呢?下面举了一些例子, 您可以针对不同的场景选择不同的方式来处理
2015-06-17 15:42:30 333
转载 查看linux服务器信息
1.uname -a 查看OS详细信息2. file /bin/ls 显示系统程序信息,就能看出多少位3.获得机器字长getconf LONG_BIT4.查看OS版本cat /proc/version 5.查看os详细参数信息getconf -a=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
2015-06-16 13:42:40 551
转载 查看Linux操作系统版本
如何查看Linux操作系统版本?1. 查看内核版本命令:chen@mylinuxserver:~> cat /proc/versionLinux version 2.6.5-7.244-smp (geeko@buildhost) (gcc version 3.3.3 (SuSE Linux)) #1 SMP Mon Dec 12 18:32:25 UTC 2005/pr
2015-06-15 11:10:33 466
PDFCreator_v0.9.3,可以将任何常用文件生成PDF文件!
2009-10-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人