摘要: 默认安装的node版本太低,是4.2.6的 执行下面命令 1.curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - 可能会报以下错误 我们切换到/etc/apt/source.list.d目录下面 将第一个node_js的lis 阅读全文
posted @ 2018-09-10 15:46 Forward1990 阅读(1455) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install software-properties-common python-software-properties sudo add-apt-repository ppa:ondrej/phpsudo apt-get updatesudo apt-get insta 阅读全文
posted @ 2018-09-04 16:46 Forward1990 阅读(823) 评论(0) 推荐(0) 编辑
摘要: ^(?=.*\S).+$ 阅读全文
posted @ 2018-08-07 19:04 Forward1990 阅读(2352) 评论(0) 推荐(0) 编辑
摘要: 所有文件 git reset HEAD . 单个文件git reset HEAD -filename 阅读全文
posted @ 2018-07-09 16:13 Forward1990 阅读(1729) 评论(1) 推荐(0) 编辑
摘要: npm install npm install -g webpack 之后再执行npm run dev报错如下 1.npm ERR! addLocal Could not install /home/vagrant/code/fronthollyerp/–no-bin-links 执行npm i - 阅读全文
posted @ 2018-06-25 11:12 Forward1990 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 我这里使用的是qq邮箱,配置如下 config/mail.php 'driver' => env('MAIL_DRIVER', 'smtp'), 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 'port' => env('MAIL_PORT', 58 阅读全文
posted @ 2018-06-12 11:36 Forward1990 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 检查下站点nginx配置文件 是否有 location / {try_files $uri $uri/ =404; } 有的话把他替代下面这行 location / { try_files $uri $uri/ /index.php?$query_string; } 阅读全文
posted @ 2018-04-21 16:03 Forward1990 阅读(2951) 评论(0) 推荐(0) 编辑
摘要: 1.检查80端口是否被占用了,输入命令netstat -ltunp 2.如果被占用,kill掉这个进程 3.如果还是报上面错误,查看nginx site-enable的默认default文件中是否有listen [::]:80 default_server;有的话把他注释掉,因为这行对应的是ipv6 阅读全文
posted @ 2018-04-21 15:58 Forward1990 阅读(1757) 评论(0) 推荐(0) 编辑
摘要: 查看nginx日志/var/logs/nignx下你自己定义的error文件名 发现报错内容如下 2018/03/30 08:31:12 [crit] 1465#1465: *1 connect() to unix:/var/run/php/php7.2-fpm.sock failed (2: No 阅读全文
posted @ 2018-03-30 16:50 Forward1990 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 换行符 unix系列用 \n windows系列用 \r\n mac用 \r PHP中可以用PHP_EOL来替代 阅读全文
posted @ 2017-10-13 13:54 Forward1990 阅读(190) 评论(0) 推荐(0) 编辑