0

How to create Start-Stop-Status-Restart service for Stunnel on CentOS

Asked 4 years ago (Mar 29, 2021) in the field of Operating Systems by Samanta

Hi Elder, I have CentOS 7 and I want to install the Stunnel package. Please advise on how to build the stunnel service so that the stunnel can be stopped-start-status-reloaded.


Answers


0
Answered 4 years ago (Mar 30, 2021) by Eldernode staff

Dear Samanta, 

 

To install the stunnel package, run the command below:

sudo yum -y install stunnel  

But if the packages would not be installed as a service on your server, the below commands may not work.

systemctl start stunnel  systemctl stop stunnel  systemctl status stunnel  systemctl restart stunnel

So, use the following command to be able to run the stunnel.

stunnel /etc/stunnel/stunnel.conf  

So, the stunnel.conf and stunnel.pem will be created and you should receive no error then. Now, the stunnel can listen to the related port.

 

Feel free to ask any more questions.

Thank you for sending this message.

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day