找回密码
 立即注册
查看: 491|回复: 0

CentOS7 常用命令

[复制链接]

194

主题

0

回帖

986

积分

管理员

积分
986
发表于 2024-6-9 17:38:29 | 显示全部楼层 |阅读模式
查看IPIp addr
查看用户组cat /etc/group
查看用户cat /etc/passwd
修改用户密码sudo passwd postgres
查看正在运行的进程和对应的端口号netstat -tulnp   yum -y install net-tools
根据关键字查找进程ps -ef | grep dolphinscheduler
查找关键字文件find / -name "libstdc++.so*"
在指定文件查找关键字行内容strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX
检查PostgreSQL 是否已经安装rpm -qa | grep postgres
检查PostgreSQL 安装位置rpm -qal | grep postgres
查看开放端口列表/sbin/iptables -L -n
永久关闭防火墙systemctl disable firewalld 临时systemctl stop firewalld
查看防火墙是否开启 firewall-cmd--list-all
添加端口 firewall-cmd --zone=public--add-port=8030/tcp --permanent
selinux永久关闭sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config 临时setenforce 0
swap永久关闭sed -ri 's/.*swap.*/#&/' /etc/fstab 临时swapoff -a
正常卸载rpm -evf mariadb-devel-5.5.68-1.el7.x86_64 mariadb-libs-5.5.68-1.el7.x86_64
强制卸载rpm -ev --nodeps mariadb-devel-5.5.68-1.el7.x86_64 mariadb-libs-5.5.68-1.el7.x86_64
IP配置文件所在位置cd /etc/sysconfig/network-scripts
RPM包安装rpm -ivh mysql-community-libs-8.3.0-1.el7.x86_64.rpm

tar -xf  .tar.xz
tar -xf  .tar

yum -y install lrzsz
rz -by        对话框方式上传文件Xshell

yum -y install wget

yum install curl
curl --request GET 'http://localhost:12345/dolphinscheduler/actuator/health'


scp D:\Soft\apache-doris-2.0.10-bin-x64.tar.gz [email protected]:/opt/soft



商务合作
业务洽谈
Wechat:S3-SH-CN  
QQ群:128669090
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|S3软件

GMT+8, 2026-6-6 08:05 , Processed in 0.040400 second(s), 19 queries .

Powered by S3

©2001-2025 S3 Team.

快速回复 返回顶部 返回列表