Msmq как включить windows server

This article applies as of PRTG 22

MSMQ Message Queuing

To use the Windows MSMQ Queue Length sensor in PRTG, you need to start the Message Queuing service on both the probe system and the target system. You can start services via services.msc.

Message Queuing is only automatically installed on some Windows Server versions. Depending on the Windows version you are using, you might have to install the Microsoft Message Queue (MSMQ) Server first.

For details, see Installing and Managing Message Queuing.
Applies to: Windows 7, Windows 8, Windows Server 2008 R2, Windows Server 2012, Windows 10, Windows Server 2016

Directory Service Integration

Note: When installing the MSMQ Server, make sure it also includes the Directory Service. Depending on your Windows installation, this might have different names, such as

  • MSMQ Active Directory Domain Service Integration
  • Directory Service Integration
  • Active Directory Integration
Windows Server 2012 R2 and Windows Server 2016

Windows Server 2012 R2

Click to enlarge.

Windows 10

Windows 10

Click to enlarge.

Windows Server 2008 R2

Windows 2008 R2

Click to enlarge.

Windows 7

Windows 7

Click to enlarge.

More

  • Problem monitoring Messaging Queue (MSMQ)

# Message Queuing (MSMQ)

Microsoft Message Queuing or MSMQ is a message queue implementation developed by Microsoft and deployed in its Windows Server operating systems since Windows NT 4 and Windows 95. Windows Server 2016 and Windows 10 also includes this component. In addition to its mainstream server platform support, MSMQ has been incorporated into Microsoft Embedded platforms since 1999 and the release of Windows CE 3.0

MSMQ is essentially a messaging protocol that allows applications running on separate servers/processes to communicate in a failsafe manner. A queue is a temporary storage location from which messages can be sent and received reliably, as and when conditions permit. This enables communication across networks and between computers, running Windows, which may not always be connected. By contrast, sockets and other network protocols assume that direct connections always exist.

MSMQ is responsible for reliably delivering messages between applications inside and outside the enterprise. MSMQ ensures reliable delivery by placing messages that fail to reach their intended destination in a queue and then resending them once the destination is reachable. It also supports security and priority based messaging. Dead letter queues can be created for looking at messages which timed out or failed for other reasons.

MSMQ supports both durable and non-durable messaging to make a trade of between performance or consistency by writing messages to disk or only in RAM. Non-durable messaging can only be achieved by sending express messages via non-transactional queues.

MSMQ also supports transactions. It permits multiple operations on multiple queues, with all of the operations wrapped in a single transaction, thus ensuring that either all or none of the operations will take effect. Microsoft Distributed Transaction Coordinator (MSDTC) supports transactional access to MSMQ and other resources to achieve transactional exact once processing.

The following ports are used for Microsoft Message Queuing operations:

TCP: 1801
RPC: 135, 2101*, 2103*, 2105*
UDP: 3527, 1801

  • These port numbers may be incremented by 11 if the initial choice of RPC port is being used when Message Queuing initializes. Port 135 is queried to discover the 2xxx ports.

# Install Message Queuing

Applies To: Windows 7, Windows 8, Windows Server 2008 R2, Windows Server 2012

Use this procedure to install a Message Queuing server on a computer running Windows® 7 or Windows Server® 2008 R2. A Message Queuing server can perform the following actions:

  • Run the Message Queuing service

  • Host queues

  • Send and receive messages

  • Operate while disconnected from the network

  • Membership in the local Administrators group, or equivalent, is the minimum required to complete this procedure.

## Installing Message Queuing on Windows 7

To install Message Queuing on Windows 7

  • Open Control Panel.

  • Click Programs , and then under Programs and Features , click Turn Windows features on or off .

-or-

  • Click Classic View , double-click Programs and Features , and then in the tasks pane, click Turn Windows features on or off .

  • Expand Microsoft Message Queue (MSMQ) Server , expand Microsoft Message Queue (MSMQ) Server Core , and then select the check boxes for the Message Queuing features that you want to install.

  • Click OK .

  • If you are prompted to restart the computer, click OK to complete the installation.

## Installing Message Queuing on Windows Server 2008 R2

