运维烂笔头

一个 SA 老兵的工作日志


  • projects

  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Sitemap

  • Commonweal 404

  • Search

How to dump all wiki pages from Phabricator

Posted on 2019-12-16 | Edited on 2019-12-19

How to dump all wiki pages from Phabricator

参照的源代码在这里:https://gist.github.com/HackToHell/9f261728f4ceda1605c9b3b1f46addbc

install software

1
2
3
4
yum -y install \
python-sqlalchemy \
python-pandas \
MySQL-python;
Read more »

用 wireguard 在两个网络之间打洞

Posted on 2019-11-02 | Edited on 2019-11-03

0 缘起

基于管理和安全的考虑,我们制定了一个大内网计划(T13),希望将公司所有的网路(办公室,各个公有云的 VPC 等)的内网打通。具体可选方案很多,我们这里采用的是 wireguard

Read more »

How to auto deploy Hexo site to GitHub pages via Github Actions

Posted on 2019-10-02 | Edited on 2019-10-03

缘起

业界良心的谷歌云(gcp)让我给玩儿坏了呀,原本这一期还没结束(应该到年底),可我的 300 刀的免费额度一个月前就已经花光了,于是乎,我的服务被停掉了。数据都没能机会拉取下来。

这样的话,给我自己折腾了进二十年的博客一个新的归宿又马上变成了火烧眉毛的事情了,早先其实一直在关注 GitHub Actions,而且也早就有申请,所以就乘着这个机会,把博客源文件、网站(静态内容)全都放在 GitHub(GitHtb Pages 服务) 上吧,同时还顺带用一下 GitHub Actions 来做自动构建、部署。

Read more »

服务器操作系统安装配置标准推荐

Posted on 2019-09-12 | Edited on 2019-09-13

操作系统安装配置规范

从事运维这么长时间,每到一个新公司,都会涉及到写标准化、规范化、流程化、制度化文档的工作,这里就整理了一份,但愿对大家有帮助。

操作系统选型

以下都是推荐值,如果没有特殊的需求,请都按照以下推荐值来操作

  • 实体机:首选 CentOS 7 系列的最新版,其次选 Ubuntu Server 的最新的 LTS 的 64 位版本,目前最新的是 18.04
  • 阿里云:选 Aliyun Linux 2 的最新版,当下是 2.1903;选 64 位版本
  • AWS:选 Amazon LInux 2 的最新版;选 64 位版本
Read more »

How to disable startup services from Aliyun

Posted on 2019-08-13 | Edited on 2019-08-15

How to disable startup services from Aliyun

1
2
3
4
5
for i in aliyun aegis
do
systemctl stop $i
systemctl disable $i
done

How to disable SELinux on CentOS 7.x in code

Posted on 2019-07-16 | Edited on 2019-07-19

How to disable startup services from Aliyun

1
2
sed -i.bak /etc/selinux/config -r -e 's/^SELINUX=.*/SELINUX=disabled/'
setenforce 0

How to host a project named "Uses This"

Posted on 2019-06-15 | Edited on 2019-06-26

缘起

最近发现一个好玩儿的东东,一个澳大利亚的人写了个网站,专门做一些 IT 人事(也有其他行业的)的访问,问你都用什么(硬件软件)呀什么的。地址在:这里

后来发现居然还是开源的!!!

一下子忍不住手痒就给弄过来自己 host 了一个网站:我的 Uses This

Read more »

用爱快路由器碰到的一个网络问题

Posted on 2019-05-21 | Edited on 2019-05-22

环境

我厂大内网都是通过 wireguard 联通的,具体可以参见文章:用 wireguard 在两个网络之间打洞 能了解以前的“洞”是怎么打的,还可以参见文章:Linux 下 wireguard 出问题的解决 了解 wireguard 打洞曾经踩过的坑。

Read more »

how to tune Nginx acted as reverse proxy for Kibana

Posted on 2019-04-19 | Edited on 2021-02-23

缘起

老套路,公司在用 AWS 上的 Elasticsearch 服务,连带的就有一个 Kibana,按照官方的说法,Kibana 这块的密码保护,可以用 AWS 的 Cognito 服务来做,或者是用前置 Nginx 反向代理的方法来做。

Read more »

Linux 下 wireguard 出问题的解决

Posted on 2019-03-11 | Edited on 2019-03-12

缘起

办公室某台跑 wireguard 打洞的机器挂了,重启之后发现 wireguard 设备起不来,

1
2
wg-quick up wg_ofc;
# 配置文件为:/etc/wireguard/wg_ofc.conf

会报错:

Cannot find device “wg_ofc”

Read more »
123…7

老杨

好记性比不过烂笔头

69 posts
8 categories
265 tags
RSS
GitHub Twitter Weibo DouBan ZhiHu
© 2021 老杨
Powered by Hexo v3.8.0
|
Theme – NexT.Pisces v6.7.0