============================================== RedHat5.5 = ========================================== projects are generally processed on multiple machines, for ArcGISServer, although multiple machines are processed, the folder for map slicing must be in one place, so you need to master the shared folder in Linux, next, let's test how to use the Linux environment
============================================RedHat 5.5==============================================
In view of the fact that a user's project is generally processed by multiple machines, even though multiple machines are processed by ArcGIS Server, the folder of map slicing must be one place, in this case, you need to understand the shared folders in Linux. Next we will try to set up shared folders in Linux.
Machine 1: RedHat, 192.168.100.203
Machine 2: RedHatA, 192.168.100.204
Objective: to share two folders in the RedHat Machine
1: Share/opt/arcgis/server10.0/server/serverdir of machine 1 to/opt/arcgis/server10.0/server/serverdir of Machine 2
2: Share/home/aaa of machine 1 to/home/bbb of Machine 2
Modify the/etc/exports file of machine 1
- /Opt/arcgis/server10.0/server/serverdir 192.168.100.204 (rw, no_root_squash, async
- ) 192.168.100.203 (rw, no_root_squash, async)
- /Home/aaa 192.168.100.204 (rw, no_root_squash, async) 192.168.100.203 (rw, no_root_sq
- Uash, async)
Related formats:
Shared Paths are shared to machine IP addresses (rw, no_root_squash, async) and machine 2 IP addresses (rw, no_root_squash, async)
Restart nfs and portmap services
- [Root @ RedHat ~] # Service nfs restart
- Shutting down NFS mountd: [OK]
- Shutting down NFS daemon: [OK]
- Shutting down NFS quotas: [OK]
- Shutting down NFS services: [OK]
- Starting NFS services: [OK]
- Starting NFS quotas: [OK]
- Starting NFS daemon: [OK]
- Starting NFS mountd: [OK]
- [Root @ RedHat ~] # Service portmap restart
- Stopping portmap: [OK]
- Starting portmap: [OK]
Set Machine 2
Modify/etc/fstab and add
- 192.168.100.203:/opt/arcgis/server10.0/server/serverdir/opt/arcgis/server10.0/server/serverdir nfsRsize=8192,Wsize=8192,Timeo=14, Intr
- 192.168.100.203:/home/aaa/home/bbb nfsRsize=8192,Wsize=8192,Timeo=14, Intr
Format:
IP address of the shared machine: the path of the shared machine. The nfs ing path of the Local Machine: nfs rsize = 8192, wsize = 8192, timeo = 14, intr
Then, use the path of the Local Machine to mount
Querying the mount command will check whether the machine's path is mounted.
- [Root @ RedHatA ~] # Mount/home/bbb
- [Root @ RedHatA ~] # Mount
- /Dev/mapper/VolGroup00-LogVol00 on/type ext3 (rw)
- Proc on/proc type proc (rw)
- Sysfs on/sys type sysfs (rw)
- Devpts on/dev/pts type devpts (rw,Gid=5,Mode=620)
- /Dev/sda1 on/boot type ext3 (rw)
- Tmpfs on/dev/shm type tmpfs (rw)
- None on/proc/sys/fs/binfmt_misc type binfmt_misc (rw)
- None on/proc/fs/vmblock/mountPoint type vmblock (rw)
- Sunrpc on/var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
- 192.168.100.203:/home/aaa on/home/bbb type nfs (rw,Rsize=8192,Wsize=8192,Timeo=14, Intr,Addr=192. 168.100.203)
- [Root @ RedHatA ~] # Mount/opt/arcgis/server10.0/server/serverdir/
- [Root @ RedHatA ~] # Mount
- /Dev/mapper/VolGroup00-LogVol00 on/type ext3 (rw)
- Proc on/proc type proc (rw)
- Sysfs on/sys type sysfs (rw)
- Devpts on/dev/pts type devpts (rw,Gid=5,Mode=620)
- /Dev/sda1 on/boot type ext3 (rw)
- Tmpfs on/dev/shm type tmpfs (rw)
- None on/proc/sys/fs/binfmt_misc type binfmt_misc (rw)
- None on/proc/fs/vmblock/mountPoint type vmblock (rw)
- Sunrpc on/var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
- 192.168.100.203:/home/aaa on/home/bbb type nfs (rw,Rsize=8192,Wsize=8192,Timeo=14, Intr,Addr=192. 168.100.203)
- 192.168.100.203:/opt/arcgis/server10.0/server/serverdir on/opt/arcgis/server10. 0/server/serverdir type nfs (rw,Rsize=8192,Wsize=8192,Timeo=14, Intr,Addr=192. 168. 100.203)
Related tests:
Create a file under the shared path on machine 1, which can be seen under the related ing path on Machine 2.