显示IP地址
ip addr show
启动SSH服务
sudo service ssh start
安装nettools
sudo apt-get update
sudo apt install net-tools
安装SSH
sudo apt install openssh-server
sudo systemctl status ssh
sudo systemctl start ssh
安装Telnet
sudo apt-get install telnetd
创建普通用户
sudo useradd -r -m -s /bin/bash tempuser
sudo passwd tempuser
升级SSH
sudo apt install build-essential libssl-dev zlib1g-dev
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.8p1.tar.gz
tar -zxvf openssh-9.8p1.tar.gz
cd openssh-9.8p1
./configure --prefix=/usr/local --sysconfdir=/etc/ssh
make
sudo make install
sudo systemctl restart sshd
原文链接:https://blog.csdn.net/qq_15603633/article/details/140119384
卸载telnet
sudo apt-get remove telnetd
安装Nginx 1.26.2
下载地址:https://nginx.org/download/nginx-1.26.2.tar.gz
wget https://nginx.org/download/nginx-1.26.2.tar.gz
tar -zxvf nginx-1.26.2.tar.gz
cd nginx-1.26.2/
安装PCRE包,如果不不安装,configure需要加入参数 --without-http_rewrite_module
sudo apt-get install libpcre3 libpcre3-dev
这里参数只是加了SSL插件。如果还需要其他插件,继续添加其他参数
./configure --with-http_ssl_module
make
sudo make install
原文链接:https://developer.aliyun.com/article/1395437
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· .NET10 - 预览版1新功能体验(一)