您的位置:首页 > 健康 > 美食 > 室内设计怎么网上接单_东莞seo按天计费_网站外链查询_长沙官网seo收费

室内设计怎么网上接单_东莞seo按天计费_网站外链查询_长沙官网seo收费

2025/3/17 22:31:50 来源:https://blog.csdn.net/wowocpp/article/details/143562451  浏览:    关键词:室内设计怎么网上接单_东莞seo按天计费_网站外链查询_长沙官网seo收费
室内设计怎么网上接单_东莞seo按天计费_网站外链查询_长沙官网seo收费

ubuntu 22.04 server 安装 和 初始化

下载地址

https://releases.ubuntu.com/jammy/

使用的镜像是

ubuntu-22.04.5-live-server-amd64.iso

usb 启动盘制作工具

https://rufus.ie/zh/
rufus-4.6p.exe
需要主板 支持 UEFI 启动
在这里插入图片描述

Ubuntu22.04.4-server安装 流程

https://blog.csdn.net/q276250281/article/details/141363313

从上到下依次为:你的名称,计算机名称,用户名,密码,确认密码;

选择安装openssh后,再选择最下面的Done回车
先不设置静态IP,先用自动IP

设置镜像源地址的时候

先用默认镜像源地址,这个地方等20秒,再下一步

磁盘分区的 地方

取消选择

set up this disk as an lvm group 去掉
在这里插入图片描述

设置root账户密码

输入:sudo passwd root 设置root账户密码,这里会要你先输入当前账户密码回车,再输入你要设置的root账户密码回车,接着重复输入一遍root账户密码确认,回车。

手动设置静态IP

/etc/netplan/50-cloud-init.yaml

原来的内容

# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:ethernets:enp0s31f6:dhcp4: trueversion: 2

修改后的 内容

# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:ethernets:enp0s31f6:dhcp4: noaddresses: [192.168.99.66/24]routes:- to: defaultvia: 192.168.99.1nameservers:addresses:- 114.114.114.114- 8.8.8.8    version: 2

同时需要修改
sudo vi /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg

network: {config: disabled}

sudo netplan apply

关闭防火墙

sudo ufw status查看防火墙状态,inactive是关闭,active是开启。

如果是开启状态则关闭防火墙

防火墙基本命令:

sudo ufw enable 开启防火墙

sudo ufw disable 关闭防火墙

设置时区 和 时区同步

执行命令:
timedatectl set-timezone “Asia/Shanghai”

执行命令:
timedatectl set-ntp yes

系统备份

ubuntu server 20.04 备份和恢复 系统 LTS
https://blog.csdn.net/wowocpp/article/details/134824060

备份的时候,需要先将 命令 复制到 一个txt文件中,别直接粘贴。
因为 网页会给 自动添加 后缀

修改ssh 端口号

修改端口号的 原因是
如果 把 ssh 端口号22 映射到 公网的 一个 普通端口比如 98765上面
某天重装系统,没有来得及 开启防火墙,可能会 被趁机连接
或者是会忘记这件事情
是一个安全隐患
还是修改端口号的好
只要是 可能 对外的 机器,都要 修改一下 端口

sudo vi /etc/ssh/sshd_config
sudo systemctl restart sshd
把port设置成7000以上端口比较安全

不允许root通过ssh登录,再增加安全性
允许指定用户登录,再减小被暴力破解可能性。

Port 7896

#PermitRootLogin prohibit-password
这个默认 是no

ssh -p 7896 root@192.168.99.46
Permission denied, please try again.

python3

sudo apt install python3-pip

crontab

service cron restart
service cron restart
重启cron服务。

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com