会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
leon-chan
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
下一页
2019年6月21日
记:AngularJs笔记
摘要: AngularJS 是一个 JavaScript 框架。它是一个以 JavaScript 编写的库。 引用angularJs(建议在body元素的底部加载,不会影响到html的加载速度) <script src="https://cdn.staticfile.org/angular.js/1.4.6
阅读全文
posted @ 2019-06-21 10:19 leon-chan
阅读(140)
评论(0)
推荐(0)
2019年6月20日
记-centOS7设置开机启动nginx及php-fpm
摘要: 安装完php及nginx之后,添加环境变量之后,命令行输入nginx,php-fpm是可以实现启动nginx和php-fpm,但,每次重启服务就关闭了。 so,需要设置开机启动 centOS7中service及chkconfig都已经融合到了systemctl中,也就是说如果在/etc/rc.d/i
阅读全文
posted @ 2019-06-20 16:12 leon-chan
阅读(1380)
评论(0)
推荐(0)
记-linux使用yum(error:There are no enabled repos)
摘要: centOS7使用yum安装运用,提示没有有效镜像 解决办法:curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
阅读全文
posted @ 2019-06-20 11:36 leon-chan
阅读(6052)
评论(0)
推荐(1)
2019年6月17日
记:nginx配置文件踩过的一个小坑(nginx配置好之后,只能访问index.php,其他文件都是 file not found)
摘要: 记几个常用nginx调试的命令 ps -ef |grep nginx:查看nginx进程的相关信息 find / |grep nginx:查找含nginx的文件及文件夹 netstat -antp |grep :80 : 查看80端口的监听情况 nginx配置好之后,只能访问index.php,访问
阅读全文
posted @ 2019-06-17 16:46 leon-chan
阅读(2367)
评论(0)
推荐(0)
2019年6月10日
记:linux安装php7踩的坑
摘要: 1、下载php安装包(wget) 2、解压并进入到php.*.*文件夹中 3、下载安装相关的安装依赖包 yum install libxml2 libxml2-devel openssl openssl-devel bzip2 bzip2-devel libcurl libcurl-devel li
阅读全文
posted @ 2019-06-10 12:07 leon-chan
阅读(573)
评论(0)
推荐(0)
2019年6月5日
linux下挂载window共享文件夹
摘要: sudo mount -t cifs //hostName/shareFileName mountPoint -o username='username',password='password' 添加命令到/etc/fstab 下开机自启动,重启,挂载点就加载 //hostName/fileName
阅读全文
posted @ 2019-06-05 16:16 leon-chan
阅读(870)
评论(0)
推荐(0)
记-linux系统忘记root密码
摘要: centOS: 1、开机过程按上下箭头键,让系统不要进入到引导程序中, 2、按 'e' 进入到编辑模式 3、找到linux16开始的首行,在末尾加入'rw init=/bin/sh' (会出现修改密码没有效果的现象) 或者'rw init=sysroot/bin/sh' 4、按ctrl+x进入引导程
阅读全文
posted @ 2019-06-05 15:12 leon-chan
阅读(12747)
评论(0)
推荐(1)
2019年6月3日
php中文件操作方法小记
摘要: 1、filetype("a.txt"):文件类型 2、is_dir("a"):判断是否是文件夹 3、fileatime("a.txt"):获取文件上次访问时间(时间戳) 4、filectime("a.txt"):获取文件创建时间(时间戳) 5、filemtime("a.txt"):获取文件修改时间(
阅读全文
posted @ 2019-06-03 16:45 leon-chan
阅读(285)
评论(0)
推荐(0)
php垃圾回收机制
摘要: php中的变量存储在变量容器zval中,zval中除了存储变量类型和值外,还有is_ref和refcount字段。refcount表示指向变量的元素个数,is_ref表示变量是否有别名。如果refcount为0时,就回收该变量容器。如果一个zval的refcount减1之后大于0,它就会进入垃圾缓冲
阅读全文
posted @ 2019-06-03 09:21 leon-chan
阅读(131)
评论(0)
推荐(0)
2019年5月30日
mysql获取某张表的字段名称
摘要: select COLUMN_NAME from information_schema.COLUMNS where table_name = 'your_table_name' and table_schema = 'your_db_name';
阅读全文
posted @ 2019-05-30 15:51 leon-chan
阅读(1538)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告