随笔分类 -  centos7

摘要:下载文件 wget https://www.ffmpeg.org/releases/ffmpeg-7.1.tar.xz.asc wget https://www.ffmpeg.org/releases/ffmpeg-7.1.tar.xz 下载签名 https://ffmpeg.org/ffmpeg- 阅读全文
posted @ 2025-02-17 15:18 猝死的路上 阅读(0) 评论(0) 推荐(0) 编辑
摘要:1.进入yum.repos.d目录 cd /etc/yum.repos.d/ 2.备份当前目录yum.repos.d下的所有文件,然后删除 3.安装阿里yum源 curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/r 阅读全文
posted @ 2024-09-09 11:57 猝死的路上 阅读(569) 评论(0) 推荐(0) 编辑
摘要:运行 yum repolist all | grep mysql 出现 https://download.docker.com/linux/centos/7/x86_64/stable/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to conne 阅读全文
posted @ 2024-07-31 11:57 猝死的路上 阅读(322) 评论(0) 推荐(0) 编辑
摘要:1.下载yum源 https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm 2.安装 yum install mysql80-community-release-el7-1.noarch.rpm 3.列出可安装的版本 y 阅读全文
posted @ 2024-07-23 17:57 猝死的路上 阅读(180) 评论(0) 推荐(0) 编辑
摘要:如果直接使用 tar -zxvf jdk-8u381-linux-x64.tar.gz 不带 strip-components 参数解压出来会自动带有一个文件夹 jdk1.8.0_381 并且自动解压到了当前文件夹下 现在想解压到 /home/java 文件夹下面,并且解压出来不要自带 jdk1.8 阅读全文
posted @ 2024-04-07 16:31 猝死的路上 阅读(491) 评论(0) 推荐(0) 编辑
摘要:1.查找cpu使用率最高的进程,称为主进程 查看各种应用的cpu使用情况,按下大写P,从高到低排序 能看到占用cpu最多的那个主进程Pid,比如 13478 top -c 2.查找cpu使用率最高的进程里哪个线程占用cpu 最高,能得到一个线程Pid,比如 15678 top -Hp [主进程pid 阅读全文
posted @ 2023-12-22 00:24 猝死的路上 阅读(141) 评论(0) 推荐(0) 编辑
摘要:在centos7下启动的java应用,有时候需要结束某一个进程,如何根据应用名字快速找到应用的进程 使用-jar启动的应用 java -jar test.jar 应用名称为 test,那下面的命令可以找到 test.jar的pid并结束进程 ps ax | grep java | grep test 阅读全文
posted @ 2023-12-17 22:49 猝死的路上 阅读(141) 评论(0) 推荐(0) 编辑
摘要:在根目录下使用如下命令 du -sh * | sort -n 得到结果 du: cannot access ‘proc/28012’: No such file or directory du: cannot access ‘proc/28071/task/28071/fd/4’: No such 阅读全文
posted @ 2023-12-15 09:10 猝死的路上 阅读(62) 评论(0) 推荐(0) 编辑
摘要:1.去oracle官网下载jdk1.8,需要注册,下载后缀为 .tar.gz,比如 jdk-8u381-linux-x64.tar.gz 2.上传到服务器,解压 建立文件夹,将java安装到指定目录 mkdir -p /home/java8 由于java的安装包解压后默认套了一层,解压后默认会有 j 阅读全文
posted @ 2023-12-11 11:58 猝死的路上 阅读(103) 评论(0) 推荐(0) 编辑
摘要:开端口 firewall-cmd --zone=public --add-port=3389/tcp --permanent firewall-cmd --reload 查看端口 firewall-cmd --list-port 关端口 firewall-cmd --zone=public --re 阅读全文
posted @ 2023-11-01 17:51 猝死的路上 阅读(9) 评论(0) 推荐(0) 编辑
摘要:配置文件位置 /etc/sysconfig/network-scripts/ifcfg-ens32 TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=static 关键 DEFROUTE=yes IPV4_FAILURE_FATAL= 阅读全文
posted @ 2023-11-01 17:48 猝死的路上 阅读(24) 评论(0) 推荐(0) 编辑
摘要:unzip 1.zip -d . 阅读全文
posted @ 2023-11-01 17:46 猝死的路上 阅读(21) 评论(0) 推荐(0) 编辑
摘要:服务器 单个云盘容量不够了,买了扩容服务,需要运行以下命令才能扩容成功 yum install -y cloud-utils-growpart growpart /dev/vda 1 resize2fs /dev/vda1 lsblk 查看是否扩容 df -Th 第二次扩容,先运行命令 df -Th 阅读全文
posted @ 2023-11-01 17:42 猝死的路上 阅读(25) 评论(0) 推荐(0) 编辑
摘要:之前一直用密码登录的,突然登录不上,并且提示 Unable to authenticate using any of the configured authentication methods 原因是服务器使用了密钥登录,把密钥配置上就可以了 阅读全文
posted @ 2023-11-01 17:36 猝死的路上 阅读(325) 评论(0) 推荐(0) 编辑

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