ລາຍການຫົວເລື່ອງ
ຕິດຕັ້ງ VestaCP ຫຼັງຈາກແຜງຄວບຄຸມ, ຫຼັງຈາກການຕັ້ງຄ່າຕິດຕາມກວດກາເວລາໂຄງການ:
git clone https://github.com/infinitnet/vesta-centos7-monit.git ./ && rm -f README.md
ຂໍ້ຄວາມຜິດພາດປາກົດຂຶ້ນ:
-bash: git: command not found
- ຄໍາສັ່ງ git bash ບໍ່ພົບຫມາຍຄວາມວ່າ Linux ບໍ່ພົບຄຳສັ່ງ.
ວິທີແກ້ໄຂ:
- ເປີດໃຊ້ EPEL repository
- ຕິດຕັ້ງຄໍາສັ່ງ git
ເປີດໃຊ້ EPEL repository
RHEL/CentOS 7 64-ບິດ:
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -ivh epel-release-latest-7.noarch.rpm
RHEL/CentOS 6 32-bit:
get http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm
- CentOS 7 ບໍ່ຮອງຮັບ 32-bit EPEL repositories, ສະນັ້ນໃຫ້ໃຊ້ RHEL/CentOS 6 32-bit.
ຕິດຕັ້ງຄໍາສັ່ງ git
yum install -y git
ຕໍ່ໄປນີ້ແມ່ນສິ່ງທີ່ປາກົດໃນລະຫວ່າງການຕິດຕັ້ງຄໍາສັ່ງ git:
Resolving Dependencies --> Running transaction check ---> Package monit.x86_64 0:5.25.1-1.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================================================================== Package Arch Version Repository Size ======================================================================================================================================================================== Installing: monit x86_64 5.25.1-1.el7 epel 318 k Transaction Summary ======================================================================================================================================================================== Install 1 Package Total download size: 318 k Installed size: 818 k Is this ok [y/d/N]: y Downloading packages: monit-5.25.1-1.el7.x86_64.rpm | 318 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : monit-5.25.1-1.el7.x86_64 1/1 Verifying : monit-5.25.1-1.el7.x86_64 1/1 Installed: monit.x86_64 0:5.25.1-1.el7 Complete! [root@ten ~]# cd /etc/monit.d/ [root@ten monit.d]# git clone https://github.com/infinitnet/vesta-centos7-monit.git ./ && rm -f README.md -bash: git: command not found [root@ten monit.d]# myip=web.etufo.org [root@ten monit.d]# sed -i 's/host localhost/host '$myip'/g' /etc/monit.d/*.conf [root@ten monit.d]# systemctl restart monit [root@ten monit.d]# ^C [root@ten monit.d]# yum install -y git^C [root@ten monit.d]# cd /root -bash: $'\345\205cd': command not found [root@ten monit.d]# cd /root [root@ten ~]# yum install -y git Resolving Dependencies --> Running transaction check ---> Package git.x86_64 0:1.8.3.1-12.el7_4 will be installed --> Processing Dependency: perl-Git = 1.8.3.1-12.el7_4 for package: git-1.8.3.1-12.el7_4.x86_64 --> Processing Dependency: perl(Term::ReadKey) for package: git-1.8.3.1-12.el7_4.x86_64 --> Processing Dependency: perl(Git) for package: git-1.8.3.1-12.el7_4.x86_64 --> Processing Dependency: perl(Error) for package: git-1.8.3.1-12.el7_4.x86_64 --> Processing Dependency: libgnome-keyring.so.0()(64bit) for package: git-1.8.3.1-12.el7_4.x86_64 --> Running transaction check ---> Package libgnome-keyring.x86_64 0:3.12.0-1.el7 will be installed ---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed ---> Package perl-Git.noarch 0:1.8.3.1-12.el7_4 will be installed ---> Package perl-TermReadKey.x86_64 0:2.30-20.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================================================================== Package Arch Version Repository Size ======================================================================================================================================================================== Installing: git x86_64 1.8.3.1-12.el7_4 updates 4.4 M Installing for dependencies: libgnome-keyring x86_64 3.12.0-1.el7 base 109 k perl-Error noarch 1:0.17020-2.el7 base 32 k perl-Git noarch 1.8.3.1-12.el7_4 updates 53 k perl-TermReadKey x86_64 2.30-20.el7 base 31 k Transaction Summary ======================================================================================================================================================================== Install 1 Package (+4 Dependent packages) Total download size: 4.6 M Installed size: 23 M Downloading packages: (1/5): perl-Error-0.17020-2.el7.noarch.rpm | 32 kB 00:00:00 (2/5): perl-Git-1.8.3.1-12.el7_4.noarch.rpm | 53 kB 00:00:00 (3/5): perl-TermReadKey-2.30-20.el7.x86_64.rpm | 31 kB 00:00:00 (4/5): libgnome-keyring-3.12.0-1.el7.x86_64.rpm | 109 kB 00:00:01 (5/5): git-1.8.3.1-12.el7_4.x86_64.rpm | 4.4 MB 00:00:01 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Total 3.3 MB/s | 4.6 MB 00:00:01 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : 1:perl-Error-0.17020-2.el7.noarch 1/5 Installing : perl-TermReadKey-2.30-20.el7.x86_64 2/5 Installing : libgnome-keyring-3.12.0-1.el7.x86_64 3/5 Installing : perl-Git-1.8.3.1-12.el7_4.noarch 4/5 Installing : git-1.8.3.1-12.el7_4.x86_64 5/5 Verifying : git-1.8.3.1-12.el7_4.x86_64 1/5 Verifying : 1:perl-Error-0.17020-2.el7.noarch 2/5 Verifying : libgnome-keyring-3.12.0-1.el7.x86_64 3/5 Verifying : perl-Git-1.8.3.1-12.el7_4.noarch 4/5 Verifying : perl-TermReadKey-2.30-20.el7.x86_64 5/5 Installed: git.x86_64 0:1.8.3.1-12.el7_4 Dependency Installed: libgnome-keyring.x86_64 0:3.12.0-1.el7 perl-Error.noarch 1:0.17020-2.el7 perl-Git.noarch 0:1.8.3.1-12.el7_4 perl-TermReadKey.x86_64 0:2.30-20.el7 Complete!
ສຸດທ້າຍ, ເມື່ອທ່ານເຫັນ "ສໍາເລັດ", ມັນຫມາຍຄວາມວ່າທ່ານໄດ້ສໍາເລັດການຕິດຕັ້ງຄໍາສັ່ງ git ^_^
ຫວັງ Chen Weiliang Blog ( https://www.chenweiliang.com/ ) ແບ່ງປັນ "ຂໍ້ຜິດພາດ CentOS 7 ບໍ່ສາມາດຊອກຫາຄໍາສັ່ງ git bash ບໍ່ພົບ linux", ເຊິ່ງເປັນປະໂຫຍດສໍາລັບທ່ານ.
ຍິນດີຕ້ອນຮັບແບ່ງປັນການເຊື່ອມຕໍ່ຂອງບົດຄວາມນີ້:https://www.chenweiliang.com/cwl-729.html
ເພື່ອປົດລັອກເຄັດລັບທີ່ເຊື່ອງໄວ້ເພີ່ມເຕີມ🔑, ຍິນດີຕ້ອນຮັບເຂົ້າສູ່ຊ່ອງ Telegram ຂອງພວກເຮົາ!
Share and like ຖ້າທ່ານມັກມັນ! ການແບ່ງປັນ ແລະຖືກໃຈຂອງເຈົ້າເປັນແຮງຈູງໃຈຢ່າງຕໍ່ເນື່ອງຂອງພວກເຮົາ!