ubuntu系统下关于apache2重启问题
来源:互联网 发布:淘宝免费赠品网 编辑:程序博客网 时间:2024/05/01 06:24
现象:
服务器掉电,重启服务器虚拟系统后,客户端开SVN链接,提示服务器无法链接,此时,服务器的ip,虚拟系统ip都可以ping通。后来发现可能是重启服务器过程中,操作不当,恢复了某些配置,导致如下问题:
1、apache未启动 。于是执行service apache2 restart 命令时,出现以下报错:
apache2: Syntax error on line 207 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/httpd.conf: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
...fail!
2、domain name恢复成以前的修改。执行ervice apache2 restart 命令时,出现以下报错,且在apache重启成功后,从客户端依然无法连接到服务器URL,原因是domain name错误,导致URL连接指向错误:
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.217.6 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.217.6 for ServerName
解决方法:
问题1:在报错目录下,重新创建httpd.conf文件(vim httpd.conf)即可;执行service apache2 restart 时重启可成功
问题2:sudo echo ServerName 192.168.218.6 >> /etc/apache2/httpd.conf /*192.168.218.6为新的domain name*/
再次重启apache,不报任何错误,重启成功!
- ubuntu系统下关于apache2重启问题
- ubuntu系统下关于环境变量的修改
- ubuntu下关于压缩文件安装到问题。
- linux系统下关于nginx、mysql、php等的启动、停止和重启命令。
- ubuntu系统下关于环境变量的修改(转)
- ubuntu系统下关于环境变量的修改(转)
- ubuntu下关于pidgin 和 lumaQQ 登录问题
- iOS8.4系统下关于点击UITextField闪退问题
- Ubuntu无法重启apache2
- 记录下关于系统版本
- ubuntu 下关于PCAP_FRAMES设置的原文
- Ubuntu下关于tomcat的几个常见问题
- ubuntu下关于python的东东
- Ubuntu 13.10 下关于Java的 classpath
- Ubuntu 下关于crontab的使用详解
- Ubuntu下关于tftp的配置
- Ubuntu下关于crontab的使用详解
- Ubuntu下关于将普通用户权限提升为root的问题
- spring获取webapplicationcontext,applicationcontext几种方法详解
- The World Wide Web
- Cocos2d-x笔记(二)Sqlite数据库基本操作
- CentOS忘记密码,修改root密码
- Android文件命名规范
- ubuntu系统下关于apache2重启问题
- 使用AngularJS构建大型Web应用
- Subversion/Git/ReviewBoard工作流程
- OCP-1Z0-053-V12.02-648题
- linux下不同服务器间数据传输(rcp,scp,rsync,ftp,sftp,lftp,wget,curl)
- android项目命名规范
- How to: Find a TreeViewItem in a TreeView
- php单例模式
- jquery筛选数组之grep、each、inArray、map的用法及遍历json对象 [转]