To install Message Queuing on Windows Server 2008 R2

  • Click Start , point to Programs , point to Administrative Tools , and then click Server Manager to display the Server Manager.

  • Click Add Features to start the Add Features Wizard .

  • Expand MSMQ , expand MSMQ Services , and then select the check boxes for the Message Queuing features that you want to install.

  • Click Next , and then click Install .

  • If you are prompted to restart the computer, click OK to complete the installation.

### Setting Permissions in Active Directory Domain Services Before Installing the Routing Service or the Directory Service Integration Features of Message Queuing

The successful installation of the Routing Service feature on a Windows Server 2008 R2 computer that is not a domain controller, or the Directory Service Integration feature of Message Queuing on a Windows Server 2008 R2 computer that is a domain controller requires that specific permissions are set in Active Directory Domain Services. Follow these steps to grant the appropriate permissions in Active Directory Domain Services before installing these features.

To grant permissions for a computer object to the Servers object in Active Directory Domain Services before installing the Routing Service feature on a computer that is not a domain controller
Click Start , point to Programs , point to Administrative Tools , and then click Active Directory Sites and Services to open Active Directory Sites and Services .

  • Click to expand Active Directory Sites and Services , click to expand Sites , and then click to expand the site which this computer will be a member of.

  • Right-click Servers and select Properties to display the Servers Properties dialog box.

  • Click the Security tab of the Servers Properties dialog box.

  • Click the Add button to display the Select Users, Computer, or Groups dialog box.

  • Click the Object Types button to display the Object Types dialog box, click to enable Computers , and then click OK .

  • Enter the name of the computer for which the Routing Service or Directory Service Integration feature will be installed, click Check Names , and then click OK .

  • Enable the following permissions for this computer object:

  • Allow Read

  • Allow Write

  • Allow Create all child objects

  • After enabling these permissions, click Advanced to display the Advanced Security Settings for Servers dialog box.

  • Select the computer object from the list of permission entries, and then click the Edit button.

  • Select Thisobject and all descendant objects from the Apply to drop-down list, and then click OK .

  • Click OK to close the Advanced Security Settings for Servers dialog box.

  • Click OK to close the Server Properties dialog box.

## To grant the Network Service account the Create MSMQ Configuration Objects permission to the computer object in Active Directory Domain Services before installing the Directory Services Integration feature on a computer that is a domain controller

  • Click Start , point to Programs , point to Administrative Tools , and then click Active Directory Users and Computers to open Active Directory Users and Computers .

  • Click the View menu and click to enable the options for Users, Groups, and Computers as containers and Advanced Features

  • Click to expand the Domain container for the domain, click to expand the Computers container, right-click the computer object on which the Directory Services Integration feature is being installed, and then click Properties to display the computer properties dialog box.

  • Click to select the Security tab of the computer properties dialog box.

  • Click the Advanced button to display the Advanced Security Settings for dialog box.

  • Click the Add button to display the Select User, Computer, or Group dialog box.

  • Type Network Service into the Enter the object name to select edit box. Click Check Names , and then click OK .

  • Click to enable Allow for the Create MSMQ Configuration objects permission, and then click OK to close the Permissions Entry for dialog box.

  • Click OK to close the Advanced Security Settings for dialog box.

  • Click OK to close the computer properties dialog box.

Cover image for Enable Microsoft Message Queue (MSMQ) Server in Windows 11

Enable Microsoft Message Queue (MSMQ) Server in Windows 11: MSMQ (Microsoft Message Queuing) is a powerful tool that facilitates asynchronous communication between applications, making data exchange seamless and efficient. It’s designed to facilitate asynchronous communication between applications and systems, offering a reliable and efficient way to exchange messages and data. This guide will walk you through the steps to enable MSMQ Server in Windows 11.

How to Enable MSMQ Server in Windows 11 – Quick Steps:

  • Click on the Start Menu and open the Control Panel.
  • Switch the Control Panel view to Category.

Category View

Category View

  • Now, Click on Programs.

Programs

Programs

  • Under Programs and Features, click on Turn Windows Features on or off.

Turn Windows Features on or off

Turn Windows Features on or off

  • Windows Features dialog box will open now.
  • Search and locate Microsoft Message Queue (MSMQ) Server from the list of services available*.
    Enable MSMQ Server

    *

  • Click on the checkbox next to it and then click on OK.
  • The system will prompt for a restart. Click Close. Continue with Restart if prompted. It is recommended that changes made to the system reflect while using the environment.

