linux 出錯,持續更新中

2021-10-13 16:57:20 字數 495 閱讀 5161

1. 網絡卡自動關閉。這個問題出現在,vmware虛擬機器複製上。

(1)重新配置網絡卡uuid。使用uuidgen命令。問題沒解決。

(2)重新生成網絡卡配置檔案:nmcli connection type ethernet ifname ens32。 重新配置解決問題。

2. [git@localhost ~]$ scp ./.ssh/id_rsa.pub  [email protected]:/home/git/.ssh/1.r

[email protected]'s password: 

fatal: unrecognized command 'scp -t /home/git/.ssh/1.r'

lost connection

這個原因是對端git使用者 不允許這個命令/etc/passwd

git:x:1000:1000::/home/git:/bin/git-shell 改為 git:x:1000:1000::/home/git:/bin/bash

linux筆記(更新持續中)

配置主機名 hostnamectl set hostname www.wayne.com 關閉防火牆 systemctl stop firewalld systemctl disable firewalld 關閉selinux vi etc sysconfig selinux setenfoce 0...

Linux 基礎命令 持續更新中

1 ls 顯示當前檔案 資料夾 顯示檔案大小 ls lh 顯示隱藏檔案 ls a 顯示檔案詳細資訊 ls l ll 2 pwd 顯示當前所在路徑 cat 顯示當前檔案下所有內容 3 cd cd 回到上次工作的目錄 cd 回到家目錄 cd 碟符 跳轉到指定碟符下 4 檔案操作 建立檔案 touch 檔...

關於Linux,持續更新

今天學著在redhat enterprise 4上配置tomcat,做個筆記 在寫啟動指令碼的時候,前幾行的注釋必須包含chkconfig和description兩項描述。否則在執行 chkconfig add tomcat 時,會出現 tomcat服務不支援chkconfig 的錯誤提示。來幫助t...