首页
留言
友链
关于
Search
1
思源笔记docker私有化部署及使用体验分享
2,421 阅读
2
windows11 远程提示:为安全考虑,已锁定该用户帐户,原因是登录尝试或密码更改尝试过多。
1,110 阅读
3
Pointer-Focus:一款功能强大的教学、录屏辅助软件
615 阅读
4
解决 nginxProxyManager 申请证书时的SSL失败问题
610 阅读
5
使用cspell对项目做拼写规范检查
581 阅读
Web前端
CSS
JavaScript
交互
Vue
小程序
后端
运维
项目
生活
其他
转载
软件
职场
登录
Search
标签搜索
docker
DevOps
magic-boot
Linux
酷壳
RabbitMQ
gitlab
Node
git
工具
MybatisPlus
clickhouse
Syncthing
规范
前端
产品
nginx
markdown
axios
H5
朱治龙
累计撰写
139
篇文章
累计收到
7
条评论
首页
栏目
Web前端
CSS
JavaScript
交互
Vue
小程序
后端
运维
项目
生活
其他
转载
软件
职场
页面
留言
友链
关于
搜索到
5
篇与
Linux
的结果
2020-12-14
CentOS中JDK及Tomcat安装记录
本文仅作为日常工作中的部署记录,相关操作仅供参考一、安装JDK及配置安装JDK文件拷贝到/data/webapps/目录cp jdk-8u271-linux-x64.tar.gz /usr/local/jdk/进入目录cd /usr/local/jdk/解压到当前目录tar -zxvf jdk-8u271-linux-x64.tar.gz配置环境变量编辑/etc/profile文件sudo vi /etc/profile在文件底部追加如下环境变量设置信息JAVA_HOME=/usr/local/jdk/jdk1.8.0_271 PATH=$JAVA_HOME/bin:$PATH CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export JAVA_HOME export PATH export CLASSPATH执行如下命令更新环境变量source /etc/profile验证是否生效[root@VM-0-17-centos jdk1.8.0_271]# java -version java version "1.8.0_271" Java(TM) SE Runtime Environment (build 1.8.0_271-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode) [root@VM-0-17-centos jdk1.8.0_271]# 二、部署Tomcat创建Tomcat安装目录mkdir -p /wxdata/javaapps/拷贝文件到安装目录cp apache-tomcat-8.5.46.tar.gz /wxdata/javaapps/进入安装目录cd /wxdata/javaapps/解压安装文件tar -zxvf apache-tomcat-8.5.59.tar.gz 修改目录名为tomcat8-pmsdemomv apache-tomcat-8.5.59 tomcat8-pmsdemo
2020年12月14日
74 阅读
0 评论
0 点赞
2020-12-14
用户管理:新建用户并添加到sudoers
添加用户并重置密码[root@VM-0-17-centos software]# useradd microxiang [root@VM-0-17-centos software]# passwd microxiang Changing password for user microxiang. New password: Retype new password: passwd: all authentication tokens updated successfully.添加用户到sudoers修改/etc/sudoers文件权限进入超级用户,因为没有写权限,所以要先把写权限加上chmod u+w /etc/sudoers编辑/etc/sudoers文件vim /etc/sudoers找到这一 行:"root ALL=(ALL) ALL"在起下面添加"microxiang ALL=(ALL) ALL"(microxiang是用户名),然后保存。## Allow root to run any commands anywhere root ALL=(ALL) ALL microxiang ALL=(ALL) ALL 注:如果不想每次都输入密码,可以修改后不需要每次都输入密码了。microxiang ALL=(ALL) NOPASSWD: ALL最后恢复没有写权限模式撤销文件的写权限chmod u-w /etc/sudoers完整操作过程如下:[root@VM-0-17-centos software]# useradd microxiang [root@VM-0-17-centos software]# passwd microxiang Changing password for user microxiang. New password: Retype new password: passwd: all authentication tokens updated successfully. [root@VM-0-17-centos software]# chmod u+w /etc/sudoers [root@VM-0-17-centos software]# vim /etc/sudoers [root@VM-0-17-centos software]# chmod u-w /etc/sudoers [root@VM-0-17-centos software]#
2020年12月14日
83 阅读
0 评论
0 点赞
2020-12-14
部署Web服务器(Tengine)并配置开机自启动
Tengine是由淘宝网发起的Web服务器项目。它在Nginx的基础上,针对大访问量网站的需求,添加了很多高级功能和特性。Tengine的性能和稳定性已经在大型的网站如淘宝网,天猫商城等得到了很好的检验。它的最终目标是打造一个高效、稳定、安全、易用的Web平台。一、安装创建安装目录mkdir -p /usr/local/nginx安装依赖sudo yum -y install zlib-devel pcre-devel openssl-devel从官网下载最新版本的Tenginewget http://tengine.taobao.org/download/tengine-2.3.2.tar.gz解压tar -zxvf tengine-2.3.2.tar.gz进入目录cd tengine-2.3.2安装初始化./configure --prefix=/usr/local/nginx --add-module=modules/ngx_http_upstream_check_module --add-module=modules/ngx_http_upstream_session_sticky_module编译、安装make && make install配置自启动增加自启动配置文件:sudo vi /lib/systemd/system/nginx.service输入如下内容并保存:[Unit] Description=The nginx HTTP and reverse proxy server After=syslog.target network.target remote-fs.target nss-lookup.target [Service] Type=forking PIDFile=/usr/local/nginx/logs/nginx.pid ExecStartPre=/usr/local/nginx/sbin/nginx -t ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s QUIT $MAINPID PrivateTmp=true [Install] WantedBy=multi-user.target②.3 设为可执行sudo chmod 755 /lib/systemd/system/nginx.service②.4 设置开启自启动sudo systemctl enable nginx.service
2020年12月14日
309 阅读
0 评论
0 点赞
2020-12-08
安装宝塔面板
宝塔面板提供意见安装脚本,可以很方便的完成系统安装,但是其默认安装到/www目录下,我们可以通过创建软连接的方式将其安装到我们容量最大的盘符中,具体操作及记录如下:创建宝塔根目录:/wxdata/btroot为/www创建软连接 ln -s /wxdata/btroot /www执行宝塔安装程序:yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh安装记录:[root@VM-0-10-centos /]# yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh Loaded plugins: fastestmirror, langpacks Determining fastest mirrors epel | 4.7 kB 00:00:00 extras | 2.9 kB 00:00:00 os | 3.6 kB 00:00:00 updates | 2.9 kB 00:00:00 (1/3): epel/7/x86_64/updateinfo | 1.0 MB 00:00:00 (2/3): updates/7/x86_64/primary_db | 3.7 MB 00:00:00 (3/3): epel/7/x86_64/primary_db | 6.9 MB 00:00:00 Package wget-1.14-18.el7_6.1.x86_64 already installed and latest version Nothing to do --2020-12-08 13:15:16-- http://download.bt.cn/install/install_6.0.sh Resolving download.bt.cn (download.bt.cn)... 180.101.160.68, 240e:ff:9000:1100:0:3:0:36 Connecting to download.bt.cn (download.bt.cn)|180.101.160.68|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 25280 (25K) [application/octet-stream] Saving to: ‘install.sh’ 100%[==========================================================================================================================================================================================================================================================================================>] 25,280 --.-K/s in 0.04s 2020-12-08 13:15:17 (614 KB/s) - ‘install.sh’ saved [25280/25280] +---------------------------------------------------------------------- | Bt-WebPanel FOR CentOS/Ubuntu/Debian +---------------------------------------------------------------------- | Copyright © 2015-2099 BT-SOFT(http://www.bt.cn) All rights reserved. +---------------------------------------------------------------------- | The WebPanel URL will be http://SERVER_IP:8888 when installed. +---------------------------------------------------------------------- Do you want to install Bt-Panel to the /www directory now?(y/n): y --------------------------------------------- Selected download node... Download node: http://dg1.bt.cn --------------------------------------------- Synchronizing system time... Tue Dec 8 13:15:24 CST 2020 Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile epel | 4.7 kB 00:00:00 extras | 2.9 kB 00:00:00 os | 3.6 kB 00:00:00 updates | 2.9 kB 00:00:00 Package ntp-4.2.6p5-29.el7.centos.2.x86_64 already installed and latest version Nothing to do 8 Dec 13:15:24 ntpdate[15551]: the NTP socket is in use, exiting setenforce: SELinux is disabled Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Package wget-1.14-18.el7_6.1.x86_64 already installed and latest version Package 2:tar-1.26-35.el7.x86_64 already installed and latest version Package 1:make-3.82-24.el7.x86_64 already installed and latest version Package zip-3.0-11.el7.x86_64 already installed and latest version Package unzip-6.0-21.el7.x86_64 already installed and latest version Package 1:openssl-1.0.2k-19.el7.x86_64 already installed and latest version Package zlib-1.2.7-18.el7.x86_64 already installed and latest version Package libwebp-0.3.0-7.el7.x86_64 already installed and latest version Package lsof-4.87-6.el7.x86_64 already installed and latest version Package pcre-8.32-17.el7.x86_64 already installed and latest version No package vixie-cron available. Package crontabs-1.11-6.20121102git.el7.noarch already installed and latest version Resolving Dependencies --> Running transaction check ---> Package bzip2-devel.x86_64 0:1.0.6-13.el7 will be installed ---> Package c-ares.x86_64 0:1.10.0-3.el7 will be installed ---> Package freetype.x86_64 0:2.8-14.el7 will be updated ---> Package freetype.x86_64 0:2.8-14.el7_9.1 will be an update ---> Package freetype-devel.x86_64 0:2.8-14.el7_9.1 will be installed ---> Package gcc.x86_64 0:4.8.5-39.el7 will be updated ---> Package gcc.x86_64 0:4.8.5-44.el7 will be an update --> Processing Dependency: libgomp = 4.8.5-44.el7 for package: gcc-4.8.5-44.el7.x86_64 --> Processing Dependency: cpp = 4.8.5-44.el7 for package: gcc-4.8.5-44.el7.x86_64 --> Processing Dependency: libgcc >= 4.8.5-44.el7 for package: gcc-4.8.5-44.el7.x86_64 ---> Package gdbm-devel.x86_64 0:1.10-8.el7 will be installed ---> Package icu.x86_64 0:50.2-4.el7_7 will be installed --> Processing Dependency: libicu(x86-64) = 50.2-4.el7_7 for package: icu-50.2-4.el7_7.x86_64 --> Processing Dependency: libicuuc.so.50()(64bit) for package: icu-50.2-4.el7_7.x86_64 --> Processing Dependency: libicutu.so.50()(64bit) for package: icu-50.2-4.el7_7.x86_64 --> Processing Dependency: libicui18n.so.50()(64bit) for package: icu-50.2-4.el7_7.x86_64 --> Processing Dependency: libicudata.so.50()(64bit) for package: icu-50.2-4.el7_7.x86_64 ---> Package libcurl-devel.x86_64 0:7.29.0-59.el7_9.1 will be installed epel/7/x86_64/filelists_db | 12 MB 00:00:00 os/7/x86_64/filelists_db | 7.2 MB 00:00:00 updates/7/x86_64/filelists_db | 2.1 MB 00:00:00 --> Processing Dependency: libcurl = 7.29.0-59.el7_9.1 for package: libcurl-devel-7.29.0-59.el7_9.1.x86_64 ---> Package libdb4-devel.x86_64 0:4.8.30-13.el7 will be installed --> Processing Dependency: libdb4(x86-64) = 4.8.30-13.el7 for package: libdb4-devel-4.8.30-13.el7.x86_64 ---> Package libffi-devel.x86_64 0:3.0.13-19.el7 will be installed ---> Package libicu-devel.x86_64 0:50.2-4.el7_7 will be installed ---> Package libjpeg-turbo-devel.x86_64 0:1.2.90-8.el7 will be installed ---> Package libpcap-devel.x86_64 14:1.5.3-12.el7 will be installed ---> Package libpng-devel.x86_64 2:1.5.13-8.el7 will be installed --> Processing Dependency: libpng(x86-64) = 2:1.5.13-8.el7 for package: 2:libpng-devel-1.5.13-8.el7.x86_64 ---> Package libwebp-devel.x86_64 0:0.3.0-7.el7 will be installed ---> Package libxml2.x86_64 0:2.9.1-6.el7.4 will be updated --> Processing Dependency: libxml2 = 2.9.1-6.el7.4 for package: libxml2-python-2.9.1-6.el7.4.x86_64 ---> Package libxml2.x86_64 0:2.9.1-6.el7.5 will be an update ---> Package libxml2-devel.x86_64 0:2.9.1-6.el7.5 will be installed ---> Package libxslt.x86_64 0:1.1.28-6.el7 will be installed ---> Package libxslt-devel.x86_64 0:1.1.28-6.el7 will be installed --> Processing Dependency: libgcrypt-devel for package: libxslt-devel-1.1.28-6.el7.x86_64 ---> Package libxslt-python.x86_64 0:1.1.28-6.el7 will be installed ---> Package ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 will be installed ---> Package openssl-devel.x86_64 1:1.0.2k-19.el7 will be installed --> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.2k-19.el7.x86_64 ---> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed ---> Package readline-devel.x86_64 0:6.2-11.el7 will be installed ---> Package sqlite-devel.x86_64 0:3.7.17-8.el7_7.1 will be installed ---> Package tk-devel.x86_64 1:8.5.13-6.el7 will be installed --> Processing Dependency: tk = 1:8.5.13-6.el7 for package: 1:tk-devel-8.5.13-6.el7.x86_64 --> Processing Dependency: tcl-devel = 1:8.5.13 for package: 1:tk-devel-8.5.13-6.el7.x86_64 --> Processing Dependency: libXft-devel for package: 1:tk-devel-8.5.13-6.el7.x86_64 --> Processing Dependency: libX11-devel for package: 1:tk-devel-8.5.13-6.el7.x86_64 ---> Package xz-devel.x86_64 0:5.2.2-1.el7 will be installed ---> Package zlib-devel.x86_64 0:1.2.7-18.el7 will be installed --> Running transaction check ---> Package cpp.x86_64 0:4.8.5-39.el7 will be updated ---> Package cpp.x86_64 0:4.8.5-44.el7 will be an update ---> Package krb5-devel.x86_64 0:1.15.1-50.el7 will be installed --> Processing Dependency: libkadm5(x86-64) = 1.15.1-50.el7 for package: krb5-devel-1.15.1-50.el7.x86_64 --> Processing Dependency: krb5-libs(x86-64) = 1.15.1-50.el7 for package: krb5-devel-1.15.1-50.el7.x86_64 --> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-50.el7.x86_64 --> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-50.el7.x86_64 --> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-50.el7.x86_64 --> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-50.el7.x86_64 ---> Package libX11-devel.x86_64 0:1.6.7-3.el7_9 will be installed --> Processing Dependency: libX11 = 1.6.7-3.el7_9 for package: libX11-devel-1.6.7-3.el7_9.x86_64 --> Processing Dependency: pkgconfig(xcb) >= 1.11.1 for package: libX11-devel-1.6.7-3.el7_9.x86_64 --> Processing Dependency: pkgconfig(xproto) for package: libX11-devel-1.6.7-3.el7_9.x86_64 --> Processing Dependency: pkgconfig(xcb) for package: libX11-devel-1.6.7-3.el7_9.x86_64 --> Processing Dependency: pkgconfig(kbproto) for package: libX11-devel-1.6.7-3.el7_9.x86_64 --> Processing Dependency: libX11.so.6()(64bit) for package: libX11-devel-1.6.7-3.el7_9.x86_64 --> Processing Dependency: libX11-xcb.so.1()(64bit) for package: libX11-devel-1.6.7-3.el7_9.x86_64 ---> Package libXft-devel.x86_64 0:2.3.2-2.el7 will be installed --> Processing Dependency: libXft = 2.3.2-2.el7 for package: libXft-devel-2.3.2-2.el7.x86_64 --> Processing Dependency: pkgconfig(xrender) for package: libXft-devel-2.3.2-2.el7.x86_64 --> Processing Dependency: pkgconfig(fontconfig) for package: libXft-devel-2.3.2-2.el7.x86_64 --> Processing Dependency: libXft.so.2()(64bit) for package: libXft-devel-2.3.2-2.el7.x86_64 ---> Package libcurl.x86_64 0:7.29.0-57.el7 will be updated --> Processing Dependency: libcurl = 7.29.0-57.el7 for package: curl-7.29.0-57.el7.x86_64 ---> Package libcurl.x86_64 0:7.29.0-59.el7_9.1 will be an update ---> Package libdb4.x86_64 0:4.8.30-13.el7 will be installed ---> Package libgcc.x86_64 0:4.8.5-39.el7 will be updated ---> Package libgcc.x86_64 0:4.8.5-44.el7 will be an update ---> Package libgcrypt-devel.x86_64 0:1.5.3-14.el7 will be installed --> Processing Dependency: libgpg-error-devel for package: libgcrypt-devel-1.5.3-14.el7.x86_64 ---> Package libgomp.x86_64 0:4.8.5-39.el7 will be updated ---> Package libgomp.x86_64 0:4.8.5-44.el7 will be an update ---> Package libicu.x86_64 0:50.2-4.el7_7 will be installed ---> Package libpng.x86_64 2:1.5.13-7.el7_2 will be updated ---> Package libpng.x86_64 2:1.5.13-8.el7 will be an update ---> Package libxml2-python.x86_64 0:2.9.1-6.el7.4 will be updated ---> Package libxml2-python.x86_64 0:2.9.1-6.el7.5 will be an update ---> Package tcl-devel.x86_64 1:8.5.13-8.el7 will be installed --> Processing Dependency: tcl = 1:8.5.13-8.el7 for package: 1:tcl-devel-8.5.13-8.el7.x86_64 ---> Package tk.x86_64 1:8.5.13-6.el7 will be installed --> Running transaction check ---> Package curl.x86_64 0:7.29.0-57.el7 will be updated ---> Package curl.x86_64 0:7.29.0-59.el7_9.1 will be an update ---> Package fontconfig-devel.x86_64 0:2.13.0-4.3.el7 will be installed --> Processing Dependency: fontconfig(x86-64) = 2.13.0-4.3.el7 for package: fontconfig-devel-2.13.0-4.3.el7.x86_64 --> Processing Dependency: pkgconfig(uuid) for package: fontconfig-devel-2.13.0-4.3.el7.x86_64 --> Processing Dependency: pkgconfig(expat) for package: fontconfig-devel-2.13.0-4.3.el7.x86_64 --> Processing Dependency: libfontconfig.so.1()(64bit) for package: fontconfig-devel-2.13.0-4.3.el7.x86_64 ---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed ---> Package krb5-libs.x86_64 0:1.15.1-46.el7 will be updated ---> Package krb5-libs.x86_64 0:1.15.1-50.el7 will be an update ---> Package libX11.x86_64 0:1.6.7-3.el7_9 will be installed --> Processing Dependency: libX11-common >= 1.6.7-3.el7_9 for package: libX11-1.6.7-3.el7_9.x86_64 --> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.7-3.el7_9.x86_64 ---> Package libXft.x86_64 0:2.3.2-2.el7 will be installed --> Processing Dependency: libXrender.so.1()(64bit) for package: libXft-2.3.2-2.el7.x86_64 ---> Package libXrender-devel.x86_64 0:0.9.10-1.el7 will be installed ---> Package libcom_err-devel.x86_64 0:1.42.9-19.el7 will be installed --> Processing Dependency: libcom_err(x86-64) = 1.42.9-19.el7 for package: libcom_err-devel-1.42.9-19.el7.x86_64 ---> Package libgpg-error-devel.x86_64 0:1.12-3.el7 will be installed ---> Package libkadm5.x86_64 0:1.15.1-50.el7 will be installed ---> Package libselinux-devel.x86_64 0:2.5-15.el7 will be installed --> Processing Dependency: libsepol-devel(x86-64) >= 2.5-10 for package: libselinux-devel-2.5-15.el7.x86_64 --> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-15.el7.x86_64 ---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed ---> Package libxcb-devel.x86_64 0:1.13-1.el7 will be installed --> Processing Dependency: pkgconfig(xau) >= 0.99.2 for package: libxcb-devel-1.13-1.el7.x86_64 ---> Package tcl.x86_64 1:8.5.13-8.el7 will be installed ---> Package xorg-x11-proto-devel.noarch 0:2018.4-1.el7 will be installed --> Running transaction check ---> Package expat-devel.x86_64 0:2.1.0-12.el7 will be installed --> Processing Dependency: expat = 2.1.0-12.el7 for package: expat-devel-2.1.0-12.el7.x86_64 ---> Package fontconfig.x86_64 0:2.13.0-4.3.el7 will be installed --> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.13.0-4.3.el7.x86_64 --> Processing Dependency: dejavu-sans-fonts for package: fontconfig-2.13.0-4.3.el7.x86_64 ---> Package libX11-common.noarch 0:1.6.7-3.el7_9 will be installed ---> Package libXau-devel.x86_64 0:1.0.8-2.1.el7 will be installed --> Processing Dependency: libXau = 1.0.8-2.1.el7 for package: libXau-devel-1.0.8-2.1.el7.x86_64 --> Processing Dependency: libXau.so.6()(64bit) for package: libXau-devel-1.0.8-2.1.el7.x86_64 ---> Package libXrender.x86_64 0:0.9.10-1.el7 will be installed ---> Package libcom_err.x86_64 0:1.42.9-17.el7 will be updated --> Processing Dependency: libcom_err(x86-64) = 1.42.9-17.el7 for package: e2fsprogs-libs-1.42.9-17.el7.x86_64 --> Processing Dependency: libcom_err(x86-64) = 1.42.9-17.el7 for package: e2fsprogs-1.42.9-17.el7.x86_64 --> Processing Dependency: libcom_err(x86-64) = 1.42.9-17.el7 for package: libss-1.42.9-17.el7.x86_64 ---> Package libcom_err.x86_64 0:1.42.9-19.el7 will be an update ---> Package libsepol-devel.x86_64 0:2.5-10.el7 will be installed ---> Package libuuid-devel.x86_64 0:2.23.2-65.el7 will be installed --> Processing Dependency: libuuid = 2.23.2-65.el7 for package: libuuid-devel-2.23.2-65.el7.x86_64 ---> Package libxcb.x86_64 0:1.13-1.el7 will be installed --> Running transaction check ---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed --> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch ---> Package e2fsprogs.x86_64 0:1.42.9-17.el7 will be updated ---> Package e2fsprogs.x86_64 0:1.42.9-19.el7 will be an update ---> Package e2fsprogs-libs.x86_64 0:1.42.9-17.el7 will be updated ---> Package e2fsprogs-libs.x86_64 0:1.42.9-19.el7 will be an update ---> Package expat.x86_64 0:2.1.0-11.el7 will be updated ---> Package expat.x86_64 0:2.1.0-12.el7 will be an update ---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed ---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed ---> Package libss.x86_64 0:1.42.9-17.el7 will be updated ---> Package libss.x86_64 0:1.42.9-19.el7 will be an update ---> Package libuuid.x86_64 0:2.23.2-63.el7 will be updated --> Processing Dependency: libuuid = 2.23.2-63.el7 for package: libblkid-2.23.2-63.el7.x86_64 --> Processing Dependency: libuuid = 2.23.2-63.el7 for package: util-linux-2.23.2-63.el7.x86_64 --> Processing Dependency: libuuid = 2.23.2-63.el7 for package: libmount-2.23.2-63.el7.x86_64 ---> Package libuuid.x86_64 0:2.23.2-65.el7 will be an update --> Running transaction check ---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed ---> Package libblkid.x86_64 0:2.23.2-63.el7 will be updated ---> Package libblkid.x86_64 0:2.23.2-65.el7 will be an update ---> Package libmount.x86_64 0:2.23.2-63.el7 will be updated ---> Package libmount.x86_64 0:2.23.2-65.el7 will be an update ---> Package util-linux.x86_64 0:2.23.2-63.el7 will be updated ---> Package util-linux.x86_64 0:2.23.2-65.el7 will be an update --> Processing Dependency: libsmartcols = 2.23.2-65.el7 for package: util-linux-2.23.2-65.el7.x86_64 --> Running transaction check ---> Package libsmartcols.x86_64 0:2.23.2-63.el7 will be updated ---> Package libsmartcols.x86_64 0:2.23.2-65.el7 will be an update --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================================================================================================================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================================================================================================================================================================================================================== Installing: bzip2-devel x86_64 1.0.6-13.el7 os 218 k c-ares x86_64 1.10.0-3.el7 os 78 k freetype-devel x86_64 2.8-14.el7_9.1 updates 447 k gdbm-devel x86_64 1.10-8.el7 os 47 k icu x86_64 50.2-4.el7_7 os 187 k libcurl-devel x86_64 7.29.0-59.el7_9.1 updates 303 k libdb4-devel x86_64 4.8.30-13.el7 epel 32 k libffi-devel x86_64 3.0.13-19.el7 os 23 k libicu-devel x86_64 50.2-4.el7_7 os 703 k libjpeg-turbo-devel x86_64 1.2.90-8.el7 os 99 k libpcap-devel x86_64 14:1.5.3-12.el7 os 118 k libpng-devel x86_64 2:1.5.13-8.el7 os 122 k libwebp-devel x86_64 0.3.0-7.el7 os 23 k libxml2-devel x86_64 2.9.1-6.el7.5 os 1.1 M libxslt x86_64 1.1.28-6.el7 os 242 k libxslt-devel x86_64 1.1.28-6.el7 os 309 k libxslt-python x86_64 1.1.28-6.el7 os 59 k ncurses-devel x86_64 5.9-14.20130511.el7_4 os 712 k openssl-devel x86_64 1:1.0.2k-19.el7 os 1.5 M pcre-devel x86_64 8.32-17.el7 os 480 k readline-devel x86_64 6.2-11.el7 os 139 k sqlite-devel x86_64 3.7.17-8.el7_7.1 os 104 k tk-devel x86_64 1:8.5.13-6.el7 os 488 k xz-devel x86_64 5.2.2-1.el7 os 46 k zlib-devel x86_64 1.2.7-18.el7 os 50 k Updating: freetype x86_64 2.8-14.el7_9.1 updates 380 k gcc x86_64 4.8.5-44.el7 os 16 M libxml2 x86_64 2.9.1-6.el7.5 os 668 k Installing for dependencies: dejavu-fonts-common noarch 2.33-6.el7 os 64 k dejavu-sans-fonts noarch 2.33-6.el7 os 1.4 M expat-devel x86_64 2.1.0-12.el7 os 57 k fontconfig x86_64 2.13.0-4.3.el7 os 254 k fontconfig-devel x86_64 2.13.0-4.3.el7 os 138 k fontpackages-filesystem noarch 1.44-8.el7 os 9.9 k keyutils-libs-devel x86_64 1.5.8-3.el7 os 37 k krb5-devel x86_64 1.15.1-50.el7 os 273 k libX11 x86_64 1.6.7-3.el7_9 updates 607 k libX11-common noarch 1.6.7-3.el7_9 updates 164 k libX11-devel x86_64 1.6.7-3.el7_9 updates 981 k libXau x86_64 1.0.8-2.1.el7 os 29 k libXau-devel x86_64 1.0.8-2.1.el7 os 14 k libXft x86_64 2.3.2-2.el7 os 58 k libXft-devel x86_64 2.3.2-2.el7 os 19 k libXrender x86_64 0.9.10-1.el7 os 26 k libXrender-devel x86_64 0.9.10-1.el7 os 17 k libcom_err-devel x86_64 1.42.9-19.el7 os 32 k libdb4 x86_64 4.8.30-13.el7 epel 607 k libgcrypt-devel x86_64 1.5.3-14.el7 os 129 k libgpg-error-devel x86_64 1.12-3.el7 os 16 k libicu x86_64 50.2-4.el7_7 os 6.9 M libkadm5 x86_64 1.15.1-50.el7 os 179 k libselinux-devel x86_64 2.5-15.el7 os 187 k libsepol-devel x86_64 2.5-10.el7 os 77 k libuuid-devel x86_64 2.23.2-65.el7 os 93 k libverto-devel x86_64 0.2.5-4.el7 os 12 k libxcb x86_64 1.13-1.el7 os 214 k libxcb-devel x86_64 1.13-1.el7 os 1.1 M tcl x86_64 1:8.5.13-8.el7 os 1.9 M tcl-devel x86_64 1:8.5.13-8.el7 os 165 k tk x86_64 1:8.5.13-6.el7 os 1.4 M xorg-x11-proto-devel noarch 2018.4-1.el7 os 280 k Updating for dependencies: cpp x86_64 4.8.5-44.el7 os 5.9 M curl x86_64 7.29.0-59.el7_9.1 updates 271 k e2fsprogs x86_64 1.42.9-19.el7 os 701 k e2fsprogs-libs x86_64 1.42.9-19.el7 os 168 k expat x86_64 2.1.0-12.el7 os 81 k krb5-libs x86_64 1.15.1-50.el7 os 809 k libblkid x86_64 2.23.2-65.el7 os 183 k libcom_err x86_64 1.42.9-19.el7 os 42 k libcurl x86_64 7.29.0-59.el7_9.1 updates 223 k libgcc x86_64 4.8.5-44.el7 os 103 k libgomp x86_64 4.8.5-44.el7 os 159 k libmount x86_64 2.23.2-65.el7 os 184 k libpng x86_64 2:1.5.13-8.el7 os 213 k libsmartcols x86_64 2.23.2-65.el7 os 142 k libss x86_64 1.42.9-19.el7 os 47 k libuuid x86_64 2.23.2-65.el7 os 84 k libxml2-python x86_64 2.9.1-6.el7.5 os 247 k util-linux x86_64 2.23.2-65.el7 os 2.0 M Transaction Summary ==================================================================================================================================================================================================================================================================================================================================== Install 25 Packages (+33 Dependent packages) Upgrade 3 Packages (+18 Dependent packages) Total download size: 53 M Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/79): c-ares-1.10.0-3.el7.x86_64.rpm | 78 kB 00:00:00 (2/79): bzip2-devel-1.0.6-13.el7.x86_64.rpm | 218 kB 00:00:00 (3/79): dejavu-fonts-common-2.33-6.el7.noarch.rpm | 64 kB 00:00:00 (4/79): dejavu-sans-fonts-2.33-6.el7.noarch.rpm | 1.4 MB 00:00:00 (5/79): curl-7.29.0-59.el7_9.1.x86_64.rpm | 271 kB 00:00:00 (6/79): e2fsprogs-1.42.9-19.el7.x86_64.rpm | 701 kB 00:00:00 (7/79): e2fsprogs-libs-1.42.9-19.el7.x86_64.rpm | 168 kB 00:00:00 (8/79): expat-2.1.0-12.el7.x86_64.rpm | 81 kB 00:00:00 (9/79): expat-devel-2.1.0-12.el7.x86_64.rpm | 57 kB 00:00:00 (10/79): fontconfig-2.13.0-4.3.el7.x86_64.rpm | 254 kB 00:00:00 (11/79): fontconfig-devel-2.13.0-4.3.el7.x86_64.rpm | 138 kB 00:00:00 (12/79): fontpackages-filesystem-1.44-8.el7.noarch.rpm | 9.9 kB 00:00:00 (13/79): freetype-2.8-14.el7_9.1.x86_64.rpm | 380 kB 00:00:00 (14/79): freetype-devel-2.8-14.el7_9.1.x86_64.rpm | 447 kB 00:00:00 (15/79): gcc-4.8.5-44.el7.x86_64.rpm | 16 MB 00:00:00 (16/79): gdbm-devel-1.10-8.el7.x86_64.rpm | 47 kB 00:00:00 (17/79): icu-50.2-4.el7_7.x86_64.rpm | 187 kB 00:00:00 (18/79): keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm | 37 kB 00:00:00 (19/79): krb5-devel-1.15.1-50.el7.x86_64.rpm | 273 kB 00:00:00 (20/79): cpp-4.8.5-44.el7.x86_64.rpm | 5.9 MB 00:00:00 (21/79): krb5-libs-1.15.1-50.el7.x86_64.rpm | 809 kB 00:00:00 (22/79): libX11-common-1.6.7-3.el7_9.noarch.rpm | 164 kB 00:00:00 (23/79): libX11-1.6.7-3.el7_9.x86_64.rpm | 607 kB 00:00:00 (24/79): libX11-devel-1.6.7-3.el7_9.x86_64.rpm | 981 kB 00:00:00 (25/79): libXau-1.0.8-2.1.el7.x86_64.rpm | 29 kB 00:00:00 (26/79): libXau-devel-1.0.8-2.1.el7.x86_64.rpm | 14 kB 00:00:00 (27/79): libXft-2.3.2-2.el7.x86_64.rpm | 58 kB 00:00:00 (28/79): libXft-devel-2.3.2-2.el7.x86_64.rpm | 19 kB 00:00:00 (29/79): libXrender-0.9.10-1.el7.x86_64.rpm | 26 kB 00:00:00 (30/79): libXrender-devel-0.9.10-1.el7.x86_64.rpm | 17 kB 00:00:00 (31/79): libcom_err-1.42.9-19.el7.x86_64.rpm | 42 kB 00:00:00 (32/79): libblkid-2.23.2-65.el7.x86_64.rpm | 183 kB 00:00:00 (33/79): libcom_err-devel-1.42.9-19.el7.x86_64.rpm | 32 kB 00:00:00 (34/79): libdb4-devel-4.8.30-13.el7.x86_64.rpm | 32 kB 00:00:00 (35/79): libgcc-4.8.5-44.el7.x86_64.rpm | 103 kB 00:00:00 (36/79): libcurl-7.29.0-59.el7_9.1.x86_64.rpm | 223 kB 00:00:00 (37/79): libffi-devel-3.0.13-19.el7.x86_64.rpm | 23 kB 00:00:00 (38/79): libgcrypt-devel-1.5.3-14.el7.x86_64.rpm | 129 kB 00:00:00 (39/79): libcurl-devel-7.29.0-59.el7_9.1.x86_64.rpm | 303 kB 00:00:00 (40/79): libgpg-error-devel-1.12-3.el7.x86_64.rpm | 16 kB 00:00:00 (41/79): libgomp-4.8.5-44.el7.x86_64.rpm | 159 kB 00:00:00 (42/79): libdb4-4.8.30-13.el7.x86_64.rpm | 607 kB 00:00:00 (43/79): libicu-devel-50.2-4.el7_7.x86_64.rpm | 703 kB 00:00:00 (44/79): libjpeg-turbo-devel-1.2.90-8.el7.x86_64.rpm | 99 kB 00:00:00 (45/79): libkadm5-1.15.1-50.el7.x86_64.rpm | 179 kB 00:00:00 (46/79): libmount-2.23.2-65.el7.x86_64.rpm | 184 kB 00:00:00 (47/79): libpcap-devel-1.5.3-12.el7.x86_64.rpm | 118 kB 00:00:00 (48/79): libpng-1.5.13-8.el7.x86_64.rpm | 213 kB 00:00:00 (49/79): libpng-devel-1.5.13-8.el7.x86_64.rpm | 122 kB 00:00:00 (50/79): libselinux-devel-2.5-15.el7.x86_64.rpm | 187 kB 00:00:00 (51/79): libicu-50.2-4.el7_7.x86_64.rpm | 6.9 MB 00:00:00 (52/79): libsmartcols-2.23.2-65.el7.x86_64.rpm | 142 kB 00:00:00 (53/79): libss-1.42.9-19.el7.x86_64.rpm | 47 kB 00:00:00 (54/79): libuuid-2.23.2-65.el7.x86_64.rpm | 84 kB 00:00:00 (55/79): libuuid-devel-2.23.2-65.el7.x86_64.rpm | 93 kB 00:00:00 (56/79): libverto-devel-0.2.5-4.el7.x86_64.rpm | 12 kB 00:00:00 (57/79): libwebp-devel-0.3.0-7.el7.x86_64.rpm | 23 kB 00:00:00 (58/79): libxcb-1.13-1.el7.x86_64.rpm | 214 kB 00:00:00 (59/79): libsepol-devel-2.5-10.el7.x86_64.rpm | 77 kB 00:00:00 (60/79): libxcb-devel-1.13-1.el7.x86_64.rpm | 1.1 MB 00:00:00 (61/79): libxml2-2.9.1-6.el7.5.x86_64.rpm | 668 kB 00:00:00 (62/79): libxml2-python-2.9.1-6.el7.5.x86_64.rpm | 247 kB 00:00:00 (63/79): libxslt-1.1.28-6.el7.x86_64.rpm | 242 kB 00:00:00 (64/79): libxslt-devel-1.1.28-6.el7.x86_64.rpm | 309 kB 00:00:00 (65/79): libxml2-devel-2.9.1-6.el7.5.x86_64.rpm | 1.1 MB 00:00:00 (66/79): libxslt-python-1.1.28-6.el7.x86_64.rpm | 59 kB 00:00:00 (67/79): ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm | 712 kB 00:00:00 (68/79): openssl-devel-1.0.2k-19.el7.x86_64.rpm | 1.5 MB 00:00:00 (69/79): readline-devel-6.2-11.el7.x86_64.rpm | 139 kB 00:00:00 (70/79): pcre-devel-8.32-17.el7.x86_64.rpm | 480 kB 00:00:00 (71/79): sqlite-devel-3.7.17-8.el7_7.1.x86_64.rpm | 104 kB 00:00:00 (72/79): tcl-devel-8.5.13-8.el7.x86_64.rpm | 165 kB 00:00:00 (73/79): tk-8.5.13-6.el7.x86_64.rpm | 1.4 MB 00:00:00 (74/79): tcl-8.5.13-8.el7.x86_64.rpm | 1.9 MB 00:00:00 (75/79): tk-devel-8.5.13-6.el7.x86_64.rpm | 488 kB 00:00:00 (76/79): xorg-x11-proto-devel-2018.4-1.el7.noarch.rpm | 280 kB 00:00:00 (77/79): xz-devel-5.2.2-1.el7.x86_64.rpm | 46 kB 00:00:00 (78/79): zlib-devel-1.2.7-18.el7.x86_64.rpm | 50 kB 00:00:00 (79/79): util-linux-2.23.2-65.el7.x86_64.rpm | 2.0 MB 00:00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Total 25 MB/s | 53 MB 00:00:02 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : libcom_err-1.42.9-19.el7.x86_64 1/100 Updating : libuuid-2.23.2-65.el7.x86_64 2/100 Updating : libxml2-2.9.1-6.el7.5.x86_64 3/100 Updating : libgcc-4.8.5-44.el7.x86_64 4/100 Installing : xorg-x11-proto-devel-2018.4-1.el7.noarch 5/100 Installing : zlib-devel-1.2.7-18.el7.x86_64 6/100 Updating : libblkid-2.23.2-65.el7.x86_64 7/100 Updating : krb5-libs-1.15.1-50.el7.x86_64 8/100 Updating : libcurl-7.29.0-59.el7_9.1.x86_64 9/100 Installing : libicu-50.2-4.el7_7.x86_64 10/100 Installing : libxslt-1.1.28-6.el7.x86_64 11/100 Updating : expat-2.1.0-12.el7.x86_64 12/100 Updating : 2:libpng-1.5.13-8.el7.x86_64 13/100 Updating : freetype-2.8-14.el7_9.1.x86_64 14/100 Installing : fontpackages-filesystem-1.44-8.el7.noarch 15/100 Installing : 1:tcl-8.5.13-8.el7.x86_64 16/100 Installing : libXau-1.0.8-2.1.el7.x86_64 17/100 Installing : libxcb-1.13-1.el7.x86_64 18/100 Installing : libXau-devel-1.0.8-2.1.el7.x86_64 19/100 Installing : libxcb-devel-1.13-1.el7.x86_64 20/100 Installing : 1:tcl-devel-8.5.13-8.el7.x86_64 21/100 Installing : dejavu-fonts-common-2.33-6.el7.noarch 22/100 Installing : dejavu-sans-fonts-2.33-6.el7.noarch 23/100 Installing : fontconfig-2.13.0-4.3.el7.x86_64 24/100 Installing : 2:libpng-devel-1.5.13-8.el7.x86_64 25/100 Installing : freetype-devel-2.8-14.el7_9.1.x86_64 26/100 Installing : expat-devel-2.1.0-12.el7.x86_64 27/100 Installing : libkadm5-1.15.1-50.el7.x86_64 28/100 Updating : libmount-2.23.2-65.el7.x86_64 29/100 Updating : libxml2-python-2.9.1-6.el7.5.x86_64 30/100 Installing : libuuid-devel-2.23.2-65.el7.x86_64 31/100 Installing : fontconfig-devel-2.13.0-4.3.el7.x86_64 32/100 Updating : e2fsprogs-libs-1.42.9-19.el7.x86_64 33/100 Updating : libss-1.42.9-19.el7.x86_64 34/100 Installing : libcom_err-devel-1.42.9-19.el7.x86_64 35/100 Updating : libsmartcols-2.23.2-65.el7.x86_64 36/100 Installing : libdb4-4.8.30-13.el7.x86_64 37/100 Installing : libX11-common-1.6.7-3.el7_9.noarch 38/100 Installing : libX11-1.6.7-3.el7_9.x86_64 39/100 Installing : libXrender-0.9.10-1.el7.x86_64 40/100 Installing : libXft-2.3.2-2.el7.x86_64 41/100 Installing : libX11-devel-1.6.7-3.el7_9.x86_64 42/100 Installing : libXrender-devel-0.9.10-1.el7.x86_64 43/100 Installing : libXft-devel-2.3.2-2.el7.x86_64 44/100 Installing : 1:tk-8.5.13-6.el7.x86_64 45/100 Installing : xz-devel-5.2.2-1.el7.x86_64 46/100 Installing : libxml2-devel-2.9.1-6.el7.5.x86_64 47/100 Installing : ncurses-devel-5.9-14.20130511.el7_4.x86_64 48/100 Installing : pcre-devel-8.32-17.el7.x86_64 49/100 Updating : libgomp-4.8.5-44.el7.x86_64 50/100 Installing : keyutils-libs-devel-1.5.8-3.el7.x86_64 51/100 Installing : libgpg-error-devel-1.12-3.el7.x86_64 52/100 Installing : libgcrypt-devel-1.5.3-14.el7.x86_64 53/100 Installing : libsepol-devel-2.5-10.el7.x86_64 54/100 Installing : libselinux-devel-2.5-15.el7.x86_64 55/100 Updating : cpp-4.8.5-44.el7.x86_64 56/100 Installing : libverto-devel-0.2.5-4.el7.x86_64 57/100 Installing : krb5-devel-1.15.1-50.el7.x86_64 58/100 Installing : 1:openssl-devel-1.0.2k-19.el7.x86_64 59/100 Updating : gcc-4.8.5-44.el7.x86_64 60/100 Installing : libxslt-devel-1.1.28-6.el7.x86_64 61/100 Installing : readline-devel-6.2-11.el7.x86_64 62/100 Installing : 1:tk-devel-8.5.13-6.el7.x86_64 63/100 Installing : libdb4-devel-4.8.30-13.el7.x86_64 64/100 Updating : util-linux-2.23.2-65.el7.x86_64 65/100 Updating : e2fsprogs-1.42.9-19.el7.x86_64 66/100 Installing : libxslt-python-1.1.28-6.el7.x86_64 67/100 Installing : libicu-devel-50.2-4.el7_7.x86_64 68/100 Installing : icu-50.2-4.el7_7.x86_64 69/100 Updating : curl-7.29.0-59.el7_9.1.x86_64 70/100 Installing : libcurl-devel-7.29.0-59.el7_9.1.x86_64 71/100 Installing : sqlite-devel-3.7.17-8.el7_7.1.x86_64 72/100 Installing : libjpeg-turbo-devel-1.2.90-8.el7.x86_64 73/100 Installing : libwebp-devel-0.3.0-7.el7.x86_64 74/100 Installing : gdbm-devel-1.10-8.el7.x86_64 75/100 Installing : c-ares-1.10.0-3.el7.x86_64 76/100 Installing : bzip2-devel-1.0.6-13.el7.x86_64 77/100 Installing : 14:libpcap-devel-1.5.3-12.el7.x86_64 78/100 Installing : libffi-devel-3.0.13-19.el7.x86_64 79/100 Cleanup : e2fsprogs-1.42.9-17.el7.x86_64 80/100 Cleanup : util-linux-2.23.2-63.el7.x86_64 81/100 Cleanup : gcc-4.8.5-39.el7.x86_64 82/100 Cleanup : libmount-2.23.2-63.el7.x86_64 83/100 Cleanup : libblkid-2.23.2-63.el7.x86_64 84/100 Cleanup : e2fsprogs-libs-1.42.9-17.el7.x86_64 85/100 Cleanup : libss-1.42.9-17.el7.x86_64 86/100 Cleanup : curl-7.29.0-57.el7.x86_64 87/100 Cleanup : libcurl-7.29.0-57.el7.x86_64 88/100 Cleanup : krb5-libs-1.15.1-46.el7.x86_64 89/100 Cleanup : freetype-2.8-14.el7.x86_64 90/100 Cleanup : libxml2-python-2.9.1-6.el7.4.x86_64 91/100 Cleanup : libxml2-2.9.1-6.el7.4.x86_64 92/100 Cleanup : 2:libpng-1.5.13-7.el7_2.x86_64 93/100 Cleanup : libcom_err-1.42.9-17.el7.x86_64 94/100 Cleanup : libuuid-2.23.2-63.el7.x86_64 95/100 Cleanup : cpp-4.8.5-39.el7.x86_64 96/100 Cleanup : libgcc-4.8.5-39.el7.x86_64 97/100 Cleanup : libgomp-4.8.5-39.el7.x86_64 98/100 Cleanup : libsmartcols-2.23.2-63.el7.x86_64 99/100 Cleanup : expat-2.1.0-11.el7.x86_64 100/100 Verifying : libXrender-0.9.10-1.el7.x86_64 1/100 Verifying : libffi-devel-3.0.13-19.el7.x86_64 2/100 Verifying : 14:libpcap-devel-1.5.3-12.el7.x86_64 3/100 Verifying : libkadm5-1.15.1-50.el7.x86_64 4/100 Verifying : bzip2-devel-1.0.6-13.el7.x86_64 5/100 Verifying : libverto-devel-0.2.5-4.el7.x86_64 6/100 Verifying : zlib-devel-1.2.7-18.el7.x86_64 7/100 Verifying : xorg-x11-proto-devel-2018.4-1.el7.noarch 8/100 Verifying : cpp-4.8.5-44.el7.x86_64 9/100 Verifying : c-ares-1.10.0-3.el7.x86_64 10/100 Verifying : 1:tk-8.5.13-6.el7.x86_64 11/100 Verifying : libXrender-devel-0.9.10-1.el7.x86_64 12/100 Verifying : libxml2-devel-2.9.1-6.el7.5.x86_64 13/100 Verifying : libX11-1.6.7-3.el7_9.x86_64 14/100 Verifying : dejavu-sans-fonts-2.33-6.el7.noarch 15/100 Verifying : libcurl-7.29.0-59.el7_9.1.x86_64 16/100 Verifying : libsepol-devel-2.5-10.el7.x86_64 17/100 Verifying : libxml2-python-2.9.1-6.el7.5.x86_64 18/100 Verifying : libblkid-2.23.2-65.el7.x86_64 19/100 Verifying : libXau-1.0.8-2.1.el7.x86_64 20/100 Verifying : libgpg-error-devel-1.12-3.el7.x86_64 21/100 Verifying : freetype-2.8-14.el7_9.1.x86_64 22/100 Verifying : libgcc-4.8.5-44.el7.x86_64 23/100 Verifying : libXau-devel-1.0.8-2.1.el7.x86_64 24/100 Verifying : 2:libpng-devel-1.5.13-8.el7.x86_64 25/100 Verifying : keyutils-libs-devel-1.5.8-3.el7.x86_64 26/100 Verifying : libicu-devel-50.2-4.el7_7.x86_64 27/100 Verifying : e2fsprogs-1.42.9-19.el7.x86_64 28/100 Verifying : libxslt-devel-1.1.28-6.el7.x86_64 29/100 Verifying : libicu-50.2-4.el7_7.x86_64 30/100 Verifying : e2fsprogs-libs-1.42.9-19.el7.x86_64 31/100 Verifying : curl-7.29.0-59.el7_9.1.x86_64 32/100 Verifying : krb5-libs-1.15.1-50.el7.x86_64 33/100 Verifying : libss-1.42.9-19.el7.x86_64 34/100 Verifying : libgomp-4.8.5-44.el7.x86_64 35/100 Verifying : libXft-devel-2.3.2-2.el7.x86_64 36/100 Verifying : 1:tcl-8.5.13-8.el7.x86_64 37/100 Verifying : libselinux-devel-2.5-15.el7.x86_64 38/100 Verifying : fontconfig-2.13.0-4.3.el7.x86_64 39/100 Verifying : pcre-devel-8.32-17.el7.x86_64 40/100 Verifying : libX11-devel-1.6.7-3.el7_9.x86_64 41/100 Verifying : libuuid-2.23.2-65.el7.x86_64 42/100 Verifying : gdbm-devel-1.10-8.el7.x86_64 43/100 Verifying : fontpackages-filesystem-1.44-8.el7.noarch 44/100 Verifying : libwebp-devel-0.3.0-7.el7.x86_64 45/100 Verifying : fontconfig-devel-2.13.0-4.3.el7.x86_64 46/100 Verifying : libdb4-devel-4.8.30-13.el7.x86_64 47/100 Verifying : libxml2-2.9.1-6.el7.5.x86_64 48/100 Verifying : ncurses-devel-5.9-14.20130511.el7_4.x86_64 49/100 Verifying : gcc-4.8.5-44.el7.x86_64 50/100 Verifying : 1:openssl-devel-1.0.2k-19.el7.x86_64 51/100 Verifying : 2:libpng-1.5.13-8.el7.x86_64 52/100 Verifying : libgcrypt-devel-1.5.3-14.el7.x86_64 53/100 Verifying : libcurl-devel-7.29.0-59.el7_9.1.x86_64 54/100 Verifying : xz-devel-5.2.2-1.el7.x86_64 55/100 Verifying : krb5-devel-1.15.1-50.el7.x86_64 56/100 Verifying : libcom_err-devel-1.42.9-19.el7.x86_64 57/100 Verifying : 1:tcl-devel-8.5.13-8.el7.x86_64 58/100 Verifying : expat-2.1.0-12.el7.x86_64 59/100 Verifying : libxslt-python-1.1.28-6.el7.x86_64 60/100 Verifying : libuuid-devel-2.23.2-65.el7.x86_64 61/100 Verifying : libjpeg-turbo-devel-1.2.90-8.el7.x86_64 62/100 Verifying : libcom_err-1.42.9-19.el7.x86_64 63/100 Verifying : dejavu-fonts-common-2.33-6.el7.noarch 64/100 Verifying : 1:tk-devel-8.5.13-6.el7.x86_64 65/100 Verifying : libxcb-1.13-1.el7.x86_64 66/100 Verifying : libXft-2.3.2-2.el7.x86_64 67/100 Verifying : libX11-common-1.6.7-3.el7_9.noarch 68/100 Verifying : icu-50.2-4.el7_7.x86_64 69/100 Verifying : freetype-devel-2.8-14.el7_9.1.x86_64 70/100 Verifying : readline-devel-6.2-11.el7.x86_64 71/100 Verifying : expat-devel-2.1.0-12.el7.x86_64 72/100 Verifying : libxcb-devel-1.13-1.el7.x86_64 73/100 Verifying : sqlite-devel-3.7.17-8.el7_7.1.x86_64 74/100 Verifying : libxslt-1.1.28-6.el7.x86_64 75/100 Verifying : libdb4-4.8.30-13.el7.x86_64 76/100 Verifying : libsmartcols-2.23.2-65.el7.x86_64 77/100 Verifying : util-linux-2.23.2-65.el7.x86_64 78/100 Verifying : libmount-2.23.2-65.el7.x86_64 79/100 Verifying : 2:libpng-1.5.13-7.el7_2.x86_64 80/100 Verifying : libxml2-python-2.9.1-6.el7.4.x86_64 81/100 Verifying : libmount-2.23.2-63.el7.x86_64 82/100 Verifying : util-linux-2.23.2-63.el7.x86_64 83/100 Verifying : libsmartcols-2.23.2-63.el7.x86_64 84/100 Verifying : freetype-2.8-14.el7.x86_64 85/100 Verifying : e2fsprogs-libs-1.42.9-17.el7.x86_64 86/100 Verifying : gcc-4.8.5-39.el7.x86_64 87/100 Verifying : libxml2-2.9.1-6.el7.4.x86_64 88/100 Verifying : cpp-4.8.5-39.el7.x86_64 89/100 Verifying : libcom_err-1.42.9-17.el7.x86_64 90/100 Verifying : libcurl-7.29.0-57.el7.x86_64 91/100 Verifying : e2fsprogs-1.42.9-17.el7.x86_64 92/100 Verifying : libgomp-4.8.5-39.el7.x86_64 93/100 Verifying : libblkid-2.23.2-63.el7.x86_64 94/100 Verifying : krb5-libs-1.15.1-46.el7.x86_64 95/100 Verifying : curl-7.29.0-57.el7.x86_64 96/100 Verifying : libgcc-4.8.5-39.el7.x86_64 97/100 Verifying : libuuid-2.23.2-63.el7.x86_64 98/100 Verifying : libss-1.42.9-17.el7.x86_64 99/100 Verifying : expat-2.1.0-11.el7.x86_64 100/100 Installed: bzip2-devel.x86_64 0:1.0.6-13.el7 c-ares.x86_64 0:1.10.0-3.el7 freetype-devel.x86_64 0:2.8-14.el7_9.1 gdbm-devel.x86_64 0:1.10-8.el7 icu.x86_64 0:50.2-4.el7_7 libcurl-devel.x86_64 0:7.29.0-59.el7_9.1 libdb4-devel.x86_64 0:4.8.30-13.el7 libffi-devel.x86_64 0:3.0.13-19.el7 libicu-devel.x86_64 0:50.2-4.el7_7 libjpeg-turbo-devel.x86_64 0:1.2.90-8.el7 libpcap-devel.x86_64 14:1.5.3-12.el7 libpng-devel.x86_64 2:1.5.13-8.el7 libwebp-devel.x86_64 0:0.3.0-7.el7 libxml2-devel.x86_64 0:2.9.1-6.el7.5 libxslt.x86_64 0:1.1.28-6.el7 libxslt-devel.x86_64 0:1.1.28-6.el7 libxslt-python.x86_64 0:1.1.28-6.el7 ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 openssl-devel.x86_64 1:1.0.2k-19.el7 pcre-devel.x86_64 0:8.32-17.el7 readline-devel.x86_64 0:6.2-11.el7 sqlite-devel.x86_64 0:3.7.17-8.el7_7.1 tk-devel.x86_64 1:8.5.13-6.el7 xz-devel.x86_64 0:5.2.2-1.el7 zlib-devel.x86_64 0:1.2.7-18.el7 Dependency Installed: dejavu-fonts-common.noarch 0:2.33-6.el7 dejavu-sans-fonts.noarch 0:2.33-6.el7 expat-devel.x86_64 0:2.1.0-12.el7 fontconfig.x86_64 0:2.13.0-4.3.el7 fontconfig-devel.x86_64 0:2.13.0-4.3.el7 fontpackages-filesystem.noarch 0:1.44-8.el7 keyutils-libs-devel.x86_64 0:1.5.8-3.el7 krb5-devel.x86_64 0:1.15.1-50.el7 libX11.x86_64 0:1.6.7-3.el7_9 libX11-common.noarch 0:1.6.7-3.el7_9 libX11-devel.x86_64 0:1.6.7-3.el7_9 libXau.x86_64 0:1.0.8-2.1.el7 libXau-devel.x86_64 0:1.0.8-2.1.el7 libXft.x86_64 0:2.3.2-2.el7 libXft-devel.x86_64 0:2.3.2-2.el7 libXrender.x86_64 0:0.9.10-1.el7 libXrender-devel.x86_64 0:0.9.10-1.el7 libcom_err-devel.x86_64 0:1.42.9-19.el7 libdb4.x86_64 0:4.8.30-13.el7 libgcrypt-devel.x86_64 0:1.5.3-14.el7 libgpg-error-devel.x86_64 0:1.12-3.el7 libicu.x86_64 0:50.2-4.el7_7 libkadm5.x86_64 0:1.15.1-50.el7 libselinux-devel.x86_64 0:2.5-15.el7 libsepol-devel.x86_64 0:2.5-10.el7 libuuid-devel.x86_64 0:2.23.2-65.el7 libverto-devel.x86_64 0:0.2.5-4.el7 libxcb.x86_64 0:1.13-1.el7 libxcb-devel.x86_64 0:1.13-1.el7 tcl.x86_64 1:8.5.13-8.el7 tcl-devel.x86_64 1:8.5.13-8.el7 tk.x86_64 1:8.5.13-6.el7 xorg-x11-proto-devel.noarch 0:2018.4-1.el7 Updated: freetype.x86_64 0:2.8-14.el7_9.1 gcc.x86_64 0:4.8.5-44.el7 libxml2.x86_64 0:2.9.1-6.el7.5 Dependency Updated: cpp.x86_64 0:4.8.5-44.el7 curl.x86_64 0:7.29.0-59.el7_9.1 e2fsprogs.x86_64 0:1.42.9-19.el7 e2fsprogs-libs.x86_64 0:1.42.9-19.el7 expat.x86_64 0:2.1.0-12.el7 krb5-libs.x86_64 0:1.15.1-50.el7 libblkid.x86_64 0:2.23.2-65.el7 libcom_err.x86_64 0:1.42.9-19.el7 libcurl.x86_64 0:7.29.0-59.el7_9.1 libgcc.x86_64 0:4.8.5-44.el7 libgomp.x86_64 0:4.8.5-44.el7 libmount.x86_64 0:2.23.2-65.el7 libpng.x86_64 2:1.5.13-8.el7 libsmartcols.x86_64 0:2.23.2-65.el7 libss.x86_64 0:1.42.9-19.el7 libuuid.x86_64 0:2.23.2-65.el7 libxml2-python.x86_64 0:2.9.1-6.el7.5 util-linux.x86_64 0:2.23.2-65.el7 Complete! Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Package libxslt-1.1.28-6.el7.x86_64 already installed and latest version Package libxslt-devel-1.1.28-6.el7.x86_64 already installed and latest version Package libxslt-python-1.1.28-6.el7.x86_64 already installed and latest version Nothing to do Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Package libjpeg-turbo-devel-1.2.90-8.el7.x86_64 already installed and latest version Nothing to do Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile No package vixie-cron available. Error: Nothing to do Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Package libdb4-devel-4.8.30-13.el7.x86_64 already installed and latest version Nothing to do Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check ---> Package epel-release.noarch 0:7-13 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================================================================================================================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================================================================================================================================================================================================================== Installing: epel-release noarch 7-13 epel 15 k Transaction Summary ==================================================================================================================================================================================================================================================================================================================================== Install 1 Package Total download size: 15 k Installed size: 25 k Downloading packages: epel-release-7-13.noarch.rpm | 15 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : epel-release-7-13.noarch 1/1 Verifying : epel-release-7-13.noarch 1/1 Installed: epel-release.noarch 0:7-13 Complete! https://mirrors.aliyun.com/pypi/simple OS: el - 7 --2020-12-08 13:16:06-- http://dg1.bt.cn/install/pyenv/pyenv-el7-x64.tar.gz Resolving dg1.bt.cn (dg1.bt.cn)... 183.235.223.101, 2001:19f0:4400:5138:5400:2ff:fe1f:10f2 Connecting to dg1.bt.cn (dg1.bt.cn)|183.235.223.101|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 69984787 (67M) [application/octet-stream] Saving to: ‘/www/pyenv.tar.gz’ 100%[==========================================================================================================================================================================================================================================================================================>] 69,984,787 1.08MB/s in 54s 2020-12-08 13:17:00 (1.23 MB/s) - ‘/www/pyenv.tar.gz’ saved [69984787/69984787] Install python env... --2020-12-08 13:17:02-- http://dg1.bt.cn/install/src/panel6.zip Resolving dg1.bt.cn (dg1.bt.cn)... 183.235.223.101, 2001:19f0:4400:5138:5400:2ff:fe1f:10f2 Connecting to dg1.bt.cn (dg1.bt.cn)|183.235.223.101|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 6776607 (6.5M) [application/zip] Saving to: ‘panel.zip’ 100%[==========================================================================================================================================================================================================================================================================================>] 6,776,607 1.21MB/s in 4.3s 2020-12-08 13:17:06 (1.49 MB/s) - ‘panel.zip’ saved [6776607/6776607] --2020-12-08 13:17:06-- http://dg1.bt.cn/install/src/bt6.init Resolving dg1.bt.cn (dg1.bt.cn)... 183.235.223.101, 2001:19f0:4400:5138:5400:2ff:fe1f:10f2 Connecting to dg1.bt.cn (dg1.bt.cn)|183.235.223.101|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 9873 (9.6K) [application/octet-stream] Saving to: ‘/etc/init.d/bt’ 100%[==========================================================================================================================================================================================================================================================================================>] 9,873 --.-K/s in 0.001s 2020-12-08 13:17:07 (8.60 MB/s) - ‘/etc/init.d/bt’ saved [9873/9873] --2020-12-08 13:17:07-- http://dg1.bt.cn/install/public.sh Resolving dg1.bt.cn (dg1.bt.cn)... 183.235.223.101, 2001:19f0:4400:5138:5400:2ff:fe1f:10f2 Connecting to dg1.bt.cn (dg1.bt.cn)|183.235.223.101|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 4634 (4.5K) [application/octet-stream] Saving to: ‘/www/server/panel/install/public.sh’ 100%[==========================================================================================================================================================================================================================================================================================>] 4,634 --.-K/s in 0.001s 2020-12-08 13:17:07 (4.42 MB/s) - ‘/www/server/panel/install/public.sh’ saved [4634/4634] --2020-12-08 13:17:07-- http://dg1.bt.cn/install/src/bt7.init Resolving dg1.bt.cn (dg1.bt.cn)... 183.235.223.101, 2001:19f0:4400:5138:5400:2ff:fe1f:10f2 Connecting to dg1.bt.cn (dg1.bt.cn)|183.235.223.101|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 10312 (10K) [application/octet-stream] Saving to: ‘/etc/init.d/bt’ 100%[==========================================================================================================================================================================================================================================================================================>] 10,312 --.-K/s in 0.001s 2020-12-08 13:17:07 (8.58 MB/s) - ‘/etc/init.d/bt’ saved [10312/10312] --2020-12-08 13:17:07-- http://dg1.bt.cn/install/src/bt7.init Resolving dg1.bt.cn (dg1.bt.cn)... 183.235.223.101, 2001:19f0:4400:5138:5400:2ff:fe1f:10f2 Connecting to dg1.bt.cn (dg1.bt.cn)|183.235.223.101|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 10312 (10K) [application/octet-stream] Saving to: ‘/www/server/panel/init.sh’ 100%[==========================================================================================================================================================================================================================================================================================>] 10,312 --.-K/s in 0s 2020-12-08 13:17:07 (29.0 MB/s) - ‘/www/server/panel/init.sh’ saved [10312/10312] Starting Bt-Panel.... done Starting Bt-Tasks... done username: g2lker52 Stopping Bt-Tasks... done Stopping Bt-Panel... done Starting Bt-Panel.... done Starting Bt-Tasks... done Loaded plugins: fastestmirror, langpacks Repository epel is listed more than once in the configuration Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check ---> Package firewalld.noarch 0:0.6.3-8.el7_8.1 will be updated ---> Package firewalld.noarch 0:0.6.3-12.el7 will be an update --> Processing Dependency: python-firewall = 0.6.3-12.el7 for package: firewalld-0.6.3-12.el7.noarch --> Processing Dependency: firewalld-filesystem = 0.6.3-12.el7 for package: firewalld-0.6.3-12.el7.noarch --> Running transaction check ---> Package firewalld-filesystem.noarch 0:0.6.3-8.el7_8.1 will be updated ---> Package firewalld-filesystem.noarch 0:0.6.3-12.el7 will be an update ---> Package python-firewall.noarch 0:0.6.3-8.el7_8.1 will be updated ---> Package python-firewall.noarch 0:0.6.3-12.el7 will be an update --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================================================================================================================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================================================================================================================================================================================================================== Updating: firewalld noarch 0.6.3-12.el7 updates 448 k Updating for dependencies: firewalld-filesystem noarch 0.6.3-12.el7 updates 51 k python-firewall noarch 0.6.3-12.el7 updates 355 k Transaction Summary ==================================================================================================================================================================================================================================================================================================================================== Upgrade 1 Package (+2 Dependent packages) Total download size: 854 k Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/3): firewalld-filesystem-0.6.3-12.el7.noarch.rpm | 51 kB 00:00:00 (2/3): python-firewall-0.6.3-12.el7.noarch.rpm | 355 kB 00:00:00 (3/3): firewalld-0.6.3-12.el7.noarch.rpm | 448 kB 00:00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Total 5.8 MB/s | 854 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : python-firewall-0.6.3-12.el7.noarch 1/6 Updating : firewalld-filesystem-0.6.3-12.el7.noarch 2/6 Updating : firewalld-0.6.3-12.el7.noarch 3/6 Cleanup : firewalld-0.6.3-8.el7_8.1.noarch 4/6 Cleanup : firewalld-filesystem-0.6.3-8.el7_8.1.noarch 5/6 Cleanup : python-firewall-0.6.3-8.el7_8.1.noarch 6/6 Verifying : firewalld-0.6.3-12.el7.noarch 1/6 Verifying : firewalld-filesystem-0.6.3-12.el7.noarch 2/6 Verifying : python-firewall-0.6.3-12.el7.noarch 3/6 Verifying : python-firewall-0.6.3-8.el7_8.1.noarch 4/6 Verifying : firewalld-0.6.3-8.el7_8.1.noarch 5/6 Verifying : firewalld-filesystem-0.6.3-8.el7_8.1.noarch 6/6 Updated: firewalld.noarch 0:0.6.3-12.el7 Dependency Updated: firewalld-filesystem.noarch 0:0.6.3-12.el7 python-firewall.noarch 0:0.6.3-12.el7 Complete! Created symlink from /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service to /usr/lib/systemd/system/firewalld.service. Created symlink from /etc/systemd/system/multi-user.target.wants/firewalld.service to /usr/lib/systemd/system/firewalld.service. success ================================================================== Congratulations! Installed successfully! ================================================================== 外网面板地址: http://81.71.23.110:8888/6cf7524e 内网面板地址: http://172.16.0.10:8888/6cf7524e username: g2lker52 password: 846d5138 If you cannot access the panel, release the following panel port [8888] in the security group 若无法访问面板,请检查防火墙/安全组是否有放行面板[8888]端口 ================================================================== Time consumed: 2 Minute! [root@VM-0-10-centos /]# 根据提示访问宝塔后台:http://81.71.23.110:8888/6cf7524eusername: g2lker52password: 846d5138
2020年12月08日
31 阅读
0 评论
0 点赞
2017-11-08
Linux运维常用命令
查看某文件夹下所有的文件数量:# command 1 : find -type f -o -type s -o -type p -o -type d |wc -l # command 2 : ls -al|grep '^-'|wc -l # command 3 : find -type f |wc -l删除0字节文件find -type f -size 0 -exec rm -rf {} \; 查看进程# 按内存从大到小排列 ps -e -o "%C : %p : %z : %a"|sort -k5 -nr # 按cpu利用率从大到小排列 ps -e -o "%C : %p : %z : %a"|sort -nr打印说cache里的URLgrep -r -a jpg /data/cache/* | strings | grep "http:" | awk -F'http:' '{print "http:"$2;}' 查看http的并发请求数及其TCP连接状态:netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'快速替换# sed在这个文里Root的一行,匹配Root一行,将no替换成yes. sed -i '/Root/s/no/yes/' /etc/ssh/sshd_config 如何杀掉mysql进程:# commond 1 ps aux |grep mysql |grep -v grep |awk '{print $2}' |xargs kill -9 # commond 2 killall -TERM mysqld # commond 3 通过pid文件查杀进程PID kill -9 `cat /usr/local/apache2/logs/httpd.pid` 显示运行3级别开启的服务:ls /etc/rc3.d/S* |cut -c 15- 如何在编写SHELL显示多个信息,用EOFcat << EOF +--------------------------------------------------------------+ | === Welcome to Tunoff services === | +--------------------------------------------------------------+ EOFfor 的巧用(如给mysql建软链接)cd /usr/local/mysql/bin for i in * do ln /usr/local/mysql/bin/$i /usr/bin/$i done取IP地址:# commond 1 ifconfig eth0 |grep "inet addr:" |awk '{print $2}'|cut -c 6- # commond 2 ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'内存的大小:free -m |grep "Mem" | awk '{print $2}' 查看Apache的并发请求数及其TCP连接状态:netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' 因为同事要统计一下服务器下面所有的jpg的文件的大小,写了个shell给他来统计.原来用xargs实现,但他一次处理一部分,搞的有多个总和....,下面的命令就能解决啦.find / -name *.jpg -exec wc -c {} \;|awk '{print $1}'|awk '{a+=$1}END{print a}' CPU的数量cat /proc/cpuinfo |grep -c processorCPU负载 cat /proc/loadavg检查前三个输出值是否超过了系统逻辑CPU的4倍。 查看CPU负载# 检查%idle是否过低(比如小于5%) mpstat 1 1 内存空间free # 检查free值是否过低 也可以用 # cat /proc/meminfo swap空间# 检查swap used值是否过高 free # 如果swap used值过高,进一步检查swap动作是否频繁: vmstat 1 5 # 观察si和so值是否较大磁盘空间df -h # 检查是否有分区使用率(Use%)过高(比如超过90%) 如发现某个分区空间接近用尽,可以进入该分区的挂载点,用以下命令找出占用空间最多的文件或目录: du -cks * | sort -rn | head -n 10 磁盘I/O负载iostat -x 1 2 # 检查I/O使用率(%util)是否超过100% 网络负载sar -n DEV # 检查网络流量(rxbyt/s, txbyt/s)是否过高网络传输情况netstat -i # 检查是否有网络错误(drop fifo colls carrier) 也可以用命令: cat /proc/net/dev网络连接数目netstat -an | grep -E "^(tcp)" | cut -c 68- | sort | uniq -c | sort -n查看端口占用sudo netstat -tunlp | grep 8401 # OR sudo lsof -i:8401 进程总数# 检查进程个数是否正常 (比如超过250) ps aux | wc -l进程# 观察是否有异常进程出现 top -id 1 用户who | wc -l # 检查登录用户是否过多 (比如超过50个) 也可以用命令:# uptime系统日志 cat /var/log/rflogview/*errors # 检查是否有异常错误记录 也可以搜寻一些异常关键字,例如: grep -i error /var/log/messages grep -i fail /var/log/messages 核心日志# 检查是否有异常错误记录 dmesg系统时间date 打开文件数目lsof | wc -l 日志# 需安装logwatch logwatch –print # 配置/etc/log.d/logwatch.conf,将 Mailto 设置为自己的email 地址,启动mail服务 (sendmail或者postfix),这样就可以每天收到日志报告了。 # 缺省logwatch只报告昨天的日志,可以用# logwatch –print –range all 获得所有的日志分析结果。 # 可以用# logwatch –print –detail high 获得更具体的日志分析结果(而不仅仅是出错日志)。杀掉80端口相关的进程lsof -i :80|grep -v "PID"|awk '{print "kill -9",$2}'|sh清除僵死进程。ps -eal | awk '{ if ($2 == "Z") {print $4}}' | kill -9tcpdump 抓包 ,用来防止80端口被人攻击时可以分析数据tcpdump -c 10000 -i eth0 -n dst port 80 > /root/pkts查看有多少个活动的php-cgi进程netstat -anp | grep php-cgi | grep ^tcp | wc -l chkconfig --list | awk '{if ($5=="3:on") print $1}' 在某个路径下查文件# 在/etc下查找“*.log”的文件 find /www/wwwlogs/ -name "*.log"列出某个路径下所有文件,包括子目录。find /etc -name "*"在某个路径下查找所有包含“hello abcserver”字符串的文件。find /etc -name "*" | xargs grep "hello zhuzl" # 或者 find /etc -name "*" | xargs grep "hello zhuzl" > ./zhuzltest.txt 拷贝远程文件# 拷贝远程(192.168.1.3)的/home2/backup/ 到本地的 /home/mover00/shadow_bak/sites/ scp -P 4400 -r root@192.168.1.3:/home2/backup/ /home/mover00/shadow_bak/sites/ # 拷贝本地的/home2/backup/ 到远程(192.168.1.3)的 /home/mover00/shadow_bak/sites/ scp -P 4400 -r /home2/backup/ root@192.168.1.3:/home/mover00/shadow_bak/sites/ # 格式如下: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 [...] [[user@]host2:]file2如何知道哪个应用锁定了文件lsof <文件全路径>
2017年11月08日
22 阅读
0 评论
0 点赞