上网服务器搭建时遇到的问题

PHPer 2020-05-05 2021 0 0
CentOS7下解决ifconfig command not found的办法

这里记录一些遇到的问题...

立即注册

更新于:2020-05-05 23:54:20
    您需要登录后才可以评论。 立即注册

    v2rayN已停止工作

    v2rayN停止工作,要安装.NET Framework 4.6 或者更高版本

    v2rayN

    Requirements

    Microsoft.NET Framework 4.6or higher ...

    立即注册
    分享的网址网站均收集自搜索引擎以及互联网,非查问网运营,查问网并没有提供其服务,请勿利用其做侵权以及违规行为。
    更新于:2022-05-28 20:34:57

    CentOS7下解决ifconfig command not found的办法

    在安装锐速遇到的问题,ifconfig命令不存在,要安装net-tool插件

    注:本办法仅限于可联网的机器,即在安装时设置了IP地址和DNS可正常上网。

    解决办法如下:

    1、输入ip addr 确认IP地址是否设置正常,设置好如下所示,如果没有获取到IP地址则设置一个即可。

    2、确认sbin目录是否存在。

    cd /sbin

    3、确认ifconfig命令是否未安装

    在sbin目录下输入ls,可见下图所示,并没有ifconfig。

    4、安装net-tool插件,此插件中带有此命令...

    立即注册
    更新于:2020-05-05 23:57:29

    CentOS 7安装锐速高速上网

    原文链接:https://www.dazhuanlan.com/2019/09/25/5d8adf0a3aa16/

    发表于 2019-09-25

    锐速serverspeeder是一款TCP网络加速软件,能在Linux系统和Windows系统的服务器中安装,安装后能启到提高网络连接稳定性、带宽利用率、低访问失败率等作用,从而提高服务器网络访问速度。锐速并非实际增大服务器带宽,只是提高网络的稳定性和利用率而已。

    安装之前

    锐速破解版linux一键自动安装包是由@91yun发布的,无限带宽版。锐速只支持在XEN和KVM虚拟技术价格的VPS中安装,不支持在OpenVZ虚拟技术架构的VPS安装,推荐在KVM VPS中安装。目前此一键安装包已支持在CentOS,ubuntu和debian系统中安装,而且能自动匹配服务器内核是否支持安装,如果支持就会全自动下载安装,无需任何操作;如果内核不支持,则必须更换合适的VPS内核才能完成安装。

    内核支持

    CentOS-6.8:2.6.32-642.el7.x86_64

    CentOS-7.2:3.10.0-327.el7.x86_64

    CentOS:4.4.0-x86_64-linode63

    Ubuntu_14.04:4.2.0-35-generic

    Debian_8:3.16.0-4-amd64

    安装脚本 ...

    立即注册
    更新于:2020-05-06 00:18:34

    切换使用锐速和BBR加速时遇到的问题failed to dial to (wss:// *** ) 502 Bad Gateway

    failed to dial to (wss://ss.chawen.org:446/37cf03a1/) 502 Bad Gateway ...

    立即注册
    更新于:2020-05-06 01:45:17

    服务器加速的解决方案

    当前脚本已发布新版本,地址: https://github.com/kuoruan/shell-scripts/raw/master/kcptun/kcptun.sh 旧仓库已废弃,以后所有的脚本都会发布到新仓库: https://github.com/kuoruan/shell-scripts https://github.com/kuoruan/shell-scripts/raw/master/kcptun/kcptun.sh

    原文链接:https://tech.itabas.com/2016/09/06/vps/ss-speeder/

    发布于 2016-09-06

    根据vps的特点选择适合自己的加速方案,Openvz和Kvm以及Xen (如何检测Vps架构↓↓↓) 不同架构处理方式也是不同。

    #91yun check script

    wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/code/master/vm_check.sh && bash vm_check.sh
    

    net-speeder

    在高延迟不稳定链路上优化单线程下载速度

    开启了net-speeder的服务器上对外ping时看到的是4倍,实际网络上是2倍流量。另外两倍是内部dup出来的,不占用带宽。 另外,内部dup包并非是偷懒未判断。。。是为了更快触发快速重传的。

    net-speeder不依赖ttl的大小,ttl的大小跟流量无比例关系。不存在windows的ttl大,发包就多的情况。

    Installation

    一键安装script

    ubuntu/debian

    shell wget --no-check-certificate https://raw.githubusercontent.com/tennfy/debian_netspeeder_tennfy/master/debian_netspeeder_tennfy.sh chmod a+x debian_netspeeder_tennfy.sh bash debian_netspeeder_tennfy.sh
    

    centos

    wget --no-check-certificate https://gist.github.com/LazyZhu/dc3f2f84c336a08fd6a5/rawd8aa4bcf955409e28a262ccf52921a65fe49da99/net_speeder_lazyinstall.sh sh net_speeder_lazyinstall.sh

    source code make and make install

    net-speed opensource

    How to use

    cp ./net_speeder /usr/bin
    

    #comments:

    parameter: net_speeder netdisk rule (bpf)

    net_speeder venet0 "ip"


    /usr/bin/net_speeder venet0 "ip"

    # add netspeed to

    echo 'nohup /usr/bin/net_speeder venet0 "ip" >/dev/null 2>&1 &' >> /etc/rc.local
    

    kcptun

    Kcptun是一个非常简单和快速的,基于 KCP 协议的 UDP 隧道,它可以将 TCP 流转换为 KCP+UDP 流。而 KCP 是一个快速可靠协议,能以比 TCP 浪费10%-20%的带宽的代价,换取平均延迟降低 30%-40%,且最大延迟降低三倍的传输效果。 ...

    立即注册
    更新于:2020-05-06 04:22:06

    使用V2Ray的mKCP协议加速游戏

    当前脚本已发布新版本,地址: https://github.com/kuoruan/shell-scripts/raw/master/kcptun/kcptun.sh 旧仓库已废弃,以后所有的脚本都会发布到新仓库: https://github.com/kuoruan/shell-scripts https://github.com/kuoruan/shell-scripts/raw/master/kcptun/kcptun.sh 测试了,此方法无法上网。 V2ray报错: [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > EOF

    2019-11-14

    用v2ray内置的mKCP加速游戏的话,配置要简单很多,但效果没有kcptun+udp2raw好。也算是一种可行的方法吧,想偷懒的话可以试试这个方法。。

    安装v2ray:

    apt -y update
    apt -y install curl
    bash <(curl -L -s https://install.direct/go.sh)

    生成一个uuid复制下来:

    cat /proc/sys/kernel/random/uuid

    编辑v2ray配置文件:

    nano /etc/v2ray/config.json

    写入如下配置:

    {
      "inbounds": [
        {
          "port": 50000,
          "protocol": "vmess",
          "settings": {
            "clients": [
              {
                "id": "你的UUID",
                "alterId": 64
              }
            ]
          },
          "streamSettings": {
            "network":"kcp",
            "kcpSettings": {
              "mtu": 1350,
              "tti": 20,
              "uplinkCapacity": 30,
              "downlinkCapacity": 100,
              "congestion": true,
              "header": {
                "type": "utp"
              }
            }
          }
        }
      ],
      "outbounds": [
        {
          "protocol": "freedom",
          "settings": {}
        }
      ]
    }

    关于这个mKCP里面涉及到的一些可配置参数,可以参考这里:...

    立即注册
    更新于:2020-05-06 22:40:51

    Quick and easy VPNs with WireGuard

    If a message like the following is shown in this step: Warning: `/etc/wireguard/wg0.conf' is world accessible This means that the configuration file permissions are too broad - and they shouldn’t, as there’s a private key in there. This can be fixed withsudo chmod 600 /etc/wireguard/wg0.conf.

    Sep 15, 2018 • Tiago Ilieve

    WireGuard is the new kid on the block in the world of VPNs. It has been receiving a lot of attention lately, especially afterLinus Torvalds himself praised the projectlast month, resulting inin-depth guides about its characteristicsbeing published. The problem is thatpractical guides about its setup, including theofficial one, doesn’t show how quick and easy it is to do that. They are full of lengthy, complex and unneeded commands, when everything that is needed are simple configuration files.

    This guide won’t describe how to actually install WireGuard, as this isthoroughly covered by the official documentationfor every supported platform. It consists of aloadable kernel modulethat allows virtual WireGuard network interfaces to be created. In here, an EC2 instance located in Ireland and a virtual machine (based on Vagrant/VirtualBox) in Germany, both running Ubuntu, will be connected.

    The first step is to generate a pair of keys for every machine. WireGuard authentication system doesn’t rely passwords or certificates that includes hard-to-maintain Certification Authorities (CAs). Everything is done using private/public keys, like SSH authentication:

    $ wg genkey | tee privatekey | wg pubkey > publickey $ ls -lh total 8.0K -rw-rw-r-- 1 ubuntu ubuntu 45 Sep 15 14:31 privatekey -rw-rw-r-- 1 ubuntu ubuntu 45 Sep 15 14:31 publickey

    In the server, the/etc/wireguard/wg0.confconfiguration file will look like:

    [Interface] PrivateKey = 4MtNd3vq/Zb5tc8VgoigLyuONWoCQmnzLKFNuSYLiFY= Address = 192.168.255.1/24 ListenPort = 51820 PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE; sysctl net.ipv4.ip_forward=1 PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE; sysctl net.ipv4.ip_forward=0 [Peer] PublicKey = 0+/w1i901TEFRmEcUECqWab/nwmq0dZLehMzSOKUo04= AllowedIPs = 192.168.255.2/32

    Here’s an explanation of its fields:

    • PrivateKeyis the server private key. It proves that the server is who it says it is, and the same will be valid for the clients on the other end. One will be able to validate the identity of the other.
    • Addressis the IP and network mask for the VPN network.
    • ListenPorttells in which UDP port the server will listen for connections.
    • PostUpare firewall rules and system commands that are needed for the server to act as a gateway, forwarding all network traffic.PostDownwill disable them when the VPN is deactivated.eth0is the name of the main network interface, which can be something different likeens5ifsystemd’s Predictable Network Interface Namesare being used.
    • PublicKeyandAllowedIPsdefines which peers can connect to this server through a combination of IPs/key pairs. It’s important to notice that the IPs defined here are within the VPN network range. Those are not the actual IPs which the client will use to connect to the server over the internet.

    The client will also have a/etc/wireguard/wg0.confconfiguration file, but it will be a little bit different:

    [Interface] PrivateKey = yDZjYQwYdsgDmySbUcR0X7b+rdwfZ91rFYxz6m/NT08= Address = 192.168.255.2/24 [Peer] PublicKey = e1HJ0ed/lUmCDRUGjCwFZ9Qm2Lt14jNE77TKXyIS1yk= AllowedIPs = 0.0.0.0/0 Endpoint = ec2-34-253-52-138.eu-west-1.compute.amazonaws.com:51820

    ThePrivateKeyandAddressfields here have the same meaning as in the server. The difference is that theInterfacesection won’t contain the server parts, like the listening ports and firewall commands. ThePeersection contains the following fields:...

    立即注册
    更新于:2022-07-15 12:21:47
    相关内容

    Centos 服务器搭建(Centos8服务器搭建遇到的各种问题及解决方法)

    Centos8 更新yum或安装软件时提示 Failed to download metadata for repo...

    从CentOS 8到CentOS Stream,到底发生什么事了?

    CentOS8出现“ Error: Failed to download metadata for repo ‘AppStrea...

    如何将CentOS 8转换为CentOS Stream(202205实测有效)

    服务器搭建

    centos7用yum搭建LAMP环境之一

    CentOS 7 安装 LNMP 环境,sh脚本一键安装

    安装phaclon遇到的各种问题。

    LNMP的那些事情

    centos7安装openssl

    Centos系统在Apache服务器上安装SSL证书

    Centos7.4 修改MySQL5.7 root 密码

    2020在godaddy首页上看到企业建站服务

    邮件发送报错No IDN encoder found(install the intl extension or the tr...

    yum安装php扩展intl报错:Error: php71w-common conflicts with php-comm...

    如何在CentOS上安装PHP intl扩展?

    服务器选择-阿里云轻量应用服务器 轻量应用服务器 (香港节点丢包严重,延迟25ms)

    阿里云香港服务器和大陆服务器区别在哪,如何选择

    关于网站的robots文件以及robots文件在线生成工具

    robots.txt 不让搜索引擎收录网站的方法

    Yii2生成sitemap,yii2-sitemap-module Yii2 module for automatically ...

    验证谷歌站长平台 – GOOGLE SEARCH CONSOLE 验证流程

    centos7下自动备份mysql数据库

    谷歌站长平台实测网站

    CentOS 7中看PHP运行时的Log文件日志信息

    Linux设置Swap虚拟内存方法

    CentOS 7一键安装桌面环境命令(可远程RDP连接)

    如何在 CentOS8/RHEL8 上安装配置 VNC 服务器

    查问我看服务器搭建和使用中遇到的问题

    服务器搭建2

    mysql报错问题解决MySQL server PID file could not be found!

    找了半天找不到看着靠谱的centos8开机启动后运行的脚本

    LAMP一键安装包安装的时候方便,增加开机启动的时候出了问题

    一键安装,用sh脚本一键安装LAMP

    QQ授权码(更改QQ密码以及独立密码会触发授权码过期)

    FileZilla设置主密码保护FTP密码,服务器主机网站更安全了。

    linux配置多个ssl证书,Apache 配置多个HTTPS站点(202204亲测)

    服务器搭建3

    CentOS8下yum安装LNMP

    Linux查看端口使用状态、关闭端口方法

    LNMP与LAMP有哪些区别,安装哪个好?

    Centos杀死进程kill方法大全

    CentOS如何查看端口是否被占用

    xampp更改mysql数据库密码

    Vultr主机Centos Stream8系统上修改 Root 密码的方法(2022年版)

    Centos Stream8上安装ImageMagick和php的imagick扩展

    在 CentOS 7 上搭建属于自己的 “完美” 邮件系统

    Vultr如何发工单联系客服(2022年6月最新版)

    Could not get lock /var/lib/dpkg/lock-frontend Linux系统 sudo apt upda...

    Ubuntu Linux服务器安装图形化界面并用VNC Viewer连接(2022年6月实测有效)

    Centos7系统下图形化界面安装以及VNC远程连接教程(2022年6月实测ok)

    sudo 出现unable to resolve host 解决方法

    一键测试脚本bench.sh

    LNMP一键安装包添加、删除虚拟主机及伪静态使用教程

    Failed to update header with correct duration

    推荐内容

    分享几个好用的bt搜索bt资源下载网址网站

    影视电影剧集动漫综艺bt资源在线播放网址网站推荐分享

    全网最新bt磁力搜索引擎bt资源bt网站网址分享

    怎样使用V2Ray代理和SSTap玩如魔兽世界/绝地求生/LOL台服/战地3/黑色沙漠/彩...

    sstap游戏代理教程 从此玩如魔兽世界/绝地求生/LOL台服/战地3/黑色沙漠/彩虹六...

    人气美女女优百度指数排行榜(波多野结衣,苍井空,三上悠亚,深田咏美,桥本有菜,北条...

    最强人造人深田咏美,业界的社交女王

    人生起起落落的三上悠亚,成名前的清纯风,怎么搭配出来的?

    业内第一大长腿,桥本有菜的腿究竟有多长

    波多野结衣,岛国业界著作最多的超级劳模

    日本AV界NO.1,苍井空是多少宅男的疯狂?

    美女女优视频混剪 This Girl-Laza Morgan

    使用V2Ray的mKCP协议加速游戏