• 解决centos6.5使用JMX时远程连接不上的问题

    日期:

    环境说明 系统:centos6.5; tomcat: 7.059,使用commons-daemon-native.tar.gz配置自启动; java:1.7.0_75-b13; /etc/hosts: $ServerIp localhost ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 $ServerIp iZ258xcfjroZ localhost...

  • 解决centos7的网卡命名问题

    日期:

    在进行centos7的pxe安装测试中发现了网卡命名不再遵从来有的命名规则而启用了最新的命名方式,官网文档描述如下: 在 RedHat EnterpriseLinux7 中,systemd和udevd支持大量不同的命名方案。默认行为是根据固件、拓扑及位置信息分配固定名称。这个命名方法的优...

  • Centos7.1.1503中文编码下,tomcat service命令不支持UTF-8

    日期:

    碰到一个特殊的case,使用/etc/init.d/tomcat 命令可以只是中文,只需要tomcat的server.xml 增加URIEncoding=UTF-8即可。但是使用service tomcat 命令却死活不行。 暂时没有发现根本原因,解决方案如下 脚本增加locale设置 export LANG=en_US.UTF-8 export L...

  • 解决virtualbox最小化安装centos7后不能上网

    日期:

    文件 /etc/sysconfig/network-scripts/ifcfg-enp0s3 将 ONBOOT=no 改为 ONBOOT=yes 保存后重启网卡: service network restart 此时就可以上网了。 因为是最小化安装,此时ifconfig命令不能用,可用 命令:ip addr 查看分配网卡情况。 联网后可运行命令: yu...

  • 解决CentOS不能ping通win系统

    日期:

    1、关闭CentOS的防火墙后,能在win ping通CentOS,但是CentOS 不能ping 通win。 Solution: 控制面板 windows防火墙-入站规则 文件和打印机共享(回显请求ICPv4-in) +文件和打印机共享(回显请求ICPv6-in) 启用规则 2、CentOS和win能相互ping通,但是FileZilla...

  • 解决gzip: stdin has more than one entry--rest ignored

    日期:

    今天用 tar 命令解压 .zip 文件报错: gzip: stdin has more than one entry--rest ignoredtar: Child returned status 2tar: Error is not recoverable: exiting now 上网查找发现是因为tar命令调用了gzip,而gzip并不是可以解压所有文件的,有如下一段话:...

  • 解决"Error, some other host already uses address"

    日期:

    事件: 今天Hyper-V导入虚拟机模板之后网卡无法启动 尝试各种方法无效 另网上有人重装系统依然无效 解决方法如下: vi /etc/sysconfig/network-scripts/ifup-eth 注解掉下面的几行内容,然后再执行service network restart #if ! /sbin/arping -q -c 2 -w 3 -D...

  • Centos下安装配置Apache过程中可能出现的错误

    日期:

    httpd:unrecognized service //将apache安装为系统服务cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd//然后 vi /etc/rc.d/init.d/httpd 添加(#!/bin/sh下面)chkconfig: 2345 50 90description: Activates/Deactivates Apache Web Server//最...

  • 解决centos系统无法使用ssh远程工具连接方法

    日期:

    打开centos系统,使用root登录。在命令行中执行 #service sshd status 检查ssh服务是否启动。 如果ssh没有启动 使用如下命令进行启动 #service sshd start 或者 #/etc/init.d/sshd start PS:centos设置ssh开机启动,在命令行中执行 #chkconfig --add sshd#ch...

  • 解决数据库连接报ERROR 1045 (28000)问题

    日期:

    今天在Centos服务器上安装mysql数据库,装完之后使用连接命令 mysql -uroot -p 后,抛出如下命令 ERROR 1045 (28000): Access denied for user root@localhost (using password: NO) 以前也装过mysql数据库,默认密码都是为空的,现在安装完后,使用空密码也...