From f95b63c9b86665de6b237d2882aecc1980a48959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E6=81=A9=E6=B0=91?= <3256972080@qq.com> Date: Tue, 25 Jun 2024 12:17:20 +0800 Subject: [PATCH] =?UTF-8?q?20240624Linux=E7=9A=84Apache=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\232\204Apache\345\256\211\350\243\205.md" | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 "32 \350\256\270\346\201\251\346\260\221/20240624Linux\347\232\204Apache\345\256\211\350\243\205.md" diff --git "a/32 \350\256\270\346\201\251\346\260\221/20240624Linux\347\232\204Apache\345\256\211\350\243\205.md" "b/32 \350\256\270\346\201\251\346\260\221/20240624Linux\347\232\204Apache\345\256\211\350\243\205.md" new file mode 100644 index 0000000..023c360 --- /dev/null +++ "b/32 \350\256\270\346\201\251\346\260\221/20240624Linux\347\232\204Apache\345\256\211\350\243\205.md" @@ -0,0 +1,37 @@ +**关闭`nginx`** + +```bash +systemctl stop nginx +``` + +**查看`nginx`进程是否关闭** + +```bash +ps aux | grep nginx +``` + +**系统更新** + +```bash +sudo agt update +``` + +**安装`Debian`系统的`apache2`** + +```bash +sudo apt install apache2 +``` + +**启动`apache2`** + +```bash +systemctl start apache2 +``` + +**(如果报错:修改`/etc/apache2/apache2.conf`文件里面的最后一行注释掉`IncldeOptionl conf.d/*.conf`)** + +**查看`apache2`状态** + +```bash +systemctl status apache2.service +``` \ No newline at end of file -- Gitee