1.启动apache的时候出现下面的问题
问题:(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
原因:80端口被占用
解决方案:killall -9 httpd /usr/local/apache2/bin/apachetcl star
2.安装wordpress的时候出现白屏
遇到这种情况首先要想到打开php.ini的 display_error,刷新页面后显示出错误在什么地方
3.wordpress上传文件的时候出现
解决方法:chmod -R 777 [这个目录]
4.重新启动服务器,访问web服务发现无法浏览,登陆服务器之后进到nginx使用./nginx -s reload重新读取配置文件,发现报nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)错误
解决方案: /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
5.重装完系统,配置完ip后,修改ifcfg-eth0文件后重启网络服务时,就出现"Error, some other host already uses address"的报错,并且网络不通。
原图:网络的问题,IP被占用了
解决方案:vi /etc/sysconfig/network-scripts/ifup-eth
注解掉下面的几行内容,然后再执行service network restart
#if ! /sbin/arping -q -c 2 -w 3 -D -I ${REALDEVICE} ${IPADDR} ; then
#echo {1}quot;Error, some other host already uses address ${IPADDR}."
#exit 1
#fi
如果找不到,可以在vim编辑器中使用“/arping”之类的关键词快速定位
6.Xshell出现乱码。
原因:语言没有选择Unicode(UTF-8)
解决方案:文件→属性→终端→Unicode(UTF-8)
7.linux开机的时候出现
***An error occured during the filesystem check
***Dropping you to a shell; the system will reboot
***when you leave the shell.
Give root password for maintainence
(or type Controll-D to continue)
的错误
原因:一般情况下是磁盘出了问题
解决方案:输入linux登陆密码后,键入命令fdisk -l查看一下磁盘状况,然后根据实际情况进行修复
fsck -y /dev/sda1
fsck -y /dev/sda2
fsck -y /dev/sda3
fsck -y /dev/sda4
8.安装tomcat的jdk出现的一些问题:/lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
原因:是因为64位的linux系统安装了32位的jdk软件
解决方案:重新安装一个64位的jdk软件就行了
9.安装PHP的时候出现这种情况
解决方案:yum install -y gcc
10.安装nginx的时候,出现这种情况
解决方案:yum -y install pcre-devel
11.在启动VMware虚拟机的时候出现如下状况
造成这个现象的原因:没有正确关机虚拟机
解决方案:
1.打开控制面板的管理工具(win7找不到管理工具就直接搜索);
2.点击服务选项;
3.点选VMware Autheffication这一选项;
4.在启动类型选项点选:自动(延迟启动) ,再点击启动;
5.最后点击确定;
12.linux下shell显示-bash-4.1#不显示路径解决方法
在linux shell中不显示路径了,显示为-bash-4.1#用起来很不方便。
如何改为显示路径的shell呢?
步骤如下:
vim ~/.bash_profile
(不用管.bash_profile这个文件有几个,自己新建一个也是可以的)
在最后加上
export PS1='[\u@\h \W]\$'
然后执行
source ~/.bash_profile
这样shell就可以显示路径了
转载于:https://blog.51cto.com/358513922/1693114