ubuntu 18.04 ssh登录添加Google Authenticator两步验证
安装好ubuntu之后
sudo apt update
然后安装Google Authenticator
sudo apt install libpam-google-authenticator
个人博客网站,记录一些日常遇到的问题。
安装好ubuntu之后
sudo apt update
然后安装Google Authenticator
sudo apt install libpam-google-authenticator
lede的snmp配置文件
agentaddress UDP:161
sysLocation office
sysContact bofh@example.com
sysName HeartOfGold
com2sec ro default public
com2sec rw localhost private
group public v1 ro
group public v2c ro
group public usm ro
group private v1 rw
group private v2c rw
group private usm rw
view all included .1
access public "" any noauth exact all none none
access private "" any noauth exact all all all
exec filedescriptors /bin/cat /proc/sys/fs/file-nr
编辑 /etc/wpa_supplicant/wpa_supplicant.conf
文件,添加:
network={
ssid="无线网名称"
psk="无线网密码"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
auth_alg=OPEN
}
最近遇到Nginx下网页错位,通过chrome的开发者工具发现这么一句话
Resource interpreted as Stylesheet but transferred with MIME type application/octet-stream:
解决办法也很简单,在配置文件中加入
include mime.types;
就行了,该文件内容如下
在php.ini
配置文件中,修改cgi.fix_pathinfo
配置,把原来的
cgi.fix_pathinfo=0
修改为
cgi.fix_pathinfo=1
wget https问题 , 解决方法
apk update && apk add ca-certificates && update-ca-certificates && apk add openssl
开发工具安装
apk add build-base && apk add alpine-sdk