SSH를 통해 원격 서버에 프로젝트를 배포하려고 하는데, command not found
무엇을 입력하든 sudo
항상 이 오류가 발생합니다 yum
. 지금까지 일부 게시물을 확인했지만 아직 수정 방법을 모르겠습니다.
Ubuntu 18.04
내 로컬 OS는 터미널에 입력하여 서버에 직접 연결하는 것과 같습니다 . ssh username@hostname
더 많은 데이터:
출력 cat /etc/os-release
:
galtecch@s063 [/etc/yum.repos.d]# cat /etc/os-release
NAME="CloudLinux"
VERSION="7.5 (Viktor Gorbatko)"
ID="cloudlinux"
ID_LIKE="rhel fedora centos"
VERSION_ID="7.5"
PRETTY_NAME="CloudLinux 7.5 (Viktor Gorbatko)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:cloudlinux:cloudlinux:7.5:GA:server"
HOME_URL="https://www.cloudlinux.com/"
BUG_REPORT_URL="https://www.cloudlinux.com/support"
전체 목록 /etc
:
galtecch@s063 [/etc]# ls
./ GeoIP.conf.default mime.types senderverifybypasshosts
../ ghostscript/ motd services
aliases group my.cnf shadow
aliases.db host.conf my.cnf.d/ skel/
alternatives/ hosts nsswitch.conf skipsmtpcheckhosts
at.deny ImageMagick/ odbcinst.ini spammeripblocks
backupmxhosts init.d/ openldap/ ssh/
bashrc inputrc os-release ssl/
blackfire/ issue pam.d/ subversion/
cl.nodejs@ issue.net passwd sysconfig/
cloudlinux-release ld.so.cache pki/ system-release@
cl.php.d/ ld.so.conf profile system-release-cpe
cl.selector/ ld.so.conf.d/ profile.d/ trusted-key.key
cron.daily/ localtime@ protocols trustedmailhosts
default/ lynx.cfg redhat-release@ vimrc
DIR_COLORS lynx.lss relayhosts@ virc
DIR_COLORS.256color lynx-site.cfg resolv.conf wgetrc
DIR_COLORS.lightbgcolor mail/ rpc yum.repos.d/
domainusers mailcap rpm/ zlogin
environment mailhelo rsyncd.conf zlogout
.etc.version mailips sasl2/ zprofile
fonts/ mail.rc scl/ zshenv
gcrypt/ man_db.conf screenrc zshrc
GeoIP.conf mc/ security/
보시다시피 다음 etc/yum.repos.d/
이 있습니다.
galtecch@s063 [/etc/yum.repos.d]# ls
./ ../ centos-extras.repo cloudlinux-imunify360.repo cloudlinux.repo
일부 yum 명령:
galtecch@s063 [/etc/yum.repos.d]# uname -r
3.10.0-714.10.2.lve1.5.19.3.el7.x86_64
galtecch@s063 [/etc/yum.repos.d]# yum
-bash: yum: command not found
galtecch@s063 [/etc/yum.repos.d]# which yum
galtecch@s063 [/etc/yum.repos.d]# echo $PATH
/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/jdk/bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin:/usr/local/bin:/usr/X11R6/bin:/home/galtecch/bin
galtecch@s063 [/etc/yum.repos.d]# rpm -q yum
-bash: rpm: command not found
galtecch@s063 [/etc/yum.repos.d]# find /bin/ /usr/bin -name yum
galtecch@s063 [/etc/yum.repos.d]# find /bin/ /usr/bin -name yum*
galtecch@s063 [/etc/yum.repos.d]# ls -l /etc/yum.conf
/bin/ls: cannot access /etc/yum.conf: No such file or directory
답변1
판매업체에 문의해보니 공유서버에서는 루트 접근이 허용되지 않는다는 것을 알게 되었습니다. 나는 이 작업을 수행하는 더 쉬운 방법을 생각하려고 노력할 것입니다. 시간