编辑~/.vimrc,没有就创建一个 set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8 保存,退出,重新打开即可显示中文。
今天忽然发现自家的op居然打不开了ui了,但确能ssh登录。咋一看,发现请求返回是403 网上搜索一番,发现是主题原因导致,所以决定命令行修改主题 修改默认主题还是很简单,修改一下 /etc/config/luci 文件中的主题名字就行了。
docker-compose docker-compose安装 curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compo...
需要让docker启动时在tcp端口2375上监听api服务 vi /etc/systemd/system/docker-tcp.socket [Unit]Description=Docker Socket for the API [Socket]ListenStream=2375BindIPv6Only=both Service=docker.servi...
<pre class="prism-highlight" prism-language-bash="">systemctl stop docker; //每个liunx版本的命令不一样。 2、创建新的docker目录,执行命令df -h,找一个大的磁盘。我的是放在/home目录下面,我的/home目录大小有...
https://mirrors.tuna.tsinghua.edu.cn/help/docker-ce/
Enable the remote API on a new socket Create a file called /etc/systemd/system/docker-tcp.socket to make Docker available on a TCP socket on port 2375. [Unit] Description=Docker So...
<pre class="prism-highlight" prism-language-bash="">/ip firewall filter add action=drop chain=input comment="Drop Invalid connections" connectio...
<pre class="prism-highlight" prism-language-bash="">/ip firewall mangle add action=mark-connection chain=forward in-interface=pppoe-out1 new-connection-ma...
最近发现linux下改了时区,同步到了硬件,ntpdate cn.pool.ntp.org怎么都没反应,时间还是不对。最后在牛人的blog中搜到了这样的方式。 <pre class="prism-highlight" prism-language-bash="">yum -y update yum -y i...