Centos 7 下命令整理

来源:互联网 发布:消防工程师网络培训班 编辑:程序博客网 时间:2024/05/20 07:51

1. 创建root账户

sudo passwd root

之后再输入几次密码就好了

2. 重启网络

可以避免ssh掉了

sudo ifdown XXX && ifup xxx



遇到的问题:


1. Python.h: No such file or directory

yum search python | grep python-develsudo yum install python-devel.x86_64

2. ffi.h: No such file or directory

yum install libffi-devel.x86_64

3. openssl/aes.h: No such file or directory

yum install openssl-devel.x86_64

4. yaml.h: No such file or directory

yum install ncurses-devel.x86_64
0 0