.png)
그래서 저는 뼈대만 있는 새로운 VPS를 갖게 되었습니다. 내가 기대했던 것과 전혀 다르고 깊이를 훨씬 넘어섰을 수도 있지만 필수 사항을 실행하려고 노력하고 있습니다. 호스트는 스웨덴 사람이고 적극적으로 도움이 되지 않습니다.
uname -a
산출:
Linux myhostname.com 2.6.32-431.el6.i686 #1 SMP 금요일 11월 22일 00:26:36 UTC 2013 i686 i686 i386 GNU/Linux
그래서 Apache를 찾아 시작하려고 했습니다. apachectl start
알려지지 않았습니다. lsof -nPi | grep ":80 (LISTEN)"
출력이 없습니다. httpd
또는 apache2
에 대한 참조가 없습니다 /etc/init.d/
.
그래서 저는 다음과 같이 Apache를 설치하는 것으로 시작했습니다.
$ yum install httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.sunet.se
* extras: ftp.sunet.se
* updates: ftp.sunet.se
Setting up Install Process
No package httpd available.
Error: Nothing to do
rpm -qa | grep httpd
출력이 없으므로 확인했는데 제외 줄에 /etc/yum.conf
다음이 표시됩니다 .httpd
exclude=bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*
어떻게 해야 할지 막막합니다. 나는 Apache가 존재하지 않고 PHP도 없다고 확신합니다. MySQL은 잘 돌아가고 있습니다.
질문
httpd
호스트가 내 이메일을 무시하고 있는데 무시 목록에서 제거하면 어떤 해가 됩니까 ?- 또한
yum.conf
나열된 저장소가 없으면 추가해야 합니까?
답변1
우선 httpd*
제외 목록에서 제거하겠습니다 . yum.conf
또한 각 저장소는 일반적으로 디렉토리에 나열되지 yum.conf
않고 일반적으로 디렉토리에 나열됩니다 /etc/yum.repo.d
. 해당 파일 끝에 다음과 같은 설명이 있는 경우가 많습니다.
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
예
$ ls /etc/yum.repos.d/
fedora.repo home:pstavirs:ostinato.repo rpmfusion-free-updates.repo rpmfusion-nonfree-updates.repo
fedora-updates.repo home:tpokorra:mono.repo rpmfusion-free-updates-testing.repo rpmfusion-nonfree-updates-testing.repo
fedora-updates-testing.repo rpmfusion-free-rawhide.repo rpmfusion-nonfree-rawhide.repo rpm-sphere.repo
google-chrome.repo rpmfusion-free.repo rpmfusion-nonfree.repo virtualbox.repo
편집하는 대신 하나를 yum.conf
실행 yum
하고 다음과 같이 제외 항목을 재정의하도록 지시할 수 있습니다 --disableexcludes=[all|main|repoid]
.
--disableexcludes=[all|main|repoid]
Disable the excludes defined in your config files. Takes one of
three options:
all == disable all excludes
main == disable excludes defined in [main] in yum.conf
repoid == disable excludes defined for that repo
예
$ sudo yum --disableexcludes=all install httpd