主机哥买的OVH服务器自带的Debian 10默认的不能用root用户登录,还是需要设置,方法如下:
一,打开终端,用普通用户登录
输入:su root
输入密码,切换到root用户
二,设置root用户登录
nano /etc/ssh/sshd_config
2022年12月15日
主机哥买的OVH服务器自带的Debian 10默认的不能用root用户登录,还是需要设置,方法如下:
一,打开终端,用普通用户登录
输入:su root
输入密码,切换到root用户
二,设置root用户登录
nano /etc/ssh/sshd_config
2022年12月14日
秋水逸冰大佬的写的Bench.sh脚本,主机哥之前分享的测试脚本大多不支持在国内网络下测试,这款脚本是支持国内VPS里测试的。
特点
显示当前测试的各种系统信息;
取自世界多处的知名数据中心的测试点,下载测试比较全面;
支持 IPv6 下载测速;
IO 测试三次,并显示平均值。
使用:
wget -qO- bench.sh | bash #或者 curl -Lso- bench.sh | bash
2022年12月06日
这是一款追求轻量的开源可视化路由跟踪工具,使用 Golang 开发,主机哥最近在hostloc里发现的,测试回程路由的路由节点信息比较清晰明了,推荐使用!
2022年10月22日
检查磁盘空间即剩余情况
本文是在实际使用过程中真实操作,用于交流和学习
1. 使用fdisk -l命令查看当前磁盘的大小,其中/dev/sda磁盘发现并未使用;使用时,需要切换到root权限
其中,系统默认磁盘是在/dev/sdb1上
root@****# fdisk -l Disk /dev/sda: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xe8caedc1 Device Boot Start End Sectors Size Id Type /dev/sdb1 * 2048 968802303 968800256 462G 83 Linux /dev/sdb2 968804350 976771071 7966722 3.8G 5 Extended /dev/sdb5 968804352 976771071 7966720 3.8G 82 Linux swap / Solaris
2022年10月22日
主机哥VPS自带一个硬盘没有被挂载,需要手工来挂载,下面方法适用于CentOS7.6系统。
查看已挂载的硬盘
# 使用 fdisk -l 命令查看所有磁盘信息 [root@ecs-Up5 ~]# fdisk -l Disk /dev/vda: 21.5 GB, 21474836480 bytes, 41943040 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x0000425c Device Boot Start End Blocks Id System /dev/vda1 * 2048 2099199 1048576 83 Linux /dev/vda2 2099200 41943039 19921920 8e Linux LVM Disk /dev/vdb: 85.9 GB, 85899345920 bytes, 167772160 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/centos-root: 18.2 GB, 18249416704 bytes, 35643392 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/centos-swap: 2147 MB, 2147483648 bytes, 4194304 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes#显示参数说明/dev/vda 是正常使用的硬盘 /dev/vdb 是未被使用的硬盘
2022年09月26日
上次主机哥分享过一款测评脚本里其实也带跑分测试,但是主机哥发现在某些VPS跑分测不出来,于是再分享一个脚本。
wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh chmod +x unixbench.sh ./unixbench.sh
2022年09月07日
2022年08月29日
putty 简介
简单的说 putty 是一个开源程序,用来连接服务器。最早的时候,仅仅在window系统上可以使用,后来在其他的系统上也可以运行,比如 类unix, mac 。putty 不仅仅是一个软件而是一个软件集(文章最后会列出这个软件集),其中最常用的是 putty ,用来连接 linxu 服务器。
putty 支持的协议
1.ssh 这是最常用的
2.telnet
3.rlogin
2022年06月30日
主机哥闲着无聊写了一个流量消耗命令,运行这个命令后可以把VPS流量全部都消耗光!这样不仅仅是无聊,而是一定程度上可以测试出主机商是否能否长期跑带宽,因为有些主机商会在你带宽持续占用一定时间后限制你的速度。
此脚本适合所有linux vps系统
使用方法:
安装screen命令
apt-get isntall screen -y #Debian yum install screen -y #CentOS
Powered By Z-BlogPHP 1.7.2
Copyright © 2020-2022 主机测评网 Some Rights Reserved.