리눅스 yum, apt-get을 이용한 패키지 다운로드
외부망에 연결이 되어있다면 yum install ~~~, sudo apt-get install 로 설치하면되지만 이런 조건이 안되는 것이다.
이럴때 설치하려는 서버와 같은 환경을 만들어놓고 외부망과 연결해서 패키지만 다운받을 수 있다.
[root@test root]# /etc/rc.d/init.d/named start
[root@test root]# /etc/rc.d/init.d/named reload
[root@test root]# /etc/rc.d/init.d/named stop
[root@test root]# ps -ef | grep named named 17585 1 0 22:39 ? 00:00:00 [named] root 17728 17314 0 22:42 pts/2 00:00:00 grep named
[root@test root]# rndc stop
[root@test root]# killall named [root@test root]# ps -ef | grep named
/usr/local/mysql/bin/mysqld_safe &
/usr/local/apache/bin/apachectl start
/usr/local/mysql/bin/mysqladmin -u root -p reload
/usr/local/apache/bin/apachectl restart
/usr/local/mysql/bin/mysqladmin -u root -p shutdown
/usr/local/apache/bin/apachectl stop
#=====================================================
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!
in.telnetd:ALL
in.ftpd:ALL
#=====================================================
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
in.telnetd:123.123.123.123
in.ftpd:123.123.123.123
[root@ns etc]$ cd /etc/rc.d/init.d=====================================================
[root@ns init.d]$ ./xinit.d stop
Stoping xinetd: [OK]
[root@ns init.d]$ ./xinit.d start
Starting xinetd: [OK]
[root@ns init.d]$ _