哥伦布

博客园 首页 新随笔 联系 订阅 管理
  71 随笔 :: 0 文章 :: 0 评论 :: 32774 阅读

显示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

posted on   Caraxes  阅读(4)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· .NET10 - 预览版1新功能体验(一)
点击右上角即可分享
微信分享提示