VPS(Virtual Private Server,虚拟专用服务器)是一种在单一主机或主机群上,通过虚拟化技术将一台完整的服务器分割成多个相互隔离的虚拟私有服务器的租用服务,每个VPS都拥有自己的操作系统、应用程序、用户和文件,可以像独立服务器一样运行,如何测试VPS的最佳性能呢?本文将为您详细介绍。
CPU性能测试
1、使用UnixBench进行测试
UnixBench是一个开源的基准测试工具,可以测试CPU、内存、磁盘I/O等方面的性能,在Linux系统中,可以通过以下命令安装UnixBench:
sudo aptget install gcc make wget https://byteunixbench.googlecode.com/files/UnixBench5.1.3.tgz tar zxvf UnixBench5.1.3.tgz cd UnixBench make
安装完成后,运行以下命令进行测试:
sudo ./Run
2、使用Geekbench进行测试
Geekbench是一个跨平台的基准测试工具,可以测试CPU和内存的性能,在Linux系统中,可以通过以下命令安装Geekbench:
sudo aptget install buildessential libgtk2.0dev libssldev libcapdev libmpfrdev libncurses5dev libglib2.0dev wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh8.4p1.tar.gz tar xzf openssh8.4p1.tar.gz cd openssh8.4p1 ./configure withmd5passwords withoutpam withprivseppath=/var/lib/sshd make sudo make install wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSL/openssl1.1.1k.tar.gz tar xzf openssl1.1.1k.tar.gz cd openssl1.1.1k ./config shared prefix=/usr/local openssldir=/usr/local/ssl nozlib make sudo make install wget https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libressl2.6.5.tar.gz tar xzf libressl2.6.5.tar.gz cd libressl2.6.5 ./configure prefix=/usr/local withcryptodevice=/dev/urandom withssl=libressl witherrno=posix withcrypto=libressl disabledebug disabletests disableexamples disableasm make sudo make install wget https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libcrypto++8.4_1.libressl2.6.5.tar.gz tar xzf libcrypto++8.4_1.libressl2.6.5.tar.gz cd libcrypto++8.4_1.libressl2.6.5 cmake ../../ DCMAKE_INSTALL_PREFIX=/usr/local DBUILD_SHARED_LIBS=ON DWITH_CRYPTO=ON DWITH_CRYPTOOLS=OFF DWITH_TESTING=OFF DWITH_TUTORIALS=OFF DWITH_BENCHMARK=OFF DWITH_EXAMPLES=OFF DWITH_OPENSSL=ON DWITH_ZLIB=OFF DWITH_STATIC_LIBS=OFF DWITH_LIBRESSL=ON DWITH_LIBCRYPTO=ON DWITH_LIBCRYPTOXX=ON DWITH_LIBCRYPTOXX_SYSTEM=ON DWITH_LIBCRYPTOXX_STATIC=OFF DWITH_LIBCRYPTOXX_SHARED=ON DWITH_LIBCRYPTOXX_DEBUG=OFF DWITH_LIBCRYPTOXX_PEDANTIC=OFF DWITH_LIBCRYPTOXX_TESTS=OFF DWITH_LIBCRYPTOXX_EXAMPLES=OFF DWITH_LIBCRYPTOXX_TUTORIALS=OFF DWILEXT=ON DLIBMEABI=ON DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX=/usr/local DCMAKE_PREFIX_PATH=/usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr/local; /usr// | sh && sudo make install && sudo ldconfig && cd ../../ && wget https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libcrypto++abi8.4_1.libressl2.6.5.tar.gz && tar xzf libcrypto++abi8.4_1.libressl2.6.5.tar.gz && cd libcrypto++abi8.4_1.libressl2.6.5 && cmake ../../ DCMAKE_INSTALL_PREFIX=/usr/local DBUILD_SHARED_LIBS=ON DWITH_CRYPTO=ON DWITH_CRYPTOOLS=OFF DWITH_TESTING=OFF DWITH_TUTORIALS=OFF DWITH_BENCHMARK=OFF DWITH_EXAMPLES=OFF DWITH_OPENSSL=ON DWITH_ZLIB=OFF DWITH_STATIC_LIBS=OFF DWITH_LIBRESSL=ON DWITH_LIBCRYPTO=ON DWITH_LIBCRYPTOXX=ON DWITH_LIBCRYPTOXX_SYSTEM=ON DWITH_LIBCRYPTOXX_STATIC=OFF DWITH_LIBCRYPTOXX_SHARED=ON DWITH_LIBCRYPTOXX_DEBUG=OFF DWITH_LIBCRYPTOXX_PEDANTIC=OFF DWITH_LIBCRYPTOXX_TESTS=OFF DWITH_LIBCRYPTOXX_EXAMPLES=OFF DWITH_LIBCRYPTOXX_TUTORIALS=OFF DWILEXT=ON DLIBMEABI=ON DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX=/usr/local DCMAKE_PREFIX_PATH=/usr// | sh && sudo make install && sudo ldconfig && cd ../../ && wget https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libcrypto++utility8.4_1.libressl2.6.5.tar.gz && tar xzf libcrypto++utility8.4_1.libressl2.6.5.tar
最新评论
本站CDN与莫名CDN同款、亚太CDN、速度还不错,值得推荐。
感谢推荐我们公司产品、有什么活动会第一时间公布!
我在用这类站群服务器、还可以. 用很多年了。