将更新源换成vault.centos.org
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
将更新源换成vault.centos.org
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
yum install python3 python3-pip
pip3 install -U scikit-learn
pip3 install -U ipython
python3 -m pip install --upgrade pip
pip install notebook
pip3 install jieba
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade Pillow
pip3 install matplotlib
pip install -U tensorflow
master:1.1.1.1
node-1:2.2.2.2
node-2:3.3.3.3
1、关闭防火墙
firewalld和iptables
2、k3s主节点执行curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | K3S_TOKEN=TTTTOOOOKKKK sh -s - \
--node-external-ip="1.1.1.1" \
--disable traefik \
--flannel-backend=wireguard-native \
--flannel-external-ip
[INFO] Creating /usr/local/bin/kubectl symlink to k3s
[INFO] Creating /usr/local/bin/crictl symlink to k3s
[INFO] Creating /usr/local/bin/ctr symlink to k3s
[INFO] Creating killall script /usr/local/bin/k3s-killall.sh
[INFO] Creating uninstall script /usr/local/bin/k3s-uninstall.sh
[INFO] env: Creating environment file /etc/systemd/system/k3s.service.env
[INFO] systemd: Creating service file /etc/systemd/system/k3s.service
[INFO] systemd: Enabling k3s unit
Created symlink from /etc/systemd/system/multi-user.target.wants/k3s.service to /etc/systemd/system/k3s.service.
[INFO] systemd: Starting k3s
如果有两个库在同一个目录下,需要单独配置,就不能用SVNParentPath,要用SVNPath
<Location /svn/docs>
DAV svn
SVNPath /svn/docs
AuthType Basic
AuthName " hello SVN user ! "
AuthUserFile /svn/docs/conf/passwd
AuthzSVNAccessFile /svn/docs/conf/authz
Require valid-user
</Location>
<Location /svn/code>
DAV svn
SVNPath /svn/code
AuthType Basic
AuthName " hello SVN user ! "
AuthUserFile /svn/code/conf/passwd
AuthzSVNAccessFile /svn/code/conf/authz
Require valid-user
</Location>
curl -sL yabs.sh | bash -s -- -i5
注:$connectionName需修改为当前服务器的网卡名称,如eth0等
nmcli con mod $connectionName ipv4.dns “192.168.51.252 192.168.51.253”
nmcli con mod $connectionName ipv4.dns-search “sit-zg”
nmcli con mod $connectionName ipv4.dns-options “ndots:5,timeout:1”
ifdown $connectionName && ifup $connectionName
1、进入容器docker exec -it firefox /bin/bash
2、查看系统cat /etc/issue
Welcome to Alpine Linux 3.18
3、安装中文字体apk add --update ttf-dejavu fontconfig
4、删除缓存rm -rf /var/cache/apk/*
5、刷新字体mkfontscale && mkfontdir && fc-cache
6、验证fc-list
发现并没有中文字体!!!(1-6步骤还是要执行,否则没有mkfontscale命令)
7、从windows系统复制一个微软雅黑
C:\Windows\Fonts\msyh.ttc
8、docker容器中建立一个文件夹docker exec -it firefox /bin/bash
mkdir /usr/share/fonts/win
9、上传msyh.ttc到宿主机,复制到docker容器docker cp /root/msyh.ttc f718979f28a3:/usr/share/fonts/win
10、刷新缓存mkfontscale && mkfontdir && fc-cache
11、firefox内选择字体
仓库地址:https://hub.docker.com/r/linuxserver/firefox
文档地址:https://docs.linuxserver.io/images/docker-firefox
macvlan是Linux操作系统内核提供的网络虚拟化方案之一,更准确的说法是网卡虚拟化方案。它可以为一张物理网卡设置多个mac地址,相当于物理网卡施展了影分身之术,由一个变多个,同时要求物理网卡打开混杂模式。针对每个mac地址,都可以设置IP地址,本来是一块物理网卡连接到交换机,现在是多块虚拟网卡连接到交换机。
1、启用macvlan模块modprobe macvlan
lsmod | grep macvlan
2、设置网卡混杂模式ip link set eth0 promisc on
3、创建macvlan网络docker network create -d macvlan \
--subnet=192.168.1.0/24 \
--ip-range=192.168.1.0/24 \
-o macvlan_mode=bridge -o parent=eth0 \
macvlan
1、openspeedtest测速docker pull openspeedtest/latest
docker run --restart=unless-stopped --name openspeedtest -d -p 3000:3000 -p 3001:3001 openspeedtest/latest
2、访问
http://IP:3000
nginx.conf配置:
继续阅读nginx代理http和https