![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
指尖飘落的程序
不努力,怎能面对...
展开
-
linux固定ip地址,固定映射,防火前
1.1修改主机名 vim /etc/sysconfig/network 1.2修改IP vim /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0" BOOTPROTO="static" ### HWADDR="00:原创 2017-03-27 11:04:40 · 378 阅读 · 0 评论 -
linux下判断命令是属于哪个软件的
which 例如which jps 显示/usr/java/bin原创 2017-03-27 11:45:30 · 381 阅读 · 0 评论 -
hadoop非本机无法访问50070端口
本机直接访问50070是可以访问到,但是别的机子ip:端口无法访问到, 原因是装了hadoop的机子的防火墙是打开的,将防火墙关闭即可访问。 关闭防火墙方法: 查看防护墙状态 service iptables status 关闭 service iptables stop原创 2017-04-03 23:23:45 · 2204 阅读 · 0 评论 -
linux设置开机服务自动启动/关闭自动启动命令
[root@localhost ~]# chkconfig --list 显示开机可以自动启动的服务 [root@localhost ~]# chkconfig --add *** 添加开机自动启动***服务 [root@localhost ~]# chkconfig --del *** 删除开机自动启动***服务原创 2017-04-15 14:49:22 · 1251 阅读 · 0 评论 -
Mounting HGFS shares: [FAILED]
在VM中安装LInux系统,然后在安装VMware Tools之后,会报下列错误: Mounting HGFS shares: [FAILED] 在Linux启动的时候常常报下列错误: Mounting local filesystems: [FAILED] Mounting HGFS filesystems: [FAILED] Mounting other filesystems:原创 2017-04-15 14:52:06 · 4092 阅读 · 0 评论 -
Linux下,tomcat随系统自启
在/etc/init.d/目录下生产tomcat文件, vim tomcat, 将下面的复制进去 #!/bin/bash # # # /etc/rc.d/init.d/tomcat # init script for tomcat precesses # # processname: tomcat # description: tomcat is a j2se server # chkconf原创 2017-09-07 17:29:32 · 224 阅读 · 0 评论 -
centos7 tomcat8 自启
假设Tomcat的安装路径为/soft/apache-tomcat-8.0.501 为Tomcat添加启动参数catalina.sh在执行的时候会调用同级路径下的setenv.sh来设置额外的环境变量,因此在/opt/tomcat/bin路径下创建setenv.sh文件,内容如下:export CATALINA_HOME=/soft/apache-tomcat-8.0.50export CATAL...原创 2018-03-22 16:55:36 · 921 阅读 · 0 评论 -
centos7 防火墙 firewall命令
CentOS7使用firewalld打开关闭防火墙与端口1、firewalld的基本使用启动: systemctl start firewalld查看状态: systemctl status firewalld 停止: systemctl disable firewalld禁用: systemctl stop firewalld 2.systemctl是CentOS7的服务管理工具中主要的工具,它...原创 2018-03-22 10:38:22 · 247 阅读 · 0 评论 -
linux统计文件中字符串出现次数
grep 'interfaces.esquery.service.DataRowSearchService,search,datamanager-es' rpc-server-digest.log |grep '2018-09-29 14:10:0' -c 统计在rpc-server-digest.log中 字符串包含2018-09-29 14:10:0 包含'interfaces.esque...原创 2018-09-29 14:16:26 · 1069 阅读 · 0 评论