摘要:PHPstorm不停Indexing最新解决办法 1、网络上千篇一律的解决办法 File -> Invalidate Caches / Restart... -> Invalidate and Restart 很大一部分同学也用这个方法解决了 2、我们今天来说一种不一样的方法(上面方法没解决的可以参
阅读全文
摘要:$# 是传给脚本的参数个数 $0 是脚本本身的名字 $1 是传递给该shell脚本的第一个参数 $2 是传递给该shell脚本的第二个参数 $@ 是传给脚本的所有参数的列表 $* 是以一个单字符串显示所有向脚本传递的参数,与位置变量不同,参数可超过9个 $$ 是脚本运行的当前进程ID号 $? 是显示
阅读全文
摘要:$ sudo hostnamectl set-hostname your-hostname $ sudo vim /etc/hosts Open the hosts file and add the following line: 127.0.1.1 your-hostname
阅读全文
摘要:3 Ways to Force Unmount in Linux Showing “device is busy” Updated August 8, 2019By Bobbin ZachariahLINUX HOWTO, TROUBLESHOOTING When you do an NFS mou
阅读全文
摘要:How to Set Up a NFS Server on Debian 10 Buster Nick CongletonDebian24 May 2019 Contents 1. Software Requirements and Conventions Used 2. Install the N
阅读全文
摘要:How to Fix a Frozen Mac When Updating macOS By Mike Tee – Posted on Sep 1, 2019 in Mac While macOS is a very robust operating system, sometimes there
阅读全文
摘要:How to Fix Broken Packages in Ubuntu By Nick Congleton – Posted on Jan 11, 2019 in Linux Apt, Ubuntu’s package manager, is among the most powerful and
阅读全文
摘要:In today’s tutorial, we are going to see how you can add a user to sudoers on Debian distributions. The sudo command allows authorized users to perfor
阅读全文
摘要:一些VMware vCenter Appliance的默认用户名和密码 2014-03-30 17:30:03 flowershade_21 阅读数 13367更多 分类专栏: vmware VMware vCloud Director Appliance: Username: root Passw
阅读全文
摘要:安装kubernetes的时候,需要安装kubelet, kubeadm等包,但k8s官网给的yum源是packages.cloud.google.com,国内访问不了,此时我们可以使用阿里云的yum仓库镜像。 阿里云上没有附Help说明连接,简单摸索了下,如下设置可用(centos)。注意不要开启
阅读全文
摘要:1 问题 Ubuntu 启动时卡在开机界面上 2 修复 $ sudo apt-get -y reinstall ubuntu-desktop*
阅读全文
摘要:一、概述 搭建k8s集群时,需要访问google,下载相关镜像以及安装软件,非常麻烦。 正好阿里云提供了k8s的更新源,国内用户就可以直接使用了。 二、环境介绍 操作系统 主机名 IP地址 功能 配置 ubuntu-16.04.5-server-amd64 k8s-master 192.168.10
阅读全文
摘要:1 问题 有时,我们请求国外资源时,下载巨慢,甚至失败。如: cd vue-devtools/ $ yarn install 进行到 cypress.... 时,可能失败。 2 解决 次日凌晨(7~8点左右),再运行一下。居然成功了! 3 思考 可能是出口太过拥挤了吧。
阅读全文
摘要:背景 注意: 此方案仅适合已经自行搭建私有仓库的用户使用 如非必要,尽可能使用软件开发云或其他服务提供的镜像站,避免此类特殊处理(会导致仓库维护成本增加) 场景描述 YARN构建中,如果使用了cypress包,会出现如下的下载过程 1. 从npm仓库下载 cypress.tgz : npm http
阅读全文
摘要:1 注册一个 github.com 账号 2 进入你感兴趣的项目 3 Fork 一个副本到你的账号之下 4 git clone https://github.com/your-name/fork-project-name.git 是不是快了许多呢!
阅读全文
摘要:理解git 中的HEAD指针&branch指针 Yooye关注 2019.02.28 10:44:32字数 492阅读 668 HEAD指针 使用git checkout 来移动HEAD指针,移动的对象可以是分支指针也可以是快照。HEAD指针可以指向快照也可以指向branch。当指向branch时提
阅读全文
摘要:Docker Compose 配置文件详解 左蓝关注 72017.01.19 23:25:09字数 2,827阅读 144,706 先来看一份 docker-compose.yml 文件,不用管这是干嘛的,只是有个格式方便后文解说: version: '2' services: web: image
阅读全文
摘要:1、查看一下当前源 yarn config get registry 2、切换为淘宝源 yarn config set registry https://registry.npm.taobao.orgyarn config set sass_binary_site "https://npm.taob
阅读全文
摘要:2019-04-12发布:hangge阅读:934 1,问题描述 最近建了个 Laravel 项目,当配置好 MySQL 数据库进行请求时,页面报如下错误: SQLSTATE[HY000] [2054] The server requested authentication method unkno
阅读全文
摘要:reCAPTCHA打不开的解决方法 by WernerPosted on2018年1月8日 reCAPTCHA是国外广泛使用的验证码,但由于一些原因国内无法使用。 观察使用reCAPTCHA的网站,发现验证码无法加载是因为无法加载如下JavaScript文件: https://www.google.
阅读全文
摘要:Laradock Laravel database connection refused SHARE Laradock is a PHP development environment which runs on Docker. It is a collection of images such a
阅读全文
摘要:Docker is an increasingly popular software package that creates a container for application development. Developing in Docker speeds up applications,
阅读全文
摘要:Linux 组是用于管理 Linux 中用户帐户的组织单位。对于 Linux 系统中的每一个用户和组,它都有惟一的数字标识号。它被称为 用户 ID(UID)和组 ID(GID)。组的主要目的是为组的成员定义一组特权。它们都可以执行特定的操作,但不能执行其他操作。 Linux 中有两种类型的默认组。每
阅读全文
摘要:由于某些软件并没有增加开启启动的服务,很多时候需要手工添加,一般我们都是推荐添加命令到 /etc/rc.local 文件,但是 Debian 9 默认不带 /etc/rc.local 文件,而 rc.local 服务却还是自带的 root@debian9 ~ # cat /lib/systemd/s
阅读全文
摘要:request的方法 描述 input('key','default-value') 此方法可以获取get请求所带来的特定参数的值,如果没有该参数可以提供默认值 all() 此方法获取get请求的所有参数,然后会返回一个数组,一个键值对数组 path() 对于http://localhost/tes
阅读全文
摘要:The Repository Pattern in Laravel is a very useful pattern with a couple of great uses. The first use is the abstraction that it provides. Meaning, it
阅读全文
摘要:Laravel Repository Pattern The Repository Pattern can be very helpful to you in order to keep your code a little cleaner and more readable. In fact, y
阅读全文
摘要:在本文中,我会向你展示如何在 Laravel 中从头开始实现 repository 设计模式。我将使用 Laravel 5.8.3 版,但 Laravel 版本不是最重要的。在开始写代码之前,你需要了解一些关于 repository 设计模式的相关信息。 repository 设计模式允许你使用对象
阅读全文
摘要:公司项目可能需要对架构进行重建,老大给了我一个视频让我学习里面的思想,看完后觉得收获很大,主讲人对laravel项目各个层次有很清晰的理解,力求做到职责单一分明,提高可维护性。下面是我看完视频对其内容的大概整理,以及一些自己的见解,有错误的请指出。视频:https://www.youtube.com
阅读全文