-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnfs.sh
41 lines (29 loc) · 1.1 KB
/
nfs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
if [ -f "/etc/arch-release" ]; then
echo "installing for ARCH"
else
echo "installing for Ubuntu"
### SERVER
wget https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-7.13.0.tar.gz
tar -xf atlassian-confluence-7.13.0.tar.gz
# https://vitux.com/install-nfs-server-and-client-on-ubuntu/
sudo apt-get update
sudo apt install nfs-kernel-server
sudo mkdir -p /mnt/sharedfolder
sudo chown nobody:nogroup /mnt/sharedfolder
sudo chmod 777 /mnt/sharedfolder
sudo nano /etc/exports
# add /mnt/sharedfolder clientIP(rw,sync,no_subtree_check)
sudo exportfs -a
sudo systemctl restart nfs-kernel-server
# firewall
### Configuring the Client Machine
sudo apt-get update
sudo apt-get install nfs-common
sudo mkdir -p /mnt/sharedfolder_client
# $ sudo mount 192.168.100.5:/mnt/sharedfolder /mnt/sharedfolder_client
sudo mount serverIP:/exportFolder_server /mnt/mountfolder_client
----------
https://confluence.atlassian.com/doc/data-center-troubleshooting-203618.html
netstat -gn
netstat -rn
fi