2018年11月19日

docker安装centos后没有ifconfig命令解决办法

摘要: 使用docker pull centos命令下载下来的centos镜像是centos7的最小安装包,里面并没有携带ifconfig命令,导致我想查看容器内的ip时不知道该怎么办 安装完成后就可以使用ifconfig命令了 阅读全文

posted @ 2018-11-19 16:06 pa200318 阅读(328) 评论(0) 推荐(0)

2017年8月23日

scp断点续传

摘要: linux命令 这个命令的含义: -P 断点续传 -rsh ssh 远程shell homefile.zip 本地文件 root@30.19.103.99:/home/remote.zip 远程主机上的目的文件 root是远程用户名 阅读全文

posted @ 2017-08-23 13:19 pa200318 阅读(252) 评论(0) 推荐(0)

2017年8月21日

Magento 1.9.x 子分类无法访问

摘要: app/code/core/Mage/Catalog/Model/Url.php 大概 ~807: Change: To: 重新 reindex 阅读全文

posted @ 2017-08-21 17:06 pa200318 阅读(91) 评论(0) 推荐(0)

2017年7月20日

Linux 下 shadowsocks 的搭建

摘要: 安装 CentOS 系统 首先安装epel扩展源: 然后安装python-pip 安装完之后别忘了清除一下cache 关键代码来了 前面主要是安装pip pip install shadowsocks 单账号配置 多帐号配置 配置文件中个字段的含义: ● server: 服务器ip地址 ● serv 阅读全文

posted @ 2017-07-20 17:26 pa200318 阅读(5) 评论(0) 推荐(0)

2017年1月16日

magento1.x 运行在 php7 优惠券的问题

摘要: 1 diff --git app/code/core/Mage/Sales/etc/config.xml 2 index 5bb43d7..7db62ca 100644 3 --- app/code/core/Mage/Sales/etc/config.xml 4 +++ app/code/core/Mage/Sales/etc/config.xml 5 @@ -1218,7 +1218... 阅读全文

posted @ 2017-01-16 10:37 pa200318 阅读(155) 评论(0) 推荐(0)

2016年11月9日

mac 安装mysql

摘要: 安装MySQL brew install mysql 可以通过 来启动/停止,启动后默认应为空密码,可以通过mysqladmin设置一个密码 Here is the procedure to reset password of root user. 1) Stop mysql (Kill mysql 阅读全文

posted @ 2016-11-09 14:03 pa200318 阅读(147) 评论(0) 推荐(0)

2016年10月28日

php输出数据到csv文件

摘要: function export() { $fileName = date('Y-m-d').uniqid().'.csv'; set_time_limit(0); ini_set('memory_limit', '1024M'); // 设置header信息 header('Content-Type: application/octet-stream'); header('Cont... 阅读全文

posted @ 2016-10-28 11:44 pa200318 阅读(448) 评论(0) 推荐(0)

2016年2月3日

登录ssh提示:ssh_exchange_identification: read: Connection reset by peer error

摘要: vim /etc/hosts.allow 添加 sshd : ALL 阅读全文

posted @ 2016-02-03 10:18 pa200318 阅读(425) 评论(0) 推荐(0)

2016年1月27日

nginx添加一个站点

摘要: server { listen 80; server_name demo.abc.com ; root /Users/pa200318/demo.cp.com/trunk; index index.php index.html; location ~* \.(jpg|jpeg|gif|css|png 阅读全文

posted @ 2016-01-27 21:07 pa200318 阅读(797) 评论(0) 推荐(0)

2015年8月28日

linux下安装node.js

摘要: { 'target_defaults': { 'cflags': [], 'default_configuration': 'Release', 'defines': [], ... 阅读全文

posted @ 2015-08-28 15:34 pa200318 阅读(225) 评论(0) 推荐(0)

导航