Latest Articles

RHEL7 failed to enable service

发现centos7出现

Failed to execute operation: Too many levels of symbolic links

”`text root@influxdb system \( systemctl enable kapacitor Failed to execute operation: Too many levels of symbolic links root@influxdb system \) ll /etc/systemd/system/kapacitor.service lrwxrwxrwx 1 root root 41 Oc…

Kiyor | 2017-10-27 01:03

chef user lost password?

sudo -u opscode-pgsql  /opt/opscode/embedded/bin/psql opscode_chef

select username,hashed_password,salt,email from users;
#copy your known username's password and salt
update users set hashed_password = 'xxx',salt = 'xxx' where username = 'xxx';
Kiyor | 2016-06-07 10:07

centos ffmpeg

super lazy mode

wget -N https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
tar xf ffmpeg-release-64bit-static.tar.xz
mv ffmpeg-4.0.1-64bit-static/ffmpeg /usr/local/bin/

build mode

”`bash

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

cd ~ yum install -y…

Kiyor | 2015-09-06 13:04

golang 1.5 坑一枚

golang 1.5 在常用的net/http包里新增了Request.Cancel, 导致原来可以直接把request给json化的方式出现了json: unsupported type: <-chan struct {}. 在debug的时候看不到请求了. 解决方式也十分坑…

”`go type Req struc…

Kiyor | 2015-08-25 14:24
About Blog

Welcome to my personal blog! Here I share tech articles, life insights and interesting ideas.