随笔 - 209  文章 - 0 评论 - 11 阅读 - 30万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  linux

1 2 下一页
linux内核离线升级
摘要:查看当前内核版本 下载内核地址 https://mirrors.aliyun.com/elrepo/kernel/el7/x86_64/RPMS 安装内核 rpm -ivh kernel-lt-* --nodeps --force awk -F\' '$1=="menuentry " {print 阅读全文
posted @ 2024-01-08 15:27 博客园197 阅读(247) 评论(0) 推荐(0) 编辑
scp命令
摘要:将当前文件复制到远程服务器 scp /home/1.txt root@ip:/home/root 把文件从远程主机copy到当前系统 scp root@ip:/home/1.txt/home/root 复制文件夹的格式是 scp -r root@ip:/home/ /tmp 阅读全文
posted @ 2022-08-30 15:05 博客园197 阅读(6) 评论(0) 推荐(0) 编辑
java cpu占用过高
摘要:查到内存占用最高的是java应用,使用2253M内存,但是这台服务器跑了好几个java,具体哪个进程使用top看下资源情况 使用top 可以看到java应用整体内存使用率超过了70%,其中pid为16494的进程 一个应用占了28.7的内存 2.定位线程问题 使用ps查看46243的线程情况 命令: 阅读全文
posted @ 2022-04-08 17:37 博客园197 阅读(241) 评论(0) 推荐(0) 编辑
gcc9.4.0离线安装
摘要:1.下载gcc安装包 https://ftp.gnu.org/gnu/gcc 选择需要的版本,本文选择的是 gcc-9.10.tar.gz 2.下载gcc依赖包 用压缩工具打开下载好的 gcc-9.10.tar.gz ,查看contrib/download_prerequisites文件找到所需要下 阅读全文
posted @ 2022-02-16 13:58 博客园197 阅读(6995) 评论(2) 推荐(0) 编辑
linux shell学习
摘要:shell基础知识 什么是Shell Shell是命令解释器(command interpreter),是Unix操作系统的用户接口,程序从用户接口得到输入信息,shell将用户程序及其输入翻译成操作系统内核(kernel)能够识别的指令,并且操作系统内核执行完将返回的输出通过shell再呈现给用户 阅读全文
posted @ 2021-12-19 21:04 博客园197 阅读(62) 评论(0) 推荐(0) 编辑
centos7挂在镜像 用于yum安装
摘要:1. 上传镜像文件到本地目录 这里以CentOS-7-x86_64-Everything-1503-01.iso为例 2. 创建镜像挂载目录 mkdir -p /media/CentOS73. 挂载镜像文件mount -t iso9660 -o loop /usr/local/src/CentOS- 阅读全文
posted @ 2021-12-07 14:01 博客园197 阅读(520) 评论(0) 推荐(0) 编辑
linux操作用户
摘要:查看系统中有哪些用户: cut -d : -f 1 /etc/passwd 查看可以登录系统的用户: cat /etc/passwd | grep -v /sbin/nologin | cut -d : -f 1 查看某一用户: w 用户名 查看登录用户: who 查看用户登录历史记录: last 阅读全文
posted @ 2021-12-07 08:59 博客园197 阅读(24) 评论(0) 推荐(0) 编辑
centos7挂载/扩展硬盘
摘要:使用lsblk命令查看磁盘情况 lsblk fdisk创建新分区 fdisk /dev/sdb fdisk /dev/sdb Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you dec 阅读全文
posted @ 2021-12-06 19:34 博客园197 阅读(80) 评论(0) 推荐(0) 编辑
自定义systemctl服务
摘要:vim /lib/systemd/system/xxx.service 自定义服务内容解释 [Unit]:服务的说明 Description:描述服务 After:描述服务类别 [Service]服务运行参数的设置 Type=forking是后台运行的形式 #注:ExecStartPre为启动前执行 阅读全文
posted @ 2021-07-31 10:42 博客园197 阅读(247) 评论(0) 推荐(0) 编辑
oppenOffice安装
摘要:1.下载tar.gz包。下载地址:http://www.openoffice.org/zh-cn/ (需要下载rpm格式的)2.通过xftp上传到linux中。我的目录在/opt/openoffice中3.解压文件:tar -zxvf Apache_OpenOffice_4.1.6_Linux_x8 阅读全文
posted @ 2020-11-12 15:28 博客园197 阅读(474) 评论(0) 推荐(1) 编辑
本地yum源
摘要:1、本地yum源 1、将自己操作系统对应的系统ISO文件上传 目标服务器比如 /data/software下,以CentOS-7.4-x86_64-DVD-1708.iso为例。 2、挂载至 /mnt下。 mount -o loop /data/software/CentOS-7.4-x86_64- 阅读全文
posted @ 2020-11-12 11:55 博客园197 阅读(219) 评论(0) 推荐(0) 编辑
jar启动脚本
摘要:#!/bin/bash cd `dirname $0` CUR_SHELL_DIR=`pwd` CUR_SHELL_NAME=`basename ${BASH_SOURCE}` JAR_NAME="zjk_rst.jar" JAR_PATH=$CUR_SHELL_DIR/$JAR_NAME #JAV 阅读全文
posted @ 2020-11-11 18:08 博客园197 阅读(162) 评论(0) 推荐(0) 编辑
top命令使用
摘要:top命令用法 top命令经常用来监控linux的系统状况,是常用的性能分析工具,能够实时显示系统中各个进程的资源占用情况。 top的使用方式 top [-d number] | top [-bnp] 参数解释: -d:number代表秒数,表示top命令显示的页面更新一次的间隔。默认是5秒。 -b 阅读全文
posted @ 2020-11-05 09:51 博客园197 阅读(210) 评论(0) 推荐(0) 编辑
linux 测试麦克风
摘要:如何查看音频设备 如果你的系统有 /proc/asound/cards 路径,说明 ALSA 驱动已经使用上,可查看 sound devices: cat /proc/asound/cards 0 [Intel ]: HDA-Intel - HDA Intel HDA Intel at 0xf252 阅读全文
posted @ 2020-02-05 10:28 博客园197 阅读(3380) 评论(0) 推荐(0) 编辑
解决linux写入ntfs盘时报错:只读文件系统
摘要:只读文件系统 阅读全文
posted @ 2020-02-01 15:34 博客园197 阅读(764) 评论(0) 推荐(0) 编辑
chmod 详解
摘要:chmod 详解 阅读全文
posted @ 2019-12-30 22:10 博客园197 阅读(342) 评论(0) 推荐(0) 编辑
debian 创建快捷方式
摘要:debian 创建快捷方式 阅读全文
posted @ 2019-12-30 21:36 博客园197 阅读(926) 评论(0) 推荐(0) 编辑
GEN configure /bin/sh: 1: autoconf: not found
摘要:GEN configure /bin/sh: 1: autoconf: not found 阅读全文
posted @ 2019-12-29 23:12 博客园197 阅读(1740) 评论(0) 推荐(0) 编辑
linux 常用命令
摘要:linux常用命令 阅读全文
posted @ 2019-04-14 11:25 博客园197 阅读(152) 评论(0) 推荐(0) 编辑
centos 7 jdk安装
摘要:centos 7 jdk安装 阅读全文
posted @ 2019-01-15 11:57 博客园197 阅读(137) 评论(0) 推荐(0) 编辑

1 2 下一页
点击右上角即可分享
微信分享提示