Close

Close

  • That is it, MSMQ Server in Windows 11 is now enabled. Enjoy Seamless Connectivity.

Key Features of MSMQ Server in Windows 11:

Microsoft Messaging Queue

Microsoft Messaging Queue

  1. Asynchronous Communication: MSMQ allows applications to send messages to a queue without waiting for a response immediately. This asynchronous model is beneficial for decoupling components in distributed systems, improving overall system reliability and scalability.
  2. Reliable Message Delivery: Messages sent via the MSMQ server are stored in queues , ensuring reliable delivery even in scenarios like network failures or system downtime. This reliability is crucial for critical applications where message loss or duplication is not acceptable.
  3. Transaction Support: It supports transactions, enabling applications to send and receive messages within atomic units of work. This ensures that message processing is consistent and reliable, with built-in support for rollback in case of failures.
  4. Message Queues: It uses message queues to communicate between sender and receiver applications. These queues can be local or remote, providing flexibility in designing distributed systems.
  5. Scalability and Performance: It is designed for high-performance messaging , capable of handling large volumes of messages efficiently. It’s scalable both in terms of message throughput and the number of queues and applications it can support.
  6. Integration with Windows Services: MSMQ seamlessly integrates with other Windows services and technologies, such as Active Directory for authentication and authorization, making it easy to incorporate into existing Windows-based environments.

Take away:

By utilizing MSMQ in your Windows Server, you can enhance the scalability, reliability, and performance of your applications, ensuring smooth data exchange and streamlined workflows. Embrace MSMQ Server and take your Windows 11 experience to the next level of messaging efficiency! Happy Coding! Peace out!

Overview

This article describes how to install Microsoft Message Queuing (MSMQ) to store emails temporarily, while they are being scanned or waiting to be processed by the mail server.

Process

  1. Launch the Server Manager.

    MSMQ_2016.PNG

  2. Go to Manage > Add Roles and Features.

    SMm.PNG

  3. Click Next from the Before You Begin screen.

    SM2.jpg

  4. Select Role-based or feature-based installation and click Next.

    SM03.PNG

  5. Select the destination server.

    smmm.png

  6. Go to Features, navigate to Message Queuing > Message Queuing Services, and select Message Queuing Server.
  7. Click Install to start the installation. The setup may require a system restart.

    sm6.png

  8. Click OK to finish.

Confirmation

Once the Installation wizard is complete, the Message Queuing Services is installed on Windows Server 2016.

Installing Message Queuing services (MSMQ) on Windows Server 2016 or later Start Server Manager. Go to Manage > Add Roles and Features. In the Before You Begin screen, click Next. Select Role-based or feature-based installation and click Next. Select the server where to install the feature.

To do this: Select Windows Start->Control Panel. Click on Add/Remove Programs. Click on the Add/Remove Windows Components icon on the left. Select Message Queuing. Select the check box. Click on the Details button. Select Common. Keep clicking OK to continue the install.

How do I reinstall a message queuing?

Answer Browse to Control Panel. Open Add/Remove Program. Open Add/Remove Windows Components. Click Application Server. Uncheck Message Queuing. Go through the entire wizard. Reboot the machine. Follow the same steps to re-install MSMQ (Message Queuing).

How do I open message queue in Windows Server 2016?

Open Control Panel. Click Programs and then, under Programs and Features, click Turn Windows Features on and off. Open Server Manager. Click Add Roles and Features. Click Installation Type. Click Role-based or feature-based installation. Click Next. Click Features. Expand Message Queuing. Click Message Queuing Server.

How do I access my Microsoft Message Queue?

Run compmgmt. msc . Navigate to ‘Computer Management (Local) > Services and Applications > Message Queueing > Private Queues’ to see the two private queues used by my application.

Is MSMQ obsolete?

Since it exists in Windows 10 and Windows Server 2019, MSMQ will continue to live on until at least 2029—and much longer assuming it isn’t removed from future versions of Windows. The System. Messaging namespace lives on in . For all practical purposes, MSMQ is dead.

How do I know if MSMQ is installed?

