指定用户为mortalz7,本身设定一个密码,并重新输入一下,出现Adding password for user mortalz7即表示成功。
htpasswd -c /www/.htpasswd mortalz7
复制代码
查看,显示用户mortalz7,表示用户设置完成。
cat /www/.htpasswd
复制代码
3.8 加载设置并启动
/usr/local/apache2/bin/apachectl graceful
复制代码
/usr/local/apache2/bin/apachectl start
复制代码
【题目解决】 一、题目:
httpd not running, trying to start
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs