Linux非root使用者配置安裝screen

2021-09-14 07:32:45 字數 1097 閱讀 9894

我們經常使用ssh或telnet遠端登陸到linux伺服器,而執行一些長時間任務如ftp傳輸,深度學習等任務時常常使我們感到頭疼,因為我們不能關閉遠端會話,否則程序會強制終止。screen可以很方便地處理這種情況,讓我們可以放心地斷開連線而讓linux伺服器繼續執行任務。下面介紹linux非root使用者如何安裝配置screen。

configure: error: !!! no tgetent - no screen

./configure --prefix=/home/username/ncurses_dir

make

make install

如果第一條命令執行後有error,可用如下命令嘗試替換:

./configure --prefix=/home/username/ncurses_dir --with-shared --without-debug --without-ada --enable-overwrite

這裡安裝到ncurses_dir,目錄下有bin,include,lib,share目錄,依賴包在lib目錄下。接著切換到screen解壓目錄,執行如下指令:

export ldflags=』-l/home/username/ncurses_dir/lib』

export cppflags=』-i/home/username/ncurses_dir/include』

./configure --prefix=』/home/username/screen_dir』

make

make install

這樣就能將screen安裝到screen_dir目錄下了。接著在.bashrc檔案裡設定screen執行路徑,加入export path=/home/username/screen_dir/bin:$path,接著執行source .bashrc更新path,在終端輸入screen就能進入screen介面了。

screen使用者手冊可以查閱1或者2。

linux 非root使用者安裝nginx

第二步 上傳那個nginx的安裝包 報錯 3 還是安裝一下pcre吧 bdctool localhost setup unzip pcre 8.10.zip bdctool localhost setup cd pcre 8.10 bdctool localhost pcre 8.10 config...

如何配置MySQL遠端連線(非root使用者訪問)

1 開啟防火牆3306埠 mysql預設埠是3306 編輯iptables vi etc sysconfig iptables新增以下內容 a input p tcp m state state new m tcp dport 3306 j accept儲存並且重啟防火牆 service iptab...

CentOS配置非root使用者免密登入

1 確認ssh服務已經安裝並開啟 2 開啟檔案 etc ssh sshd config,確保以下配置已經新增 如果被 注釋了就把 刪除 authorizedkeysfile ssh authorized keys pubkeyauthentication yes3 三颱機器的 etc hostnam...