CentOS: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 15: | Zeile 15: | ||
= Hostname = | = Hostname = | ||
* /etc/sysconfig/network | * /etc/sysconfig/network | ||
HOSTNAME=centos-db.wknet.lx | <pre>HOSTNAME=centos-db.wknet.lx | ||
DNS1=192.168.2.3 | DNS1=192.168.2.3 | ||
DNS2=8.8.8.8 | DNS2=8.8.8.8 | ||
SEARCH=centos-db.wknet.lx | SEARCH=centos-db.wknet.lx | ||
</pre> | |||
* /etc/hosts | * /etc/hosts | ||
192.168.2.55 centos-db.wknet.lx centos-db | 192.168.2.55 centos-db.wknet.lx centos-db | ||
= NFS-Server = | |||
* yum install nfs-util | |||
* /etc/exports | |||
/home 192.168.2.51(rw,sync,no_root_squash,no_all_squash,no_subtree_check) | |||
<pre>for sv in rpcbind nfs-server nfs-lock nfs-idmap ; do | |||
systemctl enable $sv | |||
systemctl start $sv | |||
done | |||
</pre> | |||
= NFS-Client = | |||
* mount -t nfs hawk:/home /media/hawk/home | |||
hawk:/home /media/hawk/home nfs defaults,noatime,noauto 2 2 | |||
= FirewallD = | |||
<pre>firewall-cmd --get-active-zone | |||
firewall-cmd --zone=work --change-interface=enp0s3 | |||
firewall-cmd --set-default-zone=work | |||
firewall-cmd --get-default-zone | |||
firewall-cmd --zone=work --list-services | |||
firewall-cmd --permanent --zone=work --add-service=http --add-service=nfs | |||
# Add port of oracle: | |||
firewall-cmd --permanent --zone=work --add-port=1521/tcp | |||
# Add special http: | |||
firewall-cmd --permanent --zone=work --add-port=8080-8085/tcp | |||
firewall-cmd --reload | |||
</pre> |
Aktuelle Version vom 14. Februar 2017, 20:34 Uhr
Netzwerkkonfiguration[Bearbeiten]
- nmcli d
GERÄT TYP STATUS VERBINDUNG enp0s3 ethernet verbunden enp0s3
- /etc/sysconfig/network-scripts/ifcfg-enp0s3:
BOOTPROTO=none ONBOOT=no
- systemctl restart network
Hostname[Bearbeiten]
- /etc/sysconfig/network
HOSTNAME=centos-db.wknet.lx DNS1=192.168.2.3 DNS2=8.8.8.8 SEARCH=centos-db.wknet.lx
- /etc/hosts
192.168.2.55 centos-db.wknet.lx centos-db
NFS-Server[Bearbeiten]
- yum install nfs-util
- /etc/exports
/home 192.168.2.51(rw,sync,no_root_squash,no_all_squash,no_subtree_check)
for sv in rpcbind nfs-server nfs-lock nfs-idmap ; do systemctl enable $sv systemctl start $sv done
NFS-Client[Bearbeiten]
- mount -t nfs hawk:/home /media/hawk/home
hawk:/home /media/hawk/home nfs defaults,noatime,noauto 2 2
FirewallD[Bearbeiten]
firewall-cmd --get-active-zone firewall-cmd --zone=work --change-interface=enp0s3 firewall-cmd --set-default-zone=work firewall-cmd --get-default-zone firewall-cmd --zone=work --list-services firewall-cmd --permanent --zone=work --add-service=http --add-service=nfs # Add port of oracle: firewall-cmd --permanent --zone=work --add-port=1521/tcp # Add special http: firewall-cmd --permanent --zone=work --add-port=8080-8085/tcp firewall-cmd --reload