猫言猫语

严以律己·宽以待人·自强不息·知行合一

Ubuntu 下禁用 PHP xdebug 扩展

| Ubuntu 下禁用 PHP xdebug 扩展已关闭评论

vim /etc/php/7.1/mods-available/xdebug.ini

zend_extension=xdebug.so注释掉

;zend_extension=xdebug.so

git merge 冲突的偷懒解决办法

| git merge 冲突的偷懒解决办法已关闭评论

如果要使用 vendor 的代码,则:

git checkout --theirs readme.md

如果要使用 master 的代码,则:

git checkout --ours readme.md

使用 Laravel Homestead 环境

| 使用 Laravel Homestead 环境已关闭评论

$ vagrant init laravel/homestead
$ vagrant up
$ vagrant ssh
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-81-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

3 packages can be updated.
0 updates are security updates.


vagrant@homestead:~$ 

Ubuntu 16.04 升级 PHP 版本至 7.1

| Ubuntu 16.04 升级 PHP 版本至 7.1已关闭评论

$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt-get upgrade php
$ php -v
Cannot load Xdebug - it was already loaded
PHP 7.1.8-2+ubuntu16.04.1+deb.sury.org+4 (cli) (built: Aug  4 2017 13:04:12) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.1.8-2+ubuntu16.04.1+deb.sury.org+4, Copyright (c) 1999-2017, by Zend Technologies
    with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans

Kubernetes Heapster 安装部署

| Kubernetes Heapster 安装部署已关闭评论

默认安装的 Dashboard 没有统计 CPU 和内存用量的图表,装上 Heapster 后就可以直观地看到各个组件的资源消耗情况

(更多…)

在 CentOS 7.3 上安装 Docker 环境

| 在 CentOS 7.3 上安装 Docker 环境已关闭评论

这篇直接通过 CentOS 官方 yum 库安装

yum install -y docker
systemctl enable docker
systemctl start docker
docker run hello-world

在 Docker 中使用第三方 Docker 镜像服务

| 在 Docker 中使用第三方 Docker 镜像服务已关闭评论

这个镜像不是私有 Registry,而是公有服务的 Mirror

# vim /etc/docker/daemon.json

{
  "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"]
}

# systemctl restart docker