Ubuntu22.04配置开机自启动脚本
发表于|Ubuntu
准备rc-local.service 123456789101112131415[Unit]Description=/etc/rc.local CompatibilityDocumentation=man:systemd-rc-local-generator(8)ConditionFileIsExecutable=/etc/rc.localAfter=network.target[Service]Type=forkingExecStart=/etc/rc.local startTimeoutSec=0RemainAfterExit=yesGuessMainPID=no[Install]WantedBy=multi-user.target 步骤 将rc-local.service文件复制到 /etc/systemd/system/ 目录下 1cp ./rc-local.service /etc/systemd/system/ 新建 rc.local 文件 ubuntu22.04中 /etc/目录下是没有 rc.local...
Ubuntu22安装Docker
发表于|Ubuntu
Ubuntu 22.04安装Docker(最全教程,无需科学上网)_ubuntu22.04安装docker-CSDN博客容器与云|如何在 Ubuntu 22.04 LTS 中安装 Docker 和 Docker Compose (linux.cn)
Ubuntu22安装MySQL
发表于|Ubuntu
参考如何在 Ubuntu 22.04 上安装和使用 MySQL 8 (linux-console.net) Mysql8.0设置大小写不敏感解决方案-云社区-华为云 (huaweicloud.com) 解决 dpkg 安装出错后的 Sub-process /usr/bin/dpkg returned an error code (1) 错误_dpkg错误-CSDN博客 安装12apt update -yapt upgrade -y 默认情况下,最新版本的 MySQL 服务器包含在 Ubuntu 默认存储库中。您可以通过运行以下命令来安装它:默认会启动 1apt install mysql-server -y 安装 MySQL 服务器后,您可以使用以下命令验证 MySQL 版本: 1mysql --version 您应该在以下输出中看到 MySQL 版本: 1mysql Ver 8.0.39-0ubuntu0.22.04.1 for Linux on x86_64 ((Ubuntu)) 管理默认情况下,MySQL 服务由 systemd...
Ubuntu22安装Ansible
发表于|Ubuntu
参考如何在 Ubuntu 20.04 上安装和配置 Ansible? (linux-console.net) 如何在 Ubuntu 20.04 上安装和配置 Ansible (linux-console.net) ansible配置文件 - anyux - 博客园 (cnblogs.com) 安装1sudo apt install ansible -y 配置 Ansible 主机文件ansible.cfgvi /etc/ansible/ansible.cfg 1234[defaults]#inventory = /tmp/hosts[ssh_connection]ssh_args = -o StrictHostKeyChecking=no hostsvi /etc/ansible/hosts 12345[bowei]192.168.0.224:22 ansible_ssh_user=root ansible_ssh_pass='iopjkl'[224]192.168.0.224
Ubuntu22安装Nginx
发表于|Ubuntu
要在 Ubuntu 22.04 上安装 Nginx 的 tar.gz 版本(即源码包),你需要遵循以下步骤来准备环境并进行安装。这里假设你已经有了基本的 Linux 命令行操作能力。 步骤 1: 更新系统并安装必要的依赖首先,确保你的系统已更新,并且安装了构建工具和其他必要的软件包。打开终端并执行以下命令: 12sudo apt updatesudo apt install -y build-essential zlib1g-dev libssl-dev libpcre3-dev libcurl4-openssl-dev curl 步骤 2: 下载 Nginx 源代码接下来,下载 Nginx 的源代码。你可以访问 Nginx 的官方网站或 GitHub 仓库来找到最新的 tar.gz 包下载链接。例如: 1234cd /tmpcurl -O http://nginx.org/download/nginx-1.21.0.tar.gztar zxvf nginx-1.21.0.tar.gzcd nginx-1.21.0 请将 1.21.0 替换为你需要安装的具体版本号。 步骤...
Ubuntu22安装Redis
发表于|Ubuntu22
在 Ubuntu 22.04 中安装 Redis 的 tar.gz 版本通常涉及几个步骤,包括下载源代码、安装依赖项、编译和安装 Redis。以下是详细的步骤: 步骤 1: 更新系统包列表首先,确保你的系统包列表是最新的: 1sudo apt update 步骤 2: 安装必要的依赖项Redis 的编译和运行需要一些基础工具和库。你可以通过以下命令来安装它们: 1sudo apt install -y build-essential tcl8.6-dev 这里,build-essential 提供了编译工具,而 tcl8.6-dev 是用于 Redis 自带的测试套件。 步骤 3: 下载 Redis 源代码前往 Redis 的官方网站或者 GitHub 仓库获取最新版本的 tar.gz 文件。例如,如果你要安装 Redis 7.0.0 版本,可以这样做: 1234cd /tmpwget https://github.com/redis/redis/archive/refs/tags/7.0.0.tar.gztar xzvf 7.0.0.tar.gzcd...
Ubuntu22安装keepalived和drbd
发表于|Ubuntu
要在 Ubuntu 22.04 上部署 Keepalived 和 DRBD 实现双机热备,您可以按照以下步骤进行: 步骤 1: 安装必要的软件包在两台服务器(ServerA 和 ServerB)上安装 DRBD 和 Keepalived。首先,更新包列表并安装所需的软件包: 12sudo apt updatesudo apt install -y drbd-utils drbd-kernel keepalived 步骤 2: 磁盘分区对于要使用的磁盘(例如 /dev/sdb),执行分区但不需要格式化: 1sudo fdisk /dev/sdb 在分区完成后,使用 partprobe 更新内核分区表缓存。 步骤 3: 配置 DRBD创建 DRBD 配置文件,通常位于 /etc/drbd.d/ 目录下。例如,创建名为 drbd.res 的文件: 1sudo vi /etc/drbd.d/drbd.res 内容如下: 123456789101112131415resource r1 { #这个r1是定义资源的名字 protocol C; on ServerA...
VMWare安装Ubuntu22
环境 Windows11专业版 24H2 VMware Workstation 17 Pro ubuntu-22.04-live-server-amd64.iso 镜像https://old-releases.ubuntu.com/releases/22.04.1/(官方) https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/22.04/ (清华源 镜像) http://mirrors.aliyun.com/ubuntu-releases/22.04/ (阿里源 镜像) 下载x86: https://old-releases.ubuntu.com/releases/22.04.1/ubuntu-22.04-live-server-amd64.iso arm: https://old-releases.ubuntu.com/releases/22.04.1/ubuntu-22.04-live-server-arm64.iso 配置开启root账户 ubuntu默认没有开启root账户 1sudo passwd...
Windows安装emqx
发表于|emqx
下载https://www.emqx.com/zh/downloads/broker/5.0.26/emqx-5.0.26-windows-amd64.zip 安装12345678# 1. 解压# 2. 进入 bin 目录# 3. 安装服务./emqx.cmd install# 4. 启动./emqx.cmd start 帮助123456789101112./emqx.cmd install #将发行版安装为 Windows 服务./emqx.cmd start #启动服务和 Erlang 节点./emqx.cmd stop #停止服务和 Erlang 节点./emqx.cmd restart #运行停止命令和启动命令./emqx.cmd uninstall #卸载服务并终止正在运行的节点./emqx.cmd ping #检查节点是否正在运行./emqx.cmd ctl #运行管理命令./emqx.cmd console #在Windows shell 中启动 Erlang 版本./emqx.cmd attach #连接到正在运行的节点并打开交互式控制台./emqx.cmd...
nssm-将jar转成windows服务
发表于|nssm
下载http://www.nssm.cc/download 下载 Latest release 版本 准备创建一个 bat 脚本文件,例如 dh-start.bat 内容为: 1java -server -Xms2048m -Xmx4096m -Dfile.encoding=utf-8 -jar dh-start.jar 安装 进入 nssm.exe 目录,打开cmd,输入命令 1nssm install dh-start # dh-start 为服务名 在弹出的界面中进行配置 Path:选择 bat 脚本 Servicve name: 默认为上面输入的服务名 Details 页签中默认为随系统自启动「Startup type 为 Automatic」 点击 Install service 启动打开任务管理器,找到服务,启动、停止、重启等 卸载1nssm remove dh-start # dh-start 为服务名
公告
风雨无阻,灯火为你,星光虽微,照耀夜空。
最新文章
归档
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2025 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2024 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2023 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2022 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2021 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2020 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1
- 2019 1