Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
How to start a windows service using PowerShell?
To start a specific windows service, you need to use Start-Service command.ExampleStart-Service -Name SpoolerAbove command, will start the service name spooler. To check if service is started, use Get-Service –Name Spooler command.OutputStatus Name DisplayName ------ ---- ----------- Running spooler Print SpoolerThis command will not show the command progress. To check the command progress, use –Verbose parameter.PS C:\> Start-Service -Name Spooler -Verbose VERBOSE: Performing the operation "Start-Service" on target "Print Spooler (Spooler)".You can also start the service with, Get-Service -Name Spooler | Start-Service -Verbose PS C:\> Get-Service -Name Spooler | Start-Service -Verbose VERBOSE: Performing the operation "Start-Service" on target "Print Spooler ...
Read MoreHow to stop service with their dependent services using PowerShell?
To stop multiple services can be stopped using Name or displayname by providing command (,) between them.With name and DisplayName,Stop-Service -Name Spooler, W32Time -Verbose Stop-Service -DisplayName "Print Spooler","Windows Time" -Verbose
Read MoreHow to stop multiple services using PowerShell?
To stop multiple services can be stopped using Name or displayname by providing command (,) between them.With name and DisplayName,Stop-Service -Name Spooler, W32Time -Verbose Stop-Service -DisplayName "Print Spooler","Windows Time" –Verbose
Read MoreHow to stop the service with the display name in PowerShell?
Similar to -Name parameter, when you add -DisplayName parameter followed by service display name, it will stop service with DisplayName.Stop-Service -DisplayName 'Print Spooler' -VerboseORGet-Service -DisplayName "Print Spooler" | Stop-Service -Verbose
Read MorePrint all nodes that are at distance k from a leaf node in C++
In this problem, we are given a binary tree and a number K. We have to print all nodes of the tree that are at k distance from the leaf node.Binary Tree is a special tree whose each node has at max two nodes (one/two/none).The leaf node of a binary tree is the node at end of the tree.In this problem, distance from the leaf node is the node at a higher level than the leaf node. Suppose, the node at distance 2 from the leaf node at level 4 will be at level 2.Let’s take an example to understand ...
Read MorePrint all odd numbers and their sum from 1 to n in PL/SQL
In this problem, we are given a number n and we have to print all odd numbers from 1 to n and also print the sum of numbers from 1 to n in PL/SQL.PL/SQL is a procedural language extension to SQL. The code is a sequence of instructions that are ground in a block with all related declarations and instructions.Let’s see an example of our problem −Input: 7 Output: odd numbers are: 1, 3, 5, 7 Sum of odd numbers is 16To solve this problem, we will take a number and initialize it to 1 and a sum variable with ...
Read MoreHow to Monitor your Linux Servers and Websites from Cloud
This article will help you to monitor IT infrastructure, Servers, Websites from the cloud. There is a huge requirement of having a tool to monitor and cloudstats.com fits the bill of a cloud monitoring tool. One of the key feature of this tool is to send you alerts and notifications to the team for CPU, DISK, RAM, Network usage and also monitors the services like Apache, MySQL, Mail, FTP, DNS.Cloudstats.meCloudStats.me is a new monitoring tool from Linux server, which is very easy to use and has a good yet capable feature of providing most vital information of your servers. CloudStats ...
Read MoreHow to Migrate MySQL to MariaDB on Linux?
This article will help you to migrate the database from MySQL to MariaDB as the binary compatibility of MySQL-to-MariaDB in the migration process is very much straightforward.After the Oracle’s acquisition of MySQL, the community has driven an outcome of such movement and developed a new database called MariaDB. MariaDB is the open-source and its compatibility with MySQL. Most of the Linux distributions (RH, CentOS, Fedora) have already started to use the support of MariaDB as a drop-in replacement of MySQL.If we want to migrate the database from MySQL to MariaDB then this article will help.Preparing a MySQL Database and TablesWe ...
Read MoreHow To Use Let's Encrypt SSL Certificate To Secure Nginx for free on CentOS 7
In this article, we will learn how to secure Ngnix using a free SSL from Let’s Encrypt, Let’s Encrypt which is a new certifying authority which provides an easy way to obtain and install it for free TSL/SSL certificates. We can enable HTTPS on web servers. Let’s Encrypt has simplified the process by providing a software client which automates most of the steps required for obtaining the SSL from the certifying authority. Currently Let’s Encrypt is still in open beta version. Also note that, the entire process for obtaining and installing the certificate is fully automated.PrerequisitesWe needed a CentOS 7 ...
Read MoreHow to Kill a Process by Name in Linux?
This article shows you how to use the Linux pkill command to kill running processes within Linux by using a name. Pkill (see pgrep) is a command-line utility while Solaris 7 process is running. pkill works on a currently active running process and lists down process ID’s which matches with the criteria.To kill a process by name in Linux, use the following command –pkillTo get a list of process in Linux, use the following command –$ ps -AThe sample output should be like this –PID TTY TIME CMD 1 ? ...
Read More