随笔分类 -  centos

1
摘要:1、添加yum库 sudo yum install -y https://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm 2、导入 mysql GPG公钥 失效的:sudo rpm --import https://repo.mys 阅读全文
posted @ 2023-12-28 22:10 Binz 阅读(304) 评论(0) 推荐(0) 编辑
摘要:1、进入实例详情,选择网络与安全 -> 弹性网卡 2、创建网卡 3、然后创建好之后,绑定实例,我图1的是已经绑定好了的 4、进入弹性公网IP : https://vpc.console.aliyun.com/eip/ap-southeast-1/eips 5、购买ip,建议选择按量付费,购买完成后绑 阅读全文
posted @ 2023-11-20 15:14 Binz 阅读(584) 评论(0) 推荐(0) 编辑
摘要:执行命令 ps -ef | grep xxx.jar | grep -v grep | awk '{print $2}' | xargs kill -9 其中的xxx.jar换成实际情况的应用关键字 阅读全文
posted @ 2023-08-22 11:09 Binz 阅读(126) 评论(0) 推荐(0) 编辑
摘要:socket保持连接原理:客户端使用tcp端口连接至服务端,服务端会打开一个句柄文件和客户端保持连接,注意并不是一个连接就会占用一个服务器端口,所以socket连接数跟系统最大端口数无关,不然系统防火墙不就没啥用,默认系统每个进程打开的句柄是有限制的,另外整个系统还有一个句柄限制总数,所以socke 阅读全文
posted @ 2023-08-17 11:15 Binz 阅读(621) 评论(0) 推荐(0) 编辑
摘要:如果出现镜像拉取过慢,请查看:https://www.cnblogs.com/binz/p/11790948.html 中的更换国内镜像 1、相关地址: 官网:https://skywalking.apache.org/下载:https://skywalking.apache.org/downloa 阅读全文
posted @ 2023-05-26 16:56 Binz 阅读(622) 评论(0) 推荐(0) 编辑
摘要:1.springboot方式 1.1新建一个bootstart.sh 1.2 java8内容如下 export JAVA_HOME=/home/jdk/java8 export JRE_HOME=$JAVA_HOME/jre export CLASSPATH=$JAVA_HOME/lib:$JRE_ 阅读全文
posted @ 2023-04-28 16:19 Binz 阅读(283) 评论(0) 推荐(0) 编辑
摘要:centos7 #安装yum install epel-releaseyum updateyum install redis#命令service redis stopservice redis startservice redis statusservice redis restart#开机启动sy 阅读全文
posted @ 2023-04-11 17:35 Binz 阅读(55) 评论(0) 推荐(0) 编辑
摘要:其他系统请查看 官网的下载页选择对应的安装 oracle jdk : https://www.oracle.com/java/technologies/downloads/ 微软openjdk : https://learn.microsoft.com/zh-cn/java/openjdk/down 阅读全文
posted @ 2023-03-29 12:04 Binz 阅读(7640) 评论(0) 推荐(0) 编辑
摘要:1、安装nodejs 1.1.yum方式 curl -fsSL https://rpm.nodesource.com/setup_16.x | sudo bash - sudo yum install nodejs node -v 1.2.下载方式 #进入 https://nodejs.org/di 阅读全文
posted @ 2023-03-24 21:21 Binz 阅读(1630) 评论(0) 推荐(0) 编辑
摘要:1、创建目录 mkdir -p /home/mavencd /home/maven 2、下载包,注意:有可能不会存在,可以查看https://archive.apache.org/dist/maven/maven-3/ 换成存在的路径 wget https://archive.apache.org/ 阅读全文
posted @ 2023-03-24 20:43 Binz 阅读(688) 评论(0) 推荐(1) 编辑
摘要:1、设置系统时区为上海时区 cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 2、安装ntpdate yum install -y ntpdate 3、同步网络时间 ntpdate us.pool.ntp.org 阅读全文
posted @ 2022-09-20 10:34 Binz 阅读(128) 评论(0) 推荐(0) 编辑
摘要:centos统计服务器当前IP连接数 netstat -tun | awk '{print $5}' | cut -d: -f1 |sort | uniq -c | sort -n 阅读全文
posted @ 2022-01-03 12:07 Binz 阅读(34) 评论(0) 推荐(0) 编辑
摘要:1、先切换到字体目录 /usr/share/fontsls 2、查看有没有chinese目录,没有就创建一个 mkdir chinesechmod -R 755 /usr/share/fonts/chinesecd chinese 3、上传字体文件simsunb.ttf等等,没有吧Window系统的 阅读全文
posted @ 2021-03-08 15:18 Binz 阅读(889) 评论(0) 推荐(0) 编辑
摘要:前提:有A、B、C、D四台服务器,都在同一个网段,ABC不可联网,D可连接互联网。 在D安装代理软件 yum -y install tinyproxy 修改默认端口 vim /etc/tinyproxy/tinyproxy.conf Port 18899 #默认8888 #Allow 127.0.0 阅读全文
posted @ 2020-09-13 01:49 Binz 阅读(1298) 评论(0) 推荐(0) 编辑
摘要:内存前十:ps aux | head -1; ps aux | sort -k4nr | head -10 ip连接数统计: netstat -tun | awk '{print $5}' | cut -d: -f1 |sort | uniq -c | sort -n 端口占用:lsof -i:80 阅读全文
posted @ 2020-05-15 14:32 Binz 阅读(342) 评论(0) 推荐(0) 编辑
摘要:systemctl enable nginx #设置自启动 systemctl disable nginx #停止自启动ls /usr/lib/systemd/system #查看自启动列表 阅读全文
posted @ 2020-05-14 14:14 Binz 阅读(253) 评论(0) 推荐(0) 编辑
摘要:centos7 yum install epel-release yum update yum install -y nginx #安装stream模块,如果需要 yum install nginx-mod-stream -y# systemctl start nginx.service 启动ngi 阅读全文
posted @ 2020-05-14 14:07 Binz 阅读(147) 评论(0) 推荐(0) 编辑
摘要:systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl start firewalld #启动 firewall firewall-cmd - 阅读全文
posted @ 2020-05-14 11:49 Binz 阅读(260) 评论(0) 推荐(0) 编辑
摘要:先安装 yum -y install wget mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup CentOS 5wget -O /etc/yum.repos.d/CentOS-Base.rep 阅读全文
posted @ 2020-04-03 17:46 Binz 阅读(1293) 评论(0) 推荐(0) 编辑
摘要:ps -ef|grep java\ -cp\ .*jar|grep -v grep|cut -c 9-15|xargs kill -9 阅读全文
posted @ 2017-08-24 09:55 Binz 阅读(325) 评论(0) 推荐(0) 编辑

1
点击右上角即可分享
微信分享提示