美文网首页
洛杉矶vps

洛杉矶vps

作者: hellity | 来源:发表于2023-05-30 10:53 被阅读0次

No DNS Nameserver

sudo vim /etc/resolv.conf 
#末尾添加如下
search 
nameserver 8.8.8.8  
nameserver 8.8.4.4
nameserver 199.85.126.10 
nameserver 208.67.222.222 

以上方法,重启会被系统重置,因 /etc/resolv.conf 是个 link
修改 : sudo nano /etc/systemd/resolved.conf
把 DNS 那行修改为: DNS=119.29.29.29 8.8.8.8
删掉 sudo rm -rf /etc/resolv.conf 重启

curl: (28) Failed to connect to raw.githubusercontent.com port 443: Connection timed out

   $ sudo nano /etc/hosts
  185.199.108.133 raw.githubusercontent.com  #在末尾添加

sudo apt update
sudo apt install nano curl nginx

修改时区为上海时间

sudo timedatectl set-timezone Asia/Shanghai

停用 apache2 服务

sudo systemctl disable apache2
sudo apt remove apache2 #卸载

查看服务日志

journalctl -xeu nginx.service

安装 golang 环境

apt install golang-go  # vps主机 需要至少 1G 内存

sudo nano /etc/systemd/resolved.conf

查看服务器端口开放情况

netstat -tulpn

最新:爷姥舅 的脚本意见安装
客户端配置 :端口选8080 取消 tls 底层传输协议

相关文章

网友评论

      本文标题:洛杉矶vps

      本文链接:https://www.haomeiwen.com/subject/unnsedtx.html