1. uname
ubuntu@Server:~$ uname -a
Linux thinkpad 6.11.0-8-generic #8-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 16 13:41:20 UTC 2024 x86_64 x86_64 x86_64 GN[......]
ubuntu@Server:~$ uname -a
Linux thinkpad 6.11.0-8-generic #8-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 16 13:41:20 UTC 2024 x86_64 x86_64 x86_64 GN[......]
使用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 |
[……]