摘要: 查看CentOS版本方法 有以下命令可以查看:# lsb_release -aLSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: CentOSDescript 阅读全文
posted @ 2018-11-08 16:55 浪迹天涯-阿震 阅读(26703) 评论(0) 推荐(1) 编辑
摘要: 爬取国家统计局省市区code 提供php爬取脚本以及json和sql https://github.com/zzDylan/area-code 觉得好用给个star,3q 阅读全文
posted @ 2018-08-30 14:53 浪迹天涯-阿震 阅读(2057) 评论(0) 推荐(0) 编辑
摘要: 以centos6.6为例 1、安装以及配置php 首先在官网下载源码包http://php.net/downloads.php 这里下载php-7.1.16 接下来进行参数配置,配置前如果没有libxml2和libxml2-devel会报错,所以应该更新libxml2并安装libxml2-devel 阅读全文
posted @ 2018-04-19 11:42 浪迹天涯-阿震 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 官方文档 http://nginx.org/en/docs/http/configuring_https_servers.html 官方的最简单的https配置: php的常规的http配置: php的https配置(http转发到https): 阅读全文
posted @ 2018-04-18 23:00 浪迹天涯-阿震 阅读(1602) 评论(0) 推荐(0) 编辑
摘要: 1、firewalld的基本使用 启动: systemctl start firewalld 查看状态: systemctl status firewalld 停止: systemctl disable firewalld 禁用: systemctl stop firewalld 2.systemc 阅读全文
posted @ 2018-04-18 22:18 浪迹天涯-阿震 阅读(5530) 评论(0) 推荐(0) 编辑
摘要: 如果命令不存在,则yum安装 阅读全文
posted @ 2018-04-18 21:33 浪迹天涯-阿震 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 下载composer.phar文件 将composer.phar移动到环境变量中并且更名为composer 使用国内镜像 阅读全文
posted @ 2017-01-12 12:04 浪迹天涯-阿震 阅读(6115) 评论(0) 推荐(0) 编辑
摘要: yum install libc-client-devel.x86_64(如果不行就yum install libc-client-devel)ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so cd oneinstack/srctar x 阅读全文
posted @ 2017-01-09 15:28 浪迹天涯-阿震 阅读(1606) 评论(0) 推荐(0) 编辑
摘要: find find /data -name "test.txt" -print查找到根目录下data目录中的test.txt的具体位置 which which指令会在PATH变量指定的路径中,搜索某个系统命令的位置,并且返回第一个搜索结果 whereis whereis命令是定位可执行文件、源代码文 阅读全文
posted @ 2016-12-26 11:34 浪迹天涯-阿震 阅读(167) 评论(0) 推荐(0) 编辑
摘要: git clone有两种方式,一种是http,一种是ssh。 配置ssh的好处是:在每次push代码的时候不需要输入密码。 bash上生成秘钥: 会生成一个公钥和一个密钥,公钥是放在gibhub或者gitlab类似的平台上的,而密钥是放在自己电脑上的 tortoise是常用的git图形化工具。 用t 阅读全文
posted @ 2016-12-25 01:03 浪迹天涯-阿震 阅读(256) 评论(0) 推荐(0) 编辑