ubuntu安装frps并设置开机自启动

Linux 

ubuntu安装frps并设置开机自启动 下载frps 根据自己的服务器版本下载对应的frps版本:https://github.com/fatedier/frp/releases 配置文件 frps.toml 这里配置的服务端口为7000,web访问端口为7500,http与https代理端口为8

使用NPS实现内网穿透


前言  通常我们可以使用Ngrok、nps、frp等一些开源工具实现内网穿透,ngrok和frp主要是没有web页面配置,nps的好处是多了个Web页面,所以我们这里介绍一下使用nps配置内网穿透。前提条件一台有公网IP的服务器公网IP域名VPS购买推荐:https://app.cloudcone.

VPS安装V2Ray并开启加速

Linux 

1、安装curlapt install curl2、安装v2raybash <(curl -s -L https://git.io/v2ray.sh)3、安装完成后可以根据提示使用相关命令4、开启bbr加速:执行 v2ray bbr 即可5、使用其他加速,执行下列脚本选择对应的即可wget -

解决linux中apt install慢的问题

Linux 

打开 /etc/gai.confvim /etc/gai.conf找到以下内容行:# For sites which prefer IPv4 connections change the last line to# precedence ::ffff:0:0/96 100去掉#precedence

自动登录服务器脚本

Linux 

新建一个shell脚本vim login.sh输入以下内容#!/usr/bin/expectspawn ssh -p22 root@192.168.221.222expect "Password:"send "first\n"expect "Sele

linux安装jenkins

Linux 

安装jdk,openjdk默认安装会配置好环境变量apt install openjdk-8-jdk-headless设置jenkins源,执行命令:wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt

Ubuntu中在终端进入root权限但是总提示密码错误的解决方案

Linux 

先解除root锁定,为root用户重新设置密码打开终端输入:sudo passwd #注意是passwd不是passwordPassword: <— 输入你当前用户的密码Enter new UNIX password: <— 新的Root用户密码Retype new UNIX passw