[英]Setting up SSL on raspberry pi
I have a raspberry pi with apache on it, and I would like to set up SSL on it. 我有一个带有apache的树莓派,我想在上面设置SSL。
Issues and what I have tried: 问题和我尝试过的方法:
When I try to activate the SSL module and run the command: sudo a2enmod ssl
and sudo a2enmod default-ssl
I get command not found
. 当我尝试激活SSL模块并运行命令时: sudo a2enmod ssl
和sudo a2enmod default-ssl
我command not found
。
My second issue is that I cannot restart the apache webserver, I would run the command sudo /etc/init.d/apache2 restart
and as a result I get apache2.serviceJob for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details
我的第二个问题是我无法重新启动apache Web服务器,我将运行命令sudo /etc/init.d/apache2 restart
,结果我得到apache2.serviceJob for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details
apache2.serviceJob for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details
. apache2.serviceJob for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details
。
What am I doing wrong? 我究竟做错了什么?
Any advice is greatly appreciated. 任何意见是极大的赞赏。
Thanks in advance 提前致谢
Do you have a default-ssl.conf file in [wherever-it-is]/mods-available/default-ssl.conf 您在[where-it-is] /mods-available/default-ssl.conf中是否有一个default-ssl.conf文件?
sudo nano it into existence if not, 须藤纳米如果不存在,
restarting the server, have you tried "sudo service apache2 restart" or replace "restart" with "reload"? 重新启动服务器,您是否尝试过“ sudo service apache2 restart”或将“ restart”替换为“ reload”?
How do you normally access services on a Pi? 您通常如何在Pi上访问服务?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.