在alpine中运行mysql
搬瓦工的1G内存,想要跑一个MySQL服务,动辄500M内存就没了,剩下一半的内存让我感觉很虚,于是想把是不是把MySQL塞进alpine镜像中看看,结果一搜,果然已经有大神这样做了,使用的是MariaDB,测试下来,同样跑一个博客只需要50M内存就OK,简直完美!
搬瓦工的1G内存,想要跑一个MySQL服务,动辄500M内存就没了,剩下一半的内存让我感觉很虚,于是想把是不是把MySQL塞进alpine镜像中看看,结果一搜,果然已经有大神这样做了,使用的是MariaDB,测试下来,同样跑一个博客只需要50M内存就OK,简直完美!
docker就不多说了,按照贴出的代码一步一步就可以安装成功
安装之前最好手动关闭selinux
setenforce 0
getenforce
# Permissive
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
工作学习中遇到了很多有趣的go项目和文章,收集一下
https://golang.org/doc/codewalk/sharemem/
https://blog.labix.org/2011/10/09/death-of-goroutines-under-control
https://blog.golang.org/share-memory-by-communicating
https://golang.org/doc/codewalk/sharemem/
https://www.youtube.com/watch?v=lLDWF59aZAo
http://satran.in/2017/11/15/Implementing_tails_follow_in_go.html
https://www.flysnow.org/
https://github.com/polaris1119/The-Golang-Standard-Library-by-Example
https://projecteuler.net/
https://github.com/mikespook/Learning-Go-zh-cn
https://astaxie.gitbooks.io/build-web-application-with-golang/content/zh/
https://gobyexample.com/
https://github.com/Unknwon/go-fundamental-programming
https://github.com/Unknwon/go-rock-libraries-showcases
https://golang.org/doc/effective_go.html
https://blog.golang.org/laws-of-reflection
https://www.youtube.com/channel/UC_BzFbxG2za3bp5NRRRXJSw
https://github.com/go-cmd/cmd
https://github.com/fsnotify/fsnotify
https://github.com/nathany/looper
https://github.com/hpcloud/tail
https://gopkg.in/tomb.v2
https://github.com/fatih/color
https://github.com/mattn/go-colorable
https://github.com/gongo/9t
https://github.com/shanghai-edu/multissh
https://github.com/gogs/gogs
https://github.com/pkg/errors
aix
android
darwin
dragonfly
freebsd
hurd
js
linux
nacl
netbsd
openbsd
plan9
solaris
windows
zos
386
amd64
amd64p32
arm
armbe
arm64
arm64be
ppc64
ppc64le
mips
mipsle
mips64
mips64le
mips64p32
mips64p32le
ppc
riscv
riscv64
s390
s390x
sparc
sparc64
wasm
你认识几个?
LDAP是轻量目录访问协议,这个服务从老高进入360就一直在用,LDAP带来的好处真的是很多,你可以把它想象成为一个内网版的单点登录服务,可以让你使用同一组账户密码访问所有支持LDAP验证的系统,为企业的内部运维带来了极大的便利。
不过想要自己独立搭建一个LDAP服务还是挺麻烦的!不过一旦搭建好了LDAP服务器,剩下的管理和运维就简单多了。
老高最近在整理服务器的nginx配置,但是整理好之后有一个问题,就是访问一个没有绑定的域名(已解析)的时候,会自动跳转到blog.phpgao.com。为了解决这个问题,查了很多资料,发现此文档Nginx如何处理一个请求,问题解决。
nginx的配置老高的博客里有很多篇文章都有讲过,但是总是觉得不是很标准,前些天在V2看到了这个网站,浏览后发现这个工具简直神器!