fedora

Linux pidstat 命令详解

Deadly 提交于 2020-03-24 14:36:28
3 月,跳不动了?>>> 原文出处 : http://www.yund.tech/zdetail.html?type=1&id=79a1236dcaef6ab9fda051ab4a65e4ab 作者 :jstarseven pidstat 概述 pidstat是sysstat工具的一个命令,用于监控全部或指定进程的cpu、内存、线程、设备IO等系统资源的占用情况。pidstat首次运行时显示自系统启动开始的各项统计信息,之后运行pidstat将显示自上次运行该命令以后的统计信息。用户可以通过指定统计的次数和时间来获得所需的统计信息。 pidstat 安装 pidstat 是sysstat软件套件的一部分,sysstat包含很多监控linux系统状态的工具,它能够从大多数linux发行版的软件源中获得。 在Debian/Ubuntu系统中可以使用下面的命令来安装: apt-get install sysstat CentOS/Fedora/RHEL版本的linux中则使用下面的命令: yum install sysstat pidstat 示例 pidstat 的用法: pidstat [ 选项 ] [ <时间间隔> ] [ <次数> ] 如下图: 常用的参数: -u:默认的参数,显示各个进程的cpu使用统计 -r:显示各个进程的内存使用统计 -d:显示各个进程的IO使用情况 -p

fedora 31

和自甴很熟 提交于 2020-03-24 00:32:30
3 月,跳不动了?>>> 最近Steam上Civ6的资料片《风起云涌》打折,没忍住85人民币入手了。安装了新的DLC后,游戏开始界面都进不去了。 下面的方法无效,游戏启动后有声音,但画面黑屏。 LD_PRELOAD=$LD_PRELOAD:/usr/lib64/libgamemodeauto.so.0:/usr/lib64/libfreetype.so.6 %command% 下面是摸索出来的一个可行方法: 删除~/.local/share/aspyr-media 删除~/.local/share/Aspyr Media 启动游戏后,不要把特效降到最低,或者不要修改默认配置。 基本可以玩,但是我最长玩到45回合,有时画面一开始就撕裂。 估计这是AMD GPU的驱动问题。我的内核已经升级到5.5.10了,不清楚如何优化GPU的配置。 游戏的配置文件放在上面删除的文件夹中,第一个文件夹是 选了中文语言后新创建的。 如果想转储游戏程序的输出,可以参考下面步骤: # 进入游戏目录 cd "~/.local/share/Steam/steamapps/common/Sid Meier's Civilization VI" # 替换启动脚本内容,跳过GameGuide sed -i 's/.\/GameGuide\/Civ6/.\/Civ6Sub/g' ./Civ6.sh # 创建steam

如何使用 bind 设置 DNS 服务器

旧巷老猫 提交于 2020-03-23 20:25:55
3 月,跳不动了?>>> 域名系统Domain Name System,我们更通常称为 DNS 的系统,可以将域名翻译或转换为与该域关联的 IP 地址。DNS 是能够让你通过名称找到自己喜欢的网站而不是在浏览器中输入 IP 地址的原因。本指南将向你展示如何配置一个主 DNS 系统以及客户端。 以下是本文示例中使用的系统细节: dns01.fedora.local (192.168.1.160)- 主 DNS 服务器 client.fedora.local (192.168.1.136)- 客户端 DNS 服务器配置 使用 sudo 安装 bind 包: $ sudo dnf install bind bind-utils -y bind 包提供了 /etc/named.conf 配置文件,来供你配置 DNS 服务器。 编辑 /etc/named.conf 文件: sudo vi /etc/named.conf 查找以下行: listen-on port 53 { 127.0.0.1; }; 添加主 DNS 服务器的 IP 地址,如下所示: listen-on port 53 { 127.0.0.1; 192.168.1.160; }; 查找以下行: allow-query { localhost; }; 添加本地网络范围。该示例系统使用的 IP 地址在 192.168.1.X

fedora 31

二次信任 提交于 2020-03-23 01:57:45
3 月,跳不动了?>>> 最近折腾如何在fedore31上成功运行《文明6》。发现问题报告中有个系统故障: A new package version is available in which the problem has not yet occurred. Please update to the following version and delete the ABRT problem: kernel-5.5.8-200.fc31 接着使用dnf升级,发现阿里的镜像同步失败。想到现在以及可以认真上网了,改回了默认的repo。 开始下载软件包,九百多个包前面都很痛快。最后卡在code,就是那个VS code,耗了五六分钟。 接着安装又出现一个段错误,无视,重新执行sudo dnf upgrade,开始安装,中途出现一个错误: error: lsetfilecon: (/boot/efi/EFI/fedora, system_u:object_r:boot_t:s0) Operation not supported 直接重启电脑,发现停在笔记本LOGO画面,不能进入登录界面。 重启切换内核,发现没有出现新安装的内核。应该是没有更新grub2,需要手动更新。 选择旧的内核进入系统,手动更新grub2: # 查看已安装的内核 ydx@ydx-mf:~ $ rpm -qa

程序员喜爱的七款热门Linux系统介绍(附下载地址)

