摘要: 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 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 安装完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 阅读(1357) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(5927) 评论(0) 推荐(1) 编辑
摘要: 记几个常用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 阅读(2330) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(567) 评论(0) 推荐(0) 编辑
摘要: sudo mount -t cifs //hostName/shareFileName mountPoint -o username='username',password='password' 添加命令到/etc/fstab 下开机自启动,重启,挂载点就加载 //hostName/fileName 阅读全文
posted @ 2019-06-05 16:16 leon-chan 阅读(860) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(12644) 评论(0) 推荐(1) 编辑
摘要: 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 阅读(281) 评论(0) 推荐(0) 编辑
摘要: php中的变量存储在变量容器zval中,zval中除了存储变量类型和值外,还有is_ref和refcount字段。refcount表示指向变量的元素个数,is_ref表示变量是否有别名。如果refcount为0时,就回收该变量容器。如果一个zval的refcount减1之后大于0,它就会进入垃圾缓冲 阅读全文
posted @ 2019-06-03 09:21 leon-chan 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(1520) 评论(0) 推荐(0) 编辑