第一篇:OA系統電信外網固定IP開放綁定域名方法
OA系統電信外網固定IP開放綁定域名方法
公司的一個OA辦公地址,是用電信方式接入的。
LZ你是說想通過外網訪問公司內部的OA系統?
OA系統安裝在公司的內部服務器上,在公司內部辦公的員工可以直接通過局域網進行訪問,那么從外網如何訪問公司內部OA系統呢?目前的OA軟件一般是基于B/S架構的,客戶端無需安裝專用的軟件,一般使用瀏覽器即可訪問,前提是公司需提供一個外部IP,這樣通過外部IP可以訪問公司內部的OA服務器。外部IP分為固定IP和動態IP兩種類型,固定 IP 地址是IP 地址長期固定;動態 IP,因為 IP 地址資源非常短缺,通過電話撥號上網或普通ADSL寬帶上網用戶一般不具備固定 IP 地址,而是由 ISP 動態分配暫時的一個 IP 地址。對于有固定外網IP的,需要將外部IP映射到公司內部的OA服務器,很多的路由器和防火墻的硬件設備都支持這種功能(具體參考指定設備的使用)。設置成功后可以直接使用IP進行訪問,也可以結合域名解析使用域名進行訪問。固定外部IP適合公司有多個外部分支結構的類型,當然也可以使用主機托管方式租用ISP提供的外部固定IP。
動態IP一般的帶寬比較小,適合以內部辦公為主外部訪問量比較小的情況,動態IP的成本非常低。對于動態IP的,也就是說IP是動態獲得的,過一段時間(長的話也有可能保留幾天)或重新撥號后IP將發生變化,如果知道動態IP的地址,我們也可以在短暫的時間內使用這個IP訪問公司內部OA服務器,但這只是一種短時間的權宜之計。實際上我們可以采取以下三種辦法:
1、利用動態域名解析軟件進行處理。在裝有OA的電腦上安裝花生殼等動態域名解析軟件(具體參考該軟件的使用),將動態變化的IP解析到一個固定的域名上,每次IP發生變化后動態域名解析軟件將自動重新解析,這樣雖然IP不斷的在變化,但指向的是一個固定域名,這樣我們就可以使用域名在外部進行訪問了,一般只需要支付ADSL相關費用。
2、采用外部托管。由第三方服務器托管商提供動態域名解析服務,支付費用由托管商決定。
3、由OA軟件提供商提供獨立服務器,提供固定域名,用戶支付一定費用。
第二篇:藍冰互聯電信獨立IP和雙線共享IPVPS LINUX系統掛載分區的方法
藍冰互聯VPS,CENTOS系統掛載分區的方法。
1、# fdisk-l查看當前磁盤信息,就會發現最下面顯示新加入的硬盤不是有效分區,如下: Disk /dev/sdc: 1500.3 GB, ***16 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdc doesn't contain a valid partition table2、# fdisk /dev/sdc對新硬盤分區,并根據提示進一步操作
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel.Changes will remain in memory only,until you decide to write them.After that, of course, the previous
content won't be recoverable.The number of cylinders for this disk is set to 182401.There is nothing wrong with that, but this is larger than 1024,and could in certain setups cause problems with:
1)software that runs at boot time(e.g., old versions of LILO)
2)booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command(m for help): h輸入h可查看幫助命令
h: unknown command
Command action
atoggle a bootable flag
bedit bsd disklabel
ctoggle the dos compatibility flag
ddelete a partition
llist known partition types
mprint this menu
nadd a new partition
ocreate a new empty DOS partition table
pprint the partition table
qquit without saving changes
screate a new empty Sun disklabel
tchange a partition's system id
uchange display/entry units
vverify the partition table
wwrite table to disk and exit
xextra functionality(experts only)
Command(m for help): n輸入n進行分區
Command action
eextended
pprimary partition(1-4)
p輸入p為主分區,e為邏輯分區
Partition number(1-4): 1由于是新盤我們輸入1來分第一個主分區,共可以分4個主分區
First cylinder(1-182401, default 1):選擇該分區的起始磁盤數,如無特殊需求強烈建議選擇默認,也就是1來分區(直接按回車)
Using default value 1
Last cylinder or +size or +sizeM or +sizeK(1-182401, default 182401):定義該分區的大小,如果按默認(按回車)即是使用全部可用存儲額,如分一個1G的空間,輸入+1024m
Using default value 182401
Command(m for help): w寫入分區
The partition table has been altered!
Calling ioctl()to re-read partition table.Syncing disks.3、# fdisk-l可以找到我們剛才分的一個分區,內容如下:
Disk /dev/sdc: 1500.3 GB, ***16 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device BootStartEndBlocksId System
/dev/sdc11182401 146513600183 Linux4、# mkfs-t ext3-c /dev/sdc1對分區使用ext3格式化,如多個分區sdc2等以此類推,因為新硬盤加了-c參數要先檢測磁盤壞道,此過程萬分漫長(150G),等待。。
mke2fs 1.39(29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096(log=2)
Fragment size=4096(log=2)
183156736 inodes, 366284000 blocks
18314200 blocks(5.00%)reserved for the super user
First data block=0
Maximum filesystem blocks=0
11179 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,102400000, 214990848
Checking for bad blocks(read-only test): done
Writing inode tables: done
Creating journal(32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 22 mounts or 180 days, whichever comes first.Use tune2fs-c or-i to override.5、# mkdir /var/samba新建掛載目錄
6、# mount /dev/sdc1 /var/samba掛載新硬盤
7、# df-hl查看分區大小是否和我們預定的一樣:
文件系統容量已用 可用 已用% 掛載點
/dev/sda79.5G 3.2G 5.9G 35% /
/dev/sda69.5G 151M 8.9G2% /tmp
/dev/sda519G 3.6G15G 20% /usr
/dev/sda319G 719M18G4% /home
/dev/sda2230G23G 196G 11% /var
/dev/sda199M25M69M 27% /boot
/dev/sdb1233G 156G78G 67% /var/samba2
tmpfs1008M0 1008M0% /dev/shm
/dev/sdc11.4T 198M 1.3T1% /var/samba此行為新硬盤
8、# vi /etc/fstab設置系統自動掛載硬盤,加入一行:
/dev/sdc1/var/samba2ext3defaults0 09、重啟服務器,用步驟7檢查一下,一切正常掛載完成,祝好運~