Как отключить apache windows

Start/stop Apache service in Windows’s command line

To start/stop Apache service in Windows use these following commands:

Open command prompt (Start > cmd):

To stop apache:

C:\ net stop apache2.2

or to start apache:

C:\ net start apache2.2

Not quite convenient but at least It makes me feel like doing things in linux.

Comments

If you don’t have Apache installed as a service, the window will remain visible until you stop Apache by pressing Control-C in the console window where Apache is running in. The server will exit in a few seconds.

  1. How do I turn off Apache in Windows 10?
  2. How do I stop all Apache processes?
  3. How do I restart Apache on Windows?
  4. How do I stop Apache httpd EXE?
  5. How do I shut down Apache?
  6. How do I know if Apache is running on Windows?
  7. How do I stop all servers?
  8. How do I stop Apache from starting automatically?
  9. How do I restart Apache on Windows 10?
  10. Why did Apache shut down unexpectedly?
  11. How do I disable Httpd in Windows?
  12. How do I start Apache Tomcat on Windows?

How do I turn off Apache in Windows 10?

Stopping apache:

  1. Log in as the application user.
  2. Type apcb.
  3. If apache was run as the application user: Type ./apachectl stop.

How do I stop all Apache processes?

In order to stop or restart the Apache HTTP Server, you must send a signal to the running httpd processes. There are two ways to send the signals. First, you can use the unix kill command to directly send signals to the processes.

How do I restart Apache on Windows?

2 Answers

  1. Click the start button and type CMD (if on Windows Vista or later and Apache is installed as a service make sure this is an elevated command prompt)
  2. In the command window that appears type cd C:\xampp\apache\bin (the default installation path for Xampp)
  3. Then type httpd -k restart.

How do I stop Apache httpd EXE?

Of course, Windows Task Manager can also be used to stop the Apache server. Select «httpd.exe» on Processes tab on Windows Task Manager, and click the «End Process» button. Then click «Yes» on the warning message to terminate «httpd.exe». Repeat the process again if see more than one instances of «httpd.exe».

How do I shut down Apache?

Debian/Ubuntu Linux Specific Commands to Start/Stop/Restart Apache

  1. Restart Apache 2 web server, enter: # /etc/init.d/apache2 restart. $ sudo /etc/init.d/apache2 restart. …
  2. To stop Apache 2 web server, enter: # /etc/init.d/apache2 stop. …
  3. To start Apache 2 web server, enter: # /etc/init.d/apache2 start.

How do I know if Apache is running on Windows?

  1. Bring up the task manager by pressing Ctrl + Shift + Esc .
  2. Go to the Processes tab and sort by Image Name. In Server 2012, go to the Details tab and sort by Name.
  3. Look for apache.exe (or httpd.exe) and check the User Name column.

How do I stop all servers?

To stop all Application Servers on the host, do one of the following:

  1. (Windows) Do one of the following: From the command line window where the Application Server is running, enter Ctrl-C . From the Windows Start menu, select Settings > Control Panel. …
  2. (UNIX) Enter the following: /etc/init.d/blappserv stop.

How do I stop Apache from starting automatically?

The procedure to stop Apache from starting at boot time on Linux is as follows:

  1. Open the terminal application.
  2. Login using ssh for remote server. …
  3. Use sudo systemctl disable httpd && sudo systemctl stop httpd on RHEL/CentOS/Oracle/Fedora Linux.

How do I restart Apache on Windows 10?

First you must bring the command prompt to the bin of Apache folder on your computer, i.e my Apache folder is in directory C:\Apache24\ . I used command cd C:\Apache24\bin and then used command httpd -k restart to restart the Apache service.

Why did Apache shut down unexpectedly?

The XAMPP error “Apache shutdown unexpectedly” is commonly caused by another program, such as Skype, using the default Apache port. … As we discussed in this article, the easiest way to fix this problem is to update XAMPP’s Apache configuration settings. You can do this by editing the httpd. conf file and the http-ssl.

