设置主机名:
hostnamectl set-hostname CHANGE_YOUR_HOSTNAME_HERE
查看当前主机信息:
hostnamectl status
设置主机名:
hostnamectl set-hostname CHANGE_YOUR_HOSTNAME_HERE
查看当前主机信息:
hostnamectl status
运行如下命令:
$ sudo firewall-cmd --zone=public --add-port=80/tcp --permanent $ sudo firewall-cmd --reload
参考文章:http://ask.xmodulo.com/open-port-firewall-centos-rhel.html
I am using CentOS6.4. When I was debugging a piece of c code, it said “Missing separate debuginfos, use: debuginfo-install glibc…”
After asking Google. I finally solved the problem.
yum --enablerepo=debug install glibc-debuginfo