随笔分类 - linux服务
linux服务
摘要:1、TCP/IP全称:Transmission Control Protocol / Internet Protocol 中文翻译:传输控制协议 / 互联网协议2、OSI4层、7层模型:
阅读全文
摘要:先打开一个linux文件,然后把复制的内容放到linux文件中即可解决
阅读全文
摘要:解决出现:^H^H^H^H 把stty erase ^H 添加到.bash_profile中 vim /etc/profile stty erase ^H su root source /etc/profile 参照: https://blog.csdn.net/u013907239/article/details/74898123
阅读全文
摘要:cat /etc/issue 或 cat /etc/centos-release
阅读全文
摘要:linux中查看端口号 yum install lsof -y [root@test1 ~]# lsof -i :80 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME httpd 11359 root 4u IPv6 34040 0t0 TCP *:http (LISTEN) httpd ...
阅读全文
摘要:普罗米修斯Prometheus监控安装 架构: 服务端:192.168.0.204 客户端:192.168.0.206 环境准备:所有节点安装go 语言环境 rz go1.12.linux-amd64.tar.gz tar -C /usr/local -xzf go1.12.linux-amd64.tar.gz cat >> /etc/profile>prometheus_rul...
阅读全文
摘要:免签名下载安装包实例如下: wget https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz --no-check-certificate
阅读全文
摘要:Iptables防火墙规则 iptables是组成Linux平台下的包过滤防火墙,与大多数的Linux软件一样,这个包过滤防火墙是免费的,它可以代替昂贵的商业防火墙解决方案,完成封包过滤、封包重定向和网络地址转换(NAT)等功能。在日常Linux运维工作中,经常会设置iptables防火墙规则,用来加固服务安全。以下对iptables的规则使用做了总结性梳理: iptables首先需要了解...
阅读全文
摘要:1、elk收集tomcat普通日志: 只在logstash节点增加如下文件,重启logstash即可: cat >>/home/logstash-6.3.0/config/tomcat_test.conf ["/usr/local/tomcat/logs/localhost_access_log.2019-02-12.txt"] type => "tomcat_log" ...
阅读全文
摘要:使用架构: 2台机器安装 GlusterFS 组成一个 Distributed Replicated Volumes集群 192.168.0.92 服务端 192.168.0.93 服务端 192.168.0.91 客户端 环境配置请参照:https://www.cnblogs.com/effortsing/p/10367025.html #关掉selinux、防火墙 2台...
阅读全文
摘要:实验架构: 192.168.0.92 服务端 192.168.0.93 客户端 1、服务端配置: 安装NFS和rpc 安装nfs服务 yum install -y rpc-bind nfs-utils 安装rpc服务 yum install -y rpcbind 启动服务和设置开启启动 systemctl start rpcbind systemctl e...
阅读全文
摘要:1、备份DefaultAuthenticatorInit.ldift文件 [root@test4 ~]# find / -name DefaultAuthenticatorInit.ldift /application/weblogic12/wls12130/user_projects/domains/mydomain/security/DefaultAuthenticatorInit.ldi...
阅读全文
摘要:weblogic12.1.3部署应用程序请参照:https://www.cnblogs.com/xdp-gacl/p/4143413.html
阅读全文
摘要:centos7.5 安装weblogic12.1.3 环境: centos7.5 ip: 192.168.0.94 安装jdk,请参照: https://www.cnblogs.com/effortsing/p/10012211.html 下载安装包:https://pan.baidu.com/s/1aShgs35dOgR-DRDMsOExDg 提取码:9dak rz ...
阅读全文
摘要:1、常用环境配置 2、配置ip免密登录 ssh-keygen -t rsa -f /root/.ssh/id_rsa -P "" ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.91 ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.92 ssh-copy-id -i ~/.ssh/id_r...
阅读全文
摘要:首先安装npm 下载网址:https://nodejs.org/dist/latest-v8.x/ rz node-v8.15.0-linux-x86.tar.xz 解压安装包 tar -xf /root/node-v8.15.0-linux-x86.tar.xz -C /usr/local/ 重命名为node cd /usr/local/ mv node-v8.15.0-li...
阅读全文
摘要:centos7.5 解决缺少libstdc++.so.6库的原因及解决办法 执行node -v报错如下: [root@bogon ~]# node -v node: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory 先...
阅读全文
摘要:linux下正确卸载rpm包 rpm -qa | grep -i ntp 执行结果: [root@bogon elasticsearch-head]# rpm -qa | grep -i ntp fontpackages-filesystem-1.44-8.el7.noarch 卸载: yum remove fontpackages-filesystem-1.44-8.el7.noar...
阅读全文
摘要:1、localhost解释 localhost意思是只能从本地访问 比如说 kibana的配置文件里面写的是localhost,那就无法从浏览器访问到服务,必须写ip地址才可以从浏览器访问到
阅读全文