How do I disable Httpd in Windows?

Running as a service should be preferred over running in a console window because this lets Apache end any current operations and clean up gracefully. But if the server is running in a console window, you can only stop it by pressing Control-C in the same window.

How do I start Apache Tomcat on Windows?

Starting the Apache Tomcat server

  1. Click the Start menu and right-click Computer and select Manage.
  2. Expand Configuration and click Services.
  3. Right-click the Tomcat service and select Start.

На сайте с 23.12.2013

Offline

151

#1

А почему апач работает не как служба? В вашем случае никак.

V2

На сайте с 05.01.2012

Offline

120

#2

lonelywoolf:
А почему апач работает не как служба?

Не хочу привязки к системе, должна быть типа portable версия, скопировал на другой комп и там работает.

Кроме того мне нужно будет запустить несколько процессов apache на разных портах, а как это реализовать в случае запуска как службы тоже не знаю.

R

На сайте с 27.02.2016

Offline

66

#3

Vitaly2012:
Не хочу привязки к системе, должна быть типа portable версия, скопировал на другой комп и там работает.

Скопировать на другой ПК. Служба/сервис вас в этом ни как не ограничит.

Кроме того мне нужно будет запустить несколько процессов apache на разных портах, а как это реализовать в случае запуска как службы тоже не знаю.

Использовать директиву <VirtualHost *:8080>…</VirtualHost> с указанием нужного вам порта, IP-адреса.

На сайте с 25.01.2009

Offline

514

#4

А зачем виндоусу апач?

V2

На сайте с 05.01.2012

Offline

120

#5

Ravel:
Скопировать на другой ПК. Служба/сервис вас в этом никак не ограничит.

Как-же не ограничит, на другом пк апач не установлен как служба, нужно будет заново ставить.

Ravel:
Использовать директиву <VirtualHost> с указанием нужного вам порта IP-адреса.

Мне нужно, чтобы каждый запущенный httpd слушал свой порт, а не один httpd запущеный как служба слушал все порты.

R

На сайте с 27.02.2016

Offline

66

#6

Vitaly2012:
Как-же не ограничит, на другом пк апач не установлен как служба, нужно будет заново ставить.

Вы просто переместите свою папку (C:\Apache2 или какая там у вас) на другой ПК, а если там папка будет отличатся, внесете изменения в файлы конфигурации.

Vitaly2012:
Мне нужно, чтобы каждый запущенный httpd слушал свой порт, а не один httpd запущеный как служба слушал все порты.

Все порты он слушать не будет. Будет слушать только то, что вы ему укажете в listen и VirtualHost.

V2

На сайте с 05.01.2012

Offline

120

#7

Ravel:
Вы просто переместите свою папку (C:\Apache2 или какая там у вас) на другой ПК, ну если там папка будет отличатся внесете изменения в файлы конфигурации.

Да нет-же, простого переноса недостаточно, нужно еще выполнить httpd.exe -k install

Ravel:
Все порты он слушать не будет, будет слушать только то что вы ему укажете в listen и VirtualHost.

В случае службы он именно будет слушать все указанные в его конфиге в listen и VirtualHost порты, а мне нужно, чтобы каждый апач слушал только один свой порт.

R

На сайте с 27.02.2016

Offline

66

#8

Vitaly2012:
Да нет-же, простого переноса недостаточно, нужно еще выполнить httpd.exe -k install

Не нужно. Достаточно запустить httpd.exe в папке bin. Можете проверить на виртуальном сервере.

Vitaly2012:
В случае службы он именно будет слушать все указанные в его конфиге в listen и VirtualHost порты, а мне нужно, чтобы каждый апач слушал только один свой порт.

Зачем?

V2

На сайте с 05.01.2012

Offline

120

#9

Ravel:
Зачем?

Зачем, это другой вопрос.

