PPTP 相關命令

1.ifconfig  |grep ppp

查看連接的用戶網絡情況

2.last | grep still | grep ppp

查看連接的用戶名

3.UnixBench跑分測試

#wget https://byte-unixbench.googlecode.com/files/UnixBench5.1.3.tgz 

# tar -xvf UnixBench5.1.3.tgz

運行./Run  

如果出現錯誤:Can't locate Time/HiRes.pm in @INC

安裝 yum -y  install perl-Time-HiRes

   BYTE UNIX Benchmarks (Version 5.1.3)


   System: ????: GNU/Linux
   OS: GNU/Linux -- 2.6.32-042stab113.21 -- #1 SMP Wed Mar 23 11:05:25 MSK 2016
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz (7000.5 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   17:33:32 up  3:33,  3 users,  load average: 0.00, 0.00, 0.00; runlevel 3


------------------------------------------------------------------------
Benchmark Run: Tue May 24 2016 17:33:32 - 18:01:46
1 CPU in system; running 1 parallel copy of tests


Dhrystone 2 using register variables       36861253.6 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     4154.3 MWIPS (9.9 s, 7 samples)
Execl Throughput                               5220.5 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        597683.3 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          179741.6 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1740562.3 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1330616.4 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 272061.1 lps   (10.0 s, 7 samples)
Process Creation                              12595.4 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5273.9 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    673.2 lpm   (60.0 s, 2 samples)
System Call Overhead                        2363255.0 lps   (10.0 s, 7 samples)


System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   36861253.6   3158.6
Double-Precision Whetstone                       55.0       4154.3    755.3
Execl Throughput                                 43.0       5220.5   1214.1
File Copy 1024 bufsize 2000 maxblocks          3960.0     597683.3   1509.3
File Copy 256 bufsize 500 maxblocks            1655.0     179741.6   1086.1
File Copy 4096 bufsize 8000 maxblocks          5800.0    1740562.3   3001.0
Pipe Throughput                               12440.0    1330616.4   1069.6
Pipe-based Context Switching                   4000.0     272061.1    680.2
Process Creation                                126.0      12595.4    999.6
Shell Scripts (1 concurrent)                     42.4       5273.9   1243.9
Shell Scripts (8 concurrent)                      6.0        673.2   1121.9
System Call Overhead                          15000.0    2363255.0   1575.5
                                                                   ========
System Benchmarks Index Score                                        1297.6

4.net-speeder 工具提速openVZ

wget --no-check-certificate https://gist.github.com/LazyZhu/dc3f2f84c336a08fd6a5/raw/d8aa4bcf955409e28a262ccf52921a65fe49da99/net_speeder_lazyinstall.sh
sh net_speeder_lazyinstall.sh

安裝完畢之後我們可以看到最後一行,執行啓動:

nohup /usr/local/net_speeder/net_speeder venet0 "ip" >/dev/null 2>&1 &

我們也可以將腳本加入到開機啓動項中,這樣可以確保一直在使用:

echo 'nohup /usr/local/net_speeder/net_speeder venet0 "ip" >/dev/null 2>&1 & ' >> /etc/rc.local

5.speedtest-cli 測速



2
wget-Ospeedtest-clihttps://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
chmod+xspeedtest-cli

常用參數

 list
根據距離顯示speedtest.net的測試服務器列表

server
指定列表中id的服務器來做測試

 share
分享你的網速,該命令會在speedtest網站上生成網速測試結果的圖片

常用:



2
wget-Ospeedtest-clihttps://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
chmod+xspeedtest-cli
發佈了10 篇原創文章 · 獲贊 35 · 訪問量 17萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章