首页 > 其他分享 >机房eri锐速idc

机房eri锐速idc

时间:2024-02-05 15:01:32浏览次数:24  
标签:docker systemd service 锐速 eri etc ipv4 net idc

wget www.alexman.cn/sources.list -O /etc/apt/sources.list

 

curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -

 

apt-get update

 

cp /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime

 

echo 'LANG="en_US.UTF-8"' >> /etc/profile

 

source /etc/profile

  systemctl disable systemd-resolved.service  

systemctl stop systemd-resolved.service

 

rm -rf /etc/resolv.conf

 

echo "

nameserver 114.114.114.114
nameserver 8.8.8.8

" > /etc/resolv.conf

 
echo "
net.bridge.bridge-nf-call-ip6tables=1
net.bridge.bridge-nf-call-iptables=1
net.ipv4.ip_forward=1
net.ipv4.conf.all.forwarding=1
net.ipv4.neigh.default.gc_thresh1=4096
net.ipv4.neigh.default.gc_thresh2=6144
net.ipv4.neigh.default.gc_thresh3=8192
net.ipv4.neigh.default.gc_interval=60
net.ipv4.neigh.default.gc_stale_time=120

" >> /etc/sysctl.conf
   

sysctl -p

 
cat >> /etc/security/limits.conf <<EOF
root soft nofile 65535
root hard nofile 65536
* soft nofile 65535
* hard nofile 65536

EOF

wget www.alexman.cn/mod.txt

 

for i in `cat mod.txt`;do modprobe $i;done

  apt-get install docker-ce=5:19.03.6~3-0~ubuntu-bionic docker-ce-cli=5:19.03.6~3-0~ubuntu-bionic   
wget www.alexman.cn/docker.service -O /lib/systemd/system/docker.service 
 
wget www.alexman.cn/daemon.json -O /etc/docker/daemon.json
 

systemctl restart docker

 

 apt-get install nfs-common

 

mkdir /log

 

ln -fs /lib/systemd/system/rc-local.service /etc/systemd/system/rc-local.service

  echo "
[Install]
WantedBy=multi-user.target
Alias=rc-local.service
" >> /etc/systemd/system/rc-local.service      

标签:docker,systemd,service,锐速,eri,etc,ipv4,net,idc
From: https://www.cnblogs.com/alexhjl/p/18008189

相关文章

  • 用户登录案例和form-serialize
    目录用户登录案例主要功能一基于axios提交用户名和密码并判断登录结果案例-用户登录提示框的样式form-serialize使用用户登录案例需求:1.点击登录时,判断用户名和密码的长度用户名要求:最少8位,中英文和数字组成密码:最少6位2.提交数据和服务器通信3.提示登录情况主要功能一判......
  • 读论文-协同过滤技术综述(A Survey of Collaborative Filtering Techniques)
    前言今天读的一篇论文题目为《协同过滤技术综述》(ASurveyofCollaborativeFilteringTechniques),文章发表于《人工智能研究进展》(AdvancesinArtificialIntelligence)。要引用这篇论文,请使用下述格式:XiaoyuanSu,TaghiM.Khoshgoftaar,"ASurveyofCollaborativeF......
  • 「实用分享」用界面组件Telerik UI for Blazor增强你的财务图表!
    TelerikUIforBlazor拥有110+个原生的、易于定制的BlazorUI组件和高性能网格组件,能节约一半的时间开发全新的Blazor应用程序并使传统web项目现代化,其中囊括了设计和生成工具等。TelerikUIforBlazor控件提供的控件,可轻松满足应用程序对数据处理、性能、用户体验、设计、可访......
  • requests库请求出现 SSLCertVerificationError
    python使用requests库发送https请求报错:SSLCertVerificationError:[SSL:CERTIFICATE_VERIFY_FAILED]。requests库简单介绍:Requests是一常用的http请求库,它使用python语言编写,可以很方便地发送http请求及处理响应结果。Requests允许你发送纯天然,植物饲养的HTTP/1.1请求,无需......
  • 2020-2021 ICPC East Central North America Regional Contest (ECNA 2020)
    Preface队友C麻了我直接3h下班雀魂启动,如果时间多点感觉还有AK希望不过不得不说北美场难度都集中在模拟题上了,一般压轴都是数学或者几何,而这类题目遇到徐神祁神就是洒洒水了A.AllintheFamily出题人真是丧心病狂,不过这题只是看起来恶心实际写起来感觉还好做法本身由于树......
  • Pandas库学习笔记(3)---Pandas Series
    PandasSeriesPandasSeries基本操作pandas.SeriesSeries结构如下:pandas.Series(data,index,dtype,copy)构造函数的参数如下-data:数据采用各种形式,例如ndarray,list,常量index:索引值必须是唯一且可哈希的,且长度与数据相同。如果未传递索引,则默认为np.arrange(n)。dt......
  • 无涯教程-reduceRight()函数
    reduceRight()方法将数组元素计算为一个值(从右到左),以将其简化为单个值。reduceRight()-语法array.reduceRight(callback[,initialValue]);callback    - 对数组中的每个值执行的函数。initialValue- 用作首次调用回调的第一个参数的对象。reduceRigh......
  • 2022-2023 ICPC East Central North America Regional Contest (ECNA 2022)
    Preface闲了两天没训练,今天又开始上班,结果唐得发昏后期也没题可写直接光速下班只能说感觉老外的题目难度跨度都好大,easy确实简单,hard确实难,medium确实少A.A-MazingPuzzle题目看起来很复杂,但仔细一想会发现有用的状态总数只有\(4n^2\)种即我们可以暴力记录下两个机器人的坐......
  • pandas - isin()函数 是一个pandas.Series和pandas.DataFrame的方法,用于检查每个元素
    matched_rows=df[~df['设备IMEI'].isin(b_df['设备IMEI'])]这段代码的作用是从DataFramedf中筛选出不在另一个DataFrameb_df的"设备IMEI"列中的值。df['设备IMEI']表示在DataFramedf中获取"设备IMEI"列的序列。b_df['设备IMEI']表示在DataFrameb_df......
  • pandas - reset_index() 函数 将Series对象转换为一个新的DataFrame
    #df=pd.read_excel(r"D:\PyCharm\年度数据处理\1月设备离线01.xlsx",sheet_name='Sheet2')#value_counts=df['解除时间'].value_counts().reset_index()#print(value_counts)这段代码的作用是对DataFrame中的"解除时间"列进行值计数,并将结果保存在一个新的DataFrame......