[linux]screen 常用命令

通过 screen 命令可以让终端命令在我们断开远程服务器后依旧运行而不会中断。

安装 screen 命令

redhat/centos:

yum install screen

ubuntu:

sudo apt-get install screen

常用的 screen 命令

新建一个名为 django 的 screen shell:

screen -S django

新建一个名为 django 的后台 screen shell:

screen -dS django

查看所有的 screen shell:

$ screen -ls
There are screens on:
    1429.django (Detached)
    23264.abc   (Detached ...
more ...

[linux]编译 aria2c 时,出现 C compiler cannot create executables 错误

编译安装 aria2c 时,出现了如下错误:

[root@dev aria2-1.17.1]# ./configure
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/root/temp/aria2-1.17.1':
configure: error: C compiler cannot create executables
See `config.log' for more details

解决办法: 清空 LIBS 及 CFLAGS 变量的值 ...

more ...