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 0000000000000000000000000000000000000000..a0f4f3c58499ca7c7b3b6065053d5a01d68e77fe --- /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 更新 + +`````