linux学习笔记

阅读: 评论:0

linux学习笔记

linux学习笔记

//******************************************
//* *
//* 修改用户密码,别裸奔 *
//* *
//* *
//* *
//******************************************

passwd root
passwd ubuntu

//******************************************
//* *
//* linux修改IP,mac,dns *
//* *
//* *
//* *
//******************************************
vi /etc/network/interfaces.d/eth0

--------------------------以下为文件内容----------------------
auto eth0
iface eth0 inet static
pre-up ifconfig eth0 hw ether 20:23:04:08:13:14
address 192.168.1.20
gateway 192.168.1.1
netmask 255.255.255.0
#network 192.168.1.0
#broadcast 192.168.1.255
dns-nameservers 114.114.114.114 101.198.198.198 114.114.114.119 114.114.115.115 8.8.8.8
//-----------------------------------------------------------------------------------------------

//******************************************
//* *
//* 安装 software,可以申请动态域名 *
//* *
//* *
//* *
//******************************************
sudo apt-get install software-properties-common
sudo apt-get update

添加SoftEther 软件源
sudo add-apt-repository ppa:paskal-07/softethervpn
sudo apt update

安装
sudo apt install softether-vpnserver -y

运行
vpnserver start

vpnserver stop

//******************************************
//* *
//* 测速设备的外网网速 *
//* *
//* *
//* *
//******************************************

测试地址(打开找):.dat?s=12261820
wget -O /dev/null .exe

-------------------------以下为测速结果----------------------------------
root@hinas:/dev# wget -O /dev/null .exe
–2023-04-08 16:40:03-- .exe
Resolving bigsoftdlc.360tpcdn (bigsoftdlc.360tpcdn)… 222.75.5.191, 222.75.5.192
Connecting to bigsoftdlc.360tpcdn (bigsoftdlc.360tpcdn)|222.75.5.191|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 79391328 (76M) [application/octet-stream]
Saving to: ‘/dev/null’

/dev/null 100%[===============================>] 75.71M 86.7MB/s in 0.9s

2023-04-08 16:40:04 (86.7 MB/s) - ‘/dev/null’ saved [79391328/79391328]

//---------------------------------------------------------------------------------

本文发布于:2024-02-01 05:48:28,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170673771034346.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:学习笔记   linux
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23