From f2cc30d0de0c4fd4f7df0fe1d001bbaed682c830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=AD=A3=E6=A5=A0?= <12461668+kkkjj2222222256@user.noreply.gitee.com> Date: Tue, 25 Jun 2024 04:13:59 +0000 Subject: [PATCH] =?UTF-8?q?=E9=99=88=E6=AD=A3=E6=A5=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈正楠 <12461668+kkkjj2222222256@user.noreply.gitee.com> --- ...15\345\212\241\347\256\241\347\220\206.md" | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 "03\351\231\210\346\255\243\346\245\240/20240624\346\234\215\345\212\241\347\256\241\347\220\206.md" diff --git "a/03\351\231\210\346\255\243\346\245\240/20240624\346\234\215\345\212\241\347\256\241\347\220\206.md" "b/03\351\231\210\346\255\243\346\245\240/20240624\346\234\215\345\212\241\347\256\241\347\220\206.md" new file mode 100644 index 0000000..a0f4f3c --- /dev/null +++ "b/03\351\231\210\346\255\243\346\245\240/20240624\346\234\215\345\212\241\347\256\241\347\220\206.md" @@ -0,0 +1,24 @@ +`````bash +- start 启用 +- stop 停止 +- restart 重启 +- reload 重载(仅配置文件) +- status 状态 +- enabled 开机自启动 +- disabled 禁用 + +systemctl start nginx --启动 +systemctl restart nginx --重启 +systemctl enable nginx --设置开机启动 +systemctl stop nginx --关闭 + +sudo apt install apache2 --安装apache2 + vim /etc/apache2/ports.conf --把端口改成8080 +systemctl restart apache2 --重新启动 +systemctl start apache2 --启动apache2 +systemctl start nginx --启动nginx + +systemctl status apache2 查看apache的状况 +sudo apt-get update 更新 + +````` -- Gitee