常用 linux 命令
修改 Hostname
1 | hostnamectl set-hostname <hostname> |
GCC依赖问题
GCC升级问题解决:configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.,mpfr2.4.0
如果遇到类似问题:
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.,mpfr2.4.0
解决:
1 | yum install gmp gmp-devel mpfr mpfr-devel libmpc libmpc-devel |
查看端口号
1 | netstat -ntlp |