摘要: server { listen 80; server_name localhost; return 301 https://$host$request_uri; } server { listen 443 ssl; server_name m.com.cn; #... } 阅读全文
posted @ 2017-12-30 15:44 三百里江山 阅读(599) 评论(0) 推荐(0) 编辑
摘要: $info['date'] = $item->created_at->diffForHumans();//友好时间显示 $info['date'] = $item->created_at->formatLocalized('%Y-%m-%d'); //数字时间显示 阅读全文
posted @ 2017-12-26 18:24 三百里江山 阅读(881) 评论(0) 推荐(0) 编辑
摘要: -A INPUT -i lo -j ACCEPT #允许本机内部访问,即回环 -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT #允许本机访问外部 -A INPUT -p icmp -m icmp --icmp-type 8 -j ACC 阅读全文
posted @ 2017-12-26 15:32 三百里江山 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1: 关闭系统高级防火墙firewalld 2:编辑iptables配置文件 必备 3.使其生效 4.关闭selinux 阅读全文
posted @ 2017-12-26 15:26 三百里江山 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 在linux环境下,使用svn co (即svn checkout) 报svn: Authorization failed错误, 使用svn co svn://localhost/temp.cc /data/temp.cc 时还是报:svn: Authorization failed 请更换帐号再次 阅读全文
posted @ 2017-12-25 12:06 三百里江山 阅读(5040) 评论(0) 推荐(0) 编辑
摘要: 一. 使用createjs里的LoadQueue函数实现异步加载图片,监听加载进度 1.实例对象LoadQueue加载队列对象 2.需要监听常用到的三个方法 3.实现监听进度 4.添加加载资源 5.获取加载完的资源 二:完整的代码 阅读全文
posted @ 2017-12-07 11:18 三百里江山 阅读(1416) 评论(0) 推荐(0) 编辑
摘要: 一首页设置目录权限: /storage /bootstrap/cache 设置可写权限 二执行命令: 阅读全文
posted @ 2017-10-12 15:35 三百里江山 阅读(404) 评论(0) 推荐(0) 编辑
摘要: server{}配置 server{ #端口配置 listen 80; #域名配置 server_name laravel.cc; index index.php index.html index.htm; #站点配置到public root /data/wwwroot/lara... 阅读全文
posted @ 2017-10-12 14:37 三百里江山 阅读(827) 评论(0) 推荐(0) 编辑
摘要: 第一步:自定义目录 在app文件夹下新建Library目录,做为第三方库的目录 第二步: 修改composer.json文件 autoload节点下的psr-4自定义命名空间 规则: key: 命名空间名称,结尾必须跟上"\\" value:路径,根目录起 第三步:执行命令 第四步:如何使用 use 阅读全文
posted @ 2017-10-12 11:55 三百里江山 阅读(794) 评论(0) 推荐(0) 编辑
摘要: 找到php.ini搜索proc_get_status去掉即可. 阅读全文
posted @ 2017-10-11 17:54 三百里江山 阅读(313) 评论(0) 推荐(0) 编辑
摘要: [Symfony\Component\Process\Exception\RuntimeException] The Process class relies on proc_open, which is not available on your PHP installation. 提示不支持使用 阅读全文
posted @ 2017-10-11 17:50 三百里江山 阅读(1393) 评论(0) 推荐(0) 编辑
摘要: 提要:使用大div定位设置为relative,子div设置为absolute实现菜单下拉 实现代码: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Nav</title> 6 <styl 阅读全文
posted @ 2017-08-29 15:19 三百里江山 阅读(557) 评论(0) 推荐(0) 编辑
摘要: 准备前的知识: 定位只对块级起作用。如div,p等元素是块级元素,如果是内联元素则可以先变成块级元素,display:block即可。 开始讲解: 定位共四种:static,fixed,relative,absolute. 第一种:static为div默认,top,left,bottom,right 阅读全文
posted @ 2017-08-28 17:05 三百里江山 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 第一步:登陆linux,在终端登陆mysql 第二步:查询系统用户列表并进行添加用户 第三步:验证是否可以远程登陆 youname 表示用户名 -h 后面跟远程ip地址 附: 如果实现在更改mysql用户密码: 如果实现删除mysql用户名: 创建数据库by utf8编码 阅读全文
posted @ 2017-08-24 14:29 三百里江山 阅读(10831) 评论(2) 推荐(1) 编辑
摘要: 前提需要撑握如何分区,出门左转:http://www.cnblogs.com/300js/articles/7235063.html 第一步:新建一个2G大小的主分区 第二步:转刚新建的2G主分区转成swap交换分区 第三步:实现swap方案进行开启和关闭 阅读全文
posted @ 2017-07-25 17:22 三百里江山 阅读(669) 评论(0) 推荐(0) 编辑
摘要: 第一步:连接终端,输入fdisk -l 命令查看硬盘信息 图1 第二步:对第二块硬盘分区,输入fdisk /dev/vdb (图1的第二块硬盘名称) 第三步:格式化和挂载分区 阅读全文
posted @ 2017-07-25 16:51 三百里江山 阅读(1292) 评论(0) 推荐(0) 编辑
摘要: 官方文档:http://www.bootcss.com/p/bootstrap-datetimepicker/demo.htm 常规使用: 开始时间,结束时间的使用: 注意:开始时间必须小于结束时间,结束时间必须大于开始时间 参考文档:http://blog.csdn.net/gwpjava/art 阅读全文
posted @ 2017-07-20 11:52 三百里江山 阅读(8246) 评论(0) 推荐(1) 编辑
摘要: $(function () { function left_right() { $("#sc1452").animate({'left':'-=100'},5000).delay(1000) .animate({'left':'+=100'},5000,function(){ setTimeout(left_righ... 阅读全文
posted @ 2017-07-19 14:29 三百里江山 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 首选区分一下prop与attr的差别。prop是固有属性,attr自定义属性。 阅读全文
posted @ 2017-07-12 15:42 三百里江山 阅读(381) 评论(0) 推荐(0) 编辑
摘要: source /ect/sysconfig/i18n 立即生效 阅读全文
posted @ 2017-06-21 17:45 三百里江山 阅读(3906) 评论(0) 推荐(0) 编辑
摘要: 繁杂的命令,以下准备写好的sh,拷贝https.sh文件,设置执行权限:chmod u+x https.sh #./https.sh 1.输入你要自签名的域名地址或任意名称 2.输入一个KEY即密钥,任意字符串,最好长度32位为好 3.4次输入相同的key即可 当前目录下会生成四个文件: #cd n 阅读全文
posted @ 2017-06-14 10:48 三百里江山 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 第一步:config/mail.php是邮件配置文件,然后找到根目录.env文件 第二步:编写纯文字的邮件 第三步:编写html的邮件 先在views新建模板文件: php代码: 阅读全文
posted @ 2017-06-13 11:48 三百里江山 阅读(1883) 评论(0) 推荐(0) 编辑
摘要: 帮助说明: 安装依赖文件: 阅读全文
posted @ 2017-05-16 12:55 三百里江山 阅读(283) 评论(0) 推荐(0) 编辑
摘要: window环境开发工具 phpstore wamp winscp editplus navicat xshell5 Colors.exe git bash TortoiseSVN linux lnmp php nginx mysql memcached memcacheq git svn phpm 阅读全文
posted @ 2017-05-16 12:22 三百里江山 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 第一步:安装composerwin环境安装:下载地址:https://getcomposer.org/Composer-Setup.exe 下载后直接点击安装即可测试:cmd ->composerlinux环境安装:1)php -r "copy('https://getcomposer.org/in 阅读全文
posted @ 2017-04-06 13:48 三百里江山 阅读(1091) 评论(0) 推荐(0) 编辑