我正在尝试cmake
在我的 linux 盒子中安装最新版本,但我总是遇到以下异常 -
userName@phx5qa01c-4e23:~/build$ wget http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz
--2013-10-08 14:39:55-- http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz
Resolving www.cmake.org... 66.194.253.19
Connecting to www.cmake.org|66.194.253.19|:80... failed: Connection timed out.
Retrying.
--2013-10-08 14:40:17-- (try: 2) http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz
Connecting to www.cmake.org|66.194.253.19|:80... failed: Connection timed out.
Retrying.
--2013-10-08 14:40:40-- (try: 3) http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz
Connecting to www.cmake.org|66.194.253.19|:80...
Run Code Online (Sandbox Code Playgroud)
它总是在重试......有什么想法吗?
有谁知道我在这里做错了什么?或者有什么更好的方法可以在我的 linux 机器中安装最新版本的 cmake?
userName@phx5qa01c-4e23:~/build$ uname -a
Linux phx5qa01c-4e23 2.6.35-22-server #33-Ubuntu SMP Sun Sep 19 20:48:58 UTC 2010 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud) 我是 linux 新手,我有一个非常基本的问题。我有三台机器-
machineA 10.108.24.132
machineB 10.108.24.133
machineC 10.108.24.134
Run Code Online (Sandbox Code Playgroud)
所有这些机器都安装了 Ubuntu 12.04,我对所有这三台机器都有 root 访问权限。
现在我应该在上面的机器上做下面的事情 -
Create mount point /opt/exhibitor/conf
Mount the directory in all servers.
sudo mount <NFS-SERVER>:/opt/exhibitor/conf /opt/exhibitor/conf/
Run Code Online (Sandbox Code Playgroud)
/opt/exhibitor/conf
如上所述,我已经在所有这三台机器中创建了目录。
现在我试图在所有这三台机器上创建一个挂载点。所以我遵循了以下过程 -
以上三台机器都安装NFS支持文件和NFS内核服务器
$ sudo apt-get install nfs-common nfs-kernel-server
Run Code Online (Sandbox Code Playgroud)
在以上三台机器上创建共享目录
$ mkdir /opt/exhibitor/conf/
Run Code Online (Sandbox Code Playgroud)
/etc/exports
在以上三台机器中编辑并添加了这样的条目 -
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example …
Run Code Online (Sandbox Code Playgroud) 我需要在当前目录中找到一个文件,其大小应小于或等于 10 MB。
ls -lh
给了我每个文件的文件大小,但不确定如何找到大小小于或等于 10 MB 的文件。
host@407d:t1_snapshot$ ls -lth
Run Code Online (Sandbox Code Playgroud)
有什么办法可以做到吗?