Checking whether MSMQ is listening for messages Run the netstat command as follows: netstat -abno | findstr 1801. To confirm that one of these is the virtual driver in use for the clustered application, run the tasklist command as follows: tasklist /svc | findstr processID.

What is message queuing system?

A message queue is a form of asynchronous service-to-service communication used in serverless and microservices architectures. Messages are stored on the queue until they are processed and deleted. Each message is processed only once, by a single consumer.

What is Microsoft Message Queue Server?

MSMQ is essentially a messaging protocol that allows applications running on separate servers/processes to communicate in a failsafe manner. A queue is a temporary storage location from which messages can be sent and received reliably, as and when conditions permit.

What can I use instead of MSMQ?

Top Alternatives to MSMQ Kafka. Kafka is a distributed, partitioned, replicated commit log service. RabbitMQ. RabbitMQ gives your applications a common platform to send and receive messages, and your messages a safe place to live until received. IBM MQ. Azure Service Bus. ActiveMQ. Redis. MQTT. WCF.

How Kafka is different from other messaging system?

Kafka replicates data and is able to support multiple subscribers. Additionally, it automatically balances consumers in the event of failure. That means that it’s more reliable than similar messaging services available. Kafka Offers High Performance.

How do I start a message queue service?

Resolutions Open the Services snap-in. To open Services, click Start. In the search box, type services. msc, and then press ENTER. Right-click Message Queuing, and then click Restart. You must restart all the dependent services, as well.

How do you test MSMQ connectivity?

To test your messaging system using the Test Messaging System dialog box, follow these steps: Select MSMQ as the Messaging System. Specify a host name for the Computer Name, not a TCP address. Specify a Queue Name, such as private$\Magic. Enter a message in the Message box and click Send Message.

How do I monitor MSMQ performance?

MSMQ provides performance counters that are helpful for monitoring its performance.If you want to monitor the Dead-Letter queues, you should select Computer Queues: Bytes in Queue. Messages in Queue. Bytes in Journal Queue. Messages in Journal Queue.

How do I find the mail queue in Windows Server?

Use Queue Viewer to view the properties of a message In the Exchange Toolbox, in the Mail flow tools section, double-click Queue Viewer to open the tool in a new window. In Queue Viewer, select the Messages tab to see the list of messages that are currently queued for delivery in your organization.

Should I use MSMQ?

MSMQ is ideal for these kind of scenarios – when applications should be isolated and work even if other applications they interact with are down or unavailable. MSMQ supports transactions, if processing fails for any reason message can be returned back to queue to be retried later.

Do I need Microsoft message queue?

Message Queuing provides guaranteed message delivery, efficient routing, security, and priority-based messaging. It can be used to implement solutions to both asynchronous and synchronous scenarios requiring high performance. Workflow: Message Queuing makes it easy to create a workflow that updates each system.

Is MSMQ secure?

MSMQ uses Windows security for authentication. Because the Windows domain SID is used to identify the client, this security option is only meaningful when both the client and service are part of the same Windows domain.

What port does MSMQ listen on?

MSMQ protocol operates over TCP port 1801. You need this port open at a bare minimum if you want to send messages. MSMQ uses this port to first establish a network session to a destination (which in this case is BizTalk) and then send the messages.

When should I use a message broker?

Message brokers are often used to manage communications between on-premises systems and cloud components in hybrid cloud environments. Using a message broker gives increased control over interservice communications, ensuring that data is sent securely, reliably, and efficiently between the components of an application.

Why are message queues used?

Message queues enable asynchronous communication, which means that the endpoints that are producing and consuming messages interact with the queue, not each other. Producers can add requests to the queue without waiting for them to be processed. Consumers process messages only when they are available.

What is the best message queue?

Top 10 Message Queue (MQ) Software MuleSoft Anypoint Platform. IBM MQ. Azure Scheduler. Apache Kafka. TIBCO Rendezvous. Google Cloud Pub/Sub. RabbitMQ. Apache ActiveMQ.

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

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Windows 10 оптимизация оперативной памяти озу
  • Kyocera fs 1120mfp драйвер сканера windows 10 x64
  • Что означает очистка обновлений windows
  • Как русифицировать windows server 2012 r2
  • Эмуляция ms dos в windows