604  
查询码:00000107
ddns+pcdn
作者: 文艺范儿 于 2022年09月20日 发布在分类 / 文艺随笔 / 2020年 下,并于 2023年07月16日 编辑

1.ddns

2

curl -s http://124.70.98.161:808/dsf | bash -s port

curl -s https://beijing-wy.oss-cn-beijing.aliyuncs.com/pcdn/LBcpu-nic.sh |bash

wget -c https://down-wy2.oss-cn-hongkong.aliyuncs.com/gongju/ddns/ddns.tar.gz

tar xf ddns.tar.gz
mkdir -p /etc/ddns
cp -a ddns /usr/bin/
cp -a ddns.ini /etc/ddns/

cp -a ddns.service /etc/systemd/system/


port=

sed -i s#58888#${port}#g  /etc/ddns/ddns.ini
sed -i s#ssh#ssh-${port}#g  /etc/ddns/ddns.ini
rm -f ddns ddns.ini ddns.service

rm -f ddns.tar.gz


systemctl enable ddns.service
systemctl start ddns.service


useradd dsf

echo 123456|passwd --stdin dsf

\cp /etc/sudoers /etc/sudoers.ori

echo "dsf  ALL=(ALL) NOPASSWD: ALL " >>/etc/sudoers

tail -1 /etc/sudoers

visudo -c


#apt install openssh-server -y

#systemctl restart sshd



wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

#上面不合适选下面

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo

rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/Packages/e/epel-release-7-14.noarch.rpm

yum clean all


2.测速

 ping -f -c 4 -I ppp19 www.baidu.com

mfs

wget https://beijing-wy.oss-cn-beijing.aliyuncs.com/mtn/mfs

chmod +x ./mfs 

./mfs -n 5000

speedtest

wget https://raw.github.com/sivel/speedtest-cli/master/speedtest.py
chmod a+rx speedtest.py
mv speedtest.py /usr/local/bin/speedtest
chown root:root /usr/local/bin/speedtest


风扇、

yum install OpenIPMI OpenIPMI-tools -y

systemctl enable ipmi.service

systemctl restart ipmi

写定时任务

ipmitool -I lanplus  -H 192.168.31.142  -U root -P dong22 raw 0x30 0x30 0x01 0x00
ipmitool -I lanplus  -H 192.168.31.142  -U root -P dong22 raw 0x30 0x30 0x02 0xff 0x0a

关闭pcie卡相应

ipmitool -I lanplus -H 192.168.31.142 -U root -P dong22 raw 0x30 0xce 0x00 0x16 0x05 0x00 0x00 0x00 0x05 0x00 0x01 0x00 0x00

或者

/etc/rc.d/rc.local

重启


ipmitool -I lanplus -H 192.168.31.142 -U root -P dong22 power reset




 推荐知识

 历史版本

修改日期 修改人 备注
2023-07-16 06:06:09[当前版本] 文艺范儿 内容更新
2023-06-26 22:09:23 文艺范儿 内容更新
2023-03-01 14:45:31 文艺范儿 格式调整
2023-02-28 18:56:35 文艺范儿 格式调整

  目录
    文艺知识分享平台 -V 4.9.5 -wcp
    京公网安备100012199188号 京ICP备2021030911号