随笔分类 - Linux
摘要:#!/bin/bash . /etc/profile.d/modules.sh CDDIR="$(cd "$(dirname "$0")" ; pwd -P)" #软件安装包 BISHENG="BiSheng-compiler-2.5.0.1-aarch64-linux.tar.gz" HYPERM
阅读全文
摘要:root@ubuntu:~# cat /etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netpl
阅读全文
摘要:#!/bin/bash osversion=kylin_HPC cdromdir="/mnt" tftpdir="/var/lib/tftpboot" dhcpNet="168.7.10.0" netMask="255.255.255.0" dhcpRange="168.7.10.100 168.7
阅读全文
摘要:#!/bin/bash cdromdir="/mnt" tftpdir="/var/lib/tftpboot" dhcpNet="168.7.10.0" netMask="255.255.255.0" dhcpRange="168.7.10.100 168.7.10.200" nextServer=
阅读全文
摘要:NFS配置: [root@localhost ~]# echo "/aa *(rw)" >>/etc/exports [root@localhost ~]# mkdir /aa && chmod 777 -R /aa [root@localhost ~]# systemctl start nfs &
阅读全文
摘要:######################################################## 缓存下载离线软件包 apt download -d apache ls /var/cache/archives/ apt remove --purge linux-tools-4.15.
阅读全文
摘要:cat>/root/non.txt<<EOF n p 3 Z w q EOF fdisk /dev/vda </root/non.txt partprobe /dev/vda pvcreate /dev/vda3 vgextend centos /dev/vda3 lvextend /dev/map
阅读全文
摘要:#关闭安装驱动和固件 sed -i.bak 's/.*driver.yml/#&/g' /root/ascend-deployer-5.0.RC3.B009/ascend_deployer/playbooks/check.yaml sed -i.bak 's/.*npu/#&/g' /root/as
阅读全文
摘要:docker tag ascendhub.huawei.com/public-ascendhub/ascend-pytorch:23.0.RC2-centos7 torch:b030 docker save torch:b030 > test.tar ctr -n=k8s.io images imp
阅读全文
摘要:#!/bin/bash # # system init config # # enable root login sed -i.bak '31 a\PermitRootLogin yes' /etc/ssh/sshd_config /etc/init.d/ssh restart # enable o
阅读全文
摘要:#!/bin/bash # # system init config # # enable root login sed -i.bak '31 a\PermitRootLogin yes' /etc/ssh/sshd_config /etc/init.d/ssh restart # enable o
阅读全文
摘要:cat>/etc/yum.repos.d/CentOS-Base.repo<<EOF # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update stat
阅读全文
摘要:ubuntu安装NFS # config NFS Server apt install -y nfs-common apt install -y nfs-kernel-server apt install -y rpcbind cat>/etc/exports<<EOF /data *(rw,no_
阅读全文
浙公网安备 33010602011771号