speedtest-x
apt update && apt install curl
curl -sSL https://get.docker.com/ | sh
docker run -d -p 8008:80 badapple9/speedtest-x
apt update && apt install curl
curl -sSL https://get.docker.com/ | sh
docker run -d -p 8008:80 badapple9/speedtest-x
使用方法
使用 FinalShell或者Xshell 通过SSH 进入玩客云/N1/等 Arm设备,执行以下指令
wget --no-check-certificate https://cdn.jsdelivr.net/gh/ShallowAi/ttnode@main/install.sh && chmod +x install.sh && ./install.sh
复制代码
按下任意键,开始安装。
更新日志
2020-12-9 发布于恩山.
Debian CentOS修改时区
Debian修改时区:
dpkg-reconfigure tzdata
CentOS修改时区:
timedatectl set-timezone Asia/Shanghai
1.首先查看当前语言环境env | grep LANG
2.开始第一步
export LANG=en_US.UTF-8
注意 en表示语言,US表示国家,UTF-8表示编码
第二步dpkg-reconfigure locales
reboot
问题:
debian shell脚本加入开机启动
解决:
编辑/etc/crontab,尾部加入:@reboot root /root/rules.sh即可,/root/rules.sh为脚本路径
样例:
view source
01
# /etc/crontab: system-wide crontab
02
# Unlike any other crontab you don't have to run the `crontab'
03
# command to install the new version when you edit this file
04
# and files in /etc/cron.d. These files also have username fields,
05
# that none of the other crontabs do.
06
07
SHELL=/bin/sh
08
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
09
10
# m h dom mon dow user command
11
17 * * * * root cd / && run-parts --report /etc/cron.hourly
12
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
13
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
14
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
15
#
16
@reboot root /root/rules.sh
查看当前硬盘
fdisk -l
格式化硬盘
mkfs -t ext4 /dev/sdb
分区
fdisk /dev/sdb
然后按提示输入
root@test:/# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (2-4, default 2): 2
First sector (651175056-1953525167, default 651175936):
Last sector, +sectors or +size{K,M,G,T,P} (651175936-1953525167, default 1953525167): 1302350111
Created a new partition 2 of type 'Linux' and of size 310.5 GiB.
Command (m for help): wq
The partition table has been altered.
Calling ioctl() to re-read partition table.
如果遇到提示Re-reading the partition table failed.: Device or resource busy
用命令partprobe
初始化分区
mkfs.ext4 /dev/sdb1
挂载到本地
mount /dev/sdb1 /mnt/disk_1
查看磁盘使用情况
df -l
提示partition满了,解决办法
把swapper分区删掉(不是一个好办法,但是能解决问题)
通过fdisk -l查看哪个是swapp
swapoff /dev/sdb*
然后通过fdisk /dev/sdb删掉swapp分区,这样就多了个partition