设置主机名:
1 |
hostnamectl set-hostname CHANGE_YOUR_HOSTNAME_HERE |
查看当前主机信息:
1 |
hostnamectl status |
PHP 程序员的工作学习生活笔记
设置主机名:
1 |
hostnamectl set-hostname CHANGE_YOUR_HOSTNAME_HERE |
查看当前主机信息:
1 |
hostnamectl status |
运行如下命令:
1 2 |
$ 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.
1 |
yum --enablerepo=debug install glibc-debuginfo |