临时方案
使用hostname命令
[root@Server-1 cer]# hostname xxxx
重启生效
使用hostnamectl命令
- 查看当前hostname信息
[root@Server-1 cer]# hostnamectl
Static hostname:[......]
使用hostname命令
[root@Server-1 cer]# hostname xxxx
使用hostnamectl命令
[root@Server-1 cer]# hostnamectl
Static hostname:[......]
yum install nfs-utils
[root@Server-1 cer]# vim /etc/fstab
如果nfs的地址是172.16.3.250,挂载根目录,本地挂载目录为/mnt/nas,参考下面末行配置
#
# /etc/fstab
# Cr[......]
/usr/local/nginx/conf
文件目录:/usr/local/nginx/html
/usr/local/etc/
1、添加端口对外访问
firewall-cmd --zone=public --add-port=80/tcp --permanent |
2、重启防火墙
systemctl restart firewalld |
[……]