谁说我不能喝 提交于 2020-03-21 11:58:14
3 月,跳不动了?>>> Linux 提供的不仅仅是桌面操作系统。您可以看到为许多用途(包括编程)配置的不同版本。Linux对于程序员和开发人员来说非常熟悉。他们根据工作环境自定义使用Linux。因为Linux发行版(发行版)是开源的,为程序员和开发人员提供了稳定的环境、可定制的特性和可持续发展的环境。 在本文中,我们将讨论用于编程和开发的最佳Linux发行版。如果有人想开始学习新技术,Linux是最好的选择。因为Linux是免费和开源的,所以您不必花费大量的金钱来购买编程和操作系统。 通过Linux,您将能够进行更改并自定义您的系统,使其与您的编程需求相兼容。此外,Linux保持了与几乎任何编程语言的兼容性。除此之外,市场上对Linux专业知识的需求也很大。如果你想成为一名Linux专家,你可以学习各种 Linux课程 ,我相信这对你找新工作有帮助。 通过Linux,您将能够进行更改并自定义您的系统,使其与您的编程需求相兼容。此外,Linux保持了与几乎任何编程语言的兼容性。除此之外,市场上对Linux专业知识的需求也很大。如果你想成为一名Linux专家,你可以学习各种 Linux课程 ,我相信这对你找新工作有帮助。 前面已经说过Linux对于编程而言是最合适不过的环境了,现在让我们告诉您一些最佳的Linux发行版。这将有助于您从大量的Linux发行版中选择合适的发行版。

如何使用 bind 设置 DNS 服务器

爷,独闯天下 提交于 2020-03-20 22:18:02
3 月,跳不动了?>>> 域名系统Domain Name System,我们更通常称为 DNS 的系统,可以将域名翻译或转换为与该域关联的 IP 地址。DNS 是能够让你通过名称找到自己喜欢的网站而不是在浏览器中输入 IP 地址的原因。本指南将向你展示如何配置一个主 DNS 系统以及客户端。 以下是本文示例中使用的系统细节: dns01.fedora.local (192.168.1.160)- 主 DNS 服务器 client.fedora.local (192.168.1.136)- 客户端 DNS 服务器配置 使用 sudo 安装 bind 包: $ sudo dnf install bind bind-utils -y bind 包提供了 /etc/named.conf 配置文件,来供你配置 DNS 服务器。 编辑 /etc/named.conf 文件: sudo vi /etc/named.conf 查找以下行: listen-on port 53 { 127.0.0.1; }; 添加主 DNS 服务器的 IP 地址,如下所示: listen-on port 53 { 127.0.0.1; 192.168.1.160; }; 查找以下行: allow-query { localhost; }; 添加本地网络范围。该示例系统使用的 IP 地址在 192.168.1.X

Linux - change the hostname in the CLI

偶尔善良 提交于 2020-03-18 11:32:51
问题 I don't know how to search for this and that is why I asked for it (all my searches did not reveal any relevant information). I have a Fedora 18 server that looks like this: [root@dhcp-192-168-5-100 ~]# I want to change that to: [root@server1 ~]# Currently, this machine is set to get IP through DHCP, but that is not the IP address of the machine and that is why I need to change the CLI to something more relevant. Thank you 回答1: you can type "hostname HOSTNAME" where HOSTNAME is the new name

Linux - change the hostname in the CLI

夙愿已清 提交于 2020-03-18 11:32:05
问题 I don't know how to search for this and that is why I asked for it (all my searches did not reveal any relevant information). I have a Fedora 18 server that looks like this: [root@dhcp-192-168-5-100 ~]# I want to change that to: [root@server1 ~]# Currently, this machine is set to get IP through DHCP, but that is not the IP address of the machine and that is why I need to change the CLI to something more relevant. Thank you 回答1: you can type "hostname HOSTNAME" where HOSTNAME is the new name

在fedora下面安装ftp服务器

此生再无相见时 提交于 2020-03-18 07:02:58
Fedora版本:Fedora 12 1. 安装vsftp [java] view plain copy #yum install vsftpd 一路yes,最后提示安装成功。 2. 配置vsftpd.conf。 [java] view plain copy #vi /etc/vsftpd/vsftpd.conf 将vsftpd.conf文件中的主要设置如下: [java] view plain copy anonymous_enable=YES #允许匿名访问 local_enable=YES #允许本地用户访问(/etc/passwd中的用户) write_enable=YES #允许写入权限,包括修改,删除 anon_upload_enable=YES #允许匿名用户上传 anon_mkdir_write_enable=YES #允许匿名用户建立目录 ascii_upload_enable=YES #允许ascii上传 ascii_download_enable=YES #允许ascii下载 3. 启动vsftp [java] view plain copy #service vsftpd start 4. 让vsftpd自启动 [java] view plain copy #chkconfig --level 2345 vsftpd on #chkconfig --list

Extract tar the tar.bz2 file error

情到浓时终转凉″ 提交于 2020-03-17 09:50:20
问题 I tried to extract the tar.bz2 file in Fedora 17 OS. I used the command: # tar -xvjf myfile.tar.bz2 I received this error message: tar (child):bzip2: Cannot exec :Nosuch of file or directory tar (child): Error is not recoverable: exitng now tar: Child returned status 2 tar:Error is not recoverable: exitng now How can I resolve this? 回答1: For bz2 you need to execute like this, tar -jxvf Alternatively, you can also execute like this bunzip2 myfile.tar.bz2 For more information you should check