А меня интересует как корректно остановить процесс httpd.

———- Добавлено 15.10.2019 в 16:08 ———-

Ravel:
Не нужно. Достаточно запустить httpd.exe в папке bin. Можете проверить на виртуальном сервере.

Хотите сказать, что apache при первом запуске сам ставится как служба никого об этом не спрашивая и не уведомляя? ))

R

На сайте с 27.02.2016

Offline

66

#10

Vitaly2012:

Хотите сказать, что apache при первом запуске сам ставится как служба никого об этом не спрашивая и не уведомляя? ))

Никто никуда сам не ставится. Вы Readme.txt читали ?

В архиве есть файл Readme.txt, в нем написано как установить Apache как сервис

To install as a service. Open command prompt as Administrator and type:

>httpd.exe -k install

You can start/stop the service with the command:

>services.msc

To see all Command line options:

>httpd -h

net start — список всех запущенных служб

net stop «<имя службы>» — остановка конкретной службы в вашем случае (net stop «Apache2.4»)

Today I share how you can uninstall the Apache Windows service.

Why uninstall the Apache Service

If you want to reinstall Apache you will want to remove the service first. This ensures you will be able to fully uninstall apache before reinstall.

In other situations you might want to reinstall the service with different parameters.

Uninstalling the Apache Windows Service

To uninstall Apache as a service you need to use an admin command prompt. This can be opened by typing cmd in the search bar and right clicking it to select “Run as administrator”.

Once the command window is open you need to cd into the bin directory of the apache folder. This is the folder that holds httpd.exe.

To uninstall the service, if it was installed with the default name, you can run.

httpd.exe -k uninstall 

If the service is installed with a custom name you can use the -n flag to specify which apache service to remove. In the below example I am removing the apache service called “Apache HTTP Server”

httpd.exe -k uninstall -n "Apache HTTP Server"

Using these commands you can remove any Apache service installed using httpd.exe.

About Author

Chewett

First released in 1995, Apache HTTP Server is a free and open-source application that allows both Unix and Windows NT-based computers to function as Web servers. It offers language interfaces for the Perl, Python, Tcl and PHP programming languages, supports the SSL and TLS protocols, includes several built-in compression methods, and allows a single server to host many sites through its virtual hosting feature. If you no longer need to use Apache HTTP Server on your Windows computer, you can remove it from your system using both the Command Prompt and Windows’ built-in Uninstall feature.

Step 1

Click the Windows «Start» button and select «All Programs,» followed by «Accessories» and «Command Prompt.»

Step 2

Type the following command:

cd

Substitute «» for the actual location of Apache’s «bin» folder. By default, this folder is located at «C:\Program Files\Apache Group\Apache2\bin».

Step 3

Press the «Enter» key to execute the command and open the «bin» folder.

Step 4

Type the following command:

httpd -k uninstall

Step 5

Press the «Enter» key to execute the command and uninstall the service.

Step 6

Click the Windows «Start» button and select «Control Panel.»

Step 7

Select «Uninstall a program» if you use Windows Vista or Windows 7. In Windows XP or an earlier version of Windows, click «Add or Remove Programs» instead.

Step 8

Single-click the Apache HTTP Server item.

Step 9

Click the «Uninstall» button near the top of the window if you use Windows Vista or Windows 7. In Windows XP or an earlier version of Windows, click the adjacent «Remove» button instead. Follow the on-screen prompts to confirm your choice and complete the uninstall process.

Step 10

Click the Windows «Start» button and select «Computer.» Double-click the «C:» drive icon and then navigate to the folder containing your Apache installation («C:\Program Files» by default). Right-click the «Apache Group» folder and select «Delete.»

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Включить ядро поиска windows
  • Kyocera p3045dn драйвер windows 7
  • Airport software for windows
  • 80072efe ошибка обновления windows server 2008 r2 sp2
  • Сканирование перед загрузкой windows