简体   繁体   English

如何从 AWS ec2 实例中卸载 apache web 服务器?

[英]how to uninstall apache web server from AWS ec2 instance?

I have tried different commands but still unable to uninstall/remove apache server.我尝试了不同的命令,但仍然无法卸载/删除 apache 服务器。 here are few command which i have tried:这是我尝试过的几个命令:

sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
sudo apt-get autoremove

I have also tried this command:我也试过这个命令:

httpd -k uninstall
sudo apt remove --purge apache2 

Should uninstall apache.应卸载 apache。 Next you could do an autoremove to remove not used packages.接下来,您可以执行自动删除以删除未使用的软件包。

If you have already tried the below command, i suggest you to check if there is any configuration file exist related to apache如果您已经尝试过以下命令,建议您检查是否存在与 apache 相关的配置文件

sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common

sudo apt-get autoremove sudo apt-get 自动删除

try using the below command尝试使用以下命令

** whereis apache2** ** 哪里是 apache2 **

Incase if you find any directory belongs to apache..remove it manually如果您发现任何目录属于 apache..手动删除它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何设计用于设置在全新AWS EC2 Ubuntu实例上运行的apache Web服务器的启动脚本? - How do I design a Bootup script for setting up an apache web server running on a brand new AWS EC2 Ubuntu instance? 如何在AWS(EC2实例)中管理Web服务器和应用程序服务器? - How we can manage Web Server and Application Server in AWS (EC2 instance)? SSL 用于 AWS EC2 实例上的 Apache ActiveMQ - SSL for Apache ActiveMQ on AWS EC2 instance 如何在AWS Amazon Linux EC2实例上从PHP 7连接到SQL Server实例? - How to do I connect to a SQL Server instance from PHP 7 on an AWS Amazon Linux EC2 instance? 如何从 AWS Lambda 在 AWS EC2 实例上执行 JAR - How to execute JAR on AWS EC2 instance from AWS Lambda 如何从 Linux 机器上的 web 浏览器访问 AWS EC2 实例? - How to access AWS EC2 instance from web browser on Linux machine? 如何配置 AWS EC2 apache 服务器 - How I can make a configure AWS EC2 apache server 如何使用AWS EC2创建stun turn服务器实例 - How to create stun turn server instance using AWS EC2 AWS:如何每天将文件从 ec2 实例(Windows Server)传输到 S3? - AWS: How to transfer files from ec2 instance (Windows Server) to S3 daily? 如何将AWS EC2服务器实例从一个国家切换到另一个国家 - How can Switch AWS EC2 server instance from one country to another country
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM