wget 활용
인터넷만 되고 ftp가 안되면 파일을 설치할 수 없다.
간단하게 wget명령어로 vsftpd를 다운받아 ftp를 설치해 보자
wget https://security.appspot.com/downloads/vsftpd-3.0.0.tar.gz
--2012-05-26 11:49:40-- https://security.appspot.com/downloads/vsftpd-3.0.0.tar.gz
Resolving security.appspot.com... 72.14.203.141
Connecting to security.appspot.com|72.14.203.141|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 193166 (189K) [application/x-tar]
Saving to: `vsftpd-3.0.0.tar.gz'
100%[===========================================================================================================================================>] 193,166 85.8K/s in 2.2s
2012-05-26 11:49:46 (85.8 KB/s) - `vsftpd-3.0.0.tar.gz' saved [193166/193166]
-rw-r--r-- 1 root root 193166 5??26 11:49 vsftpd-3.0.0.tar.gz
압축풀기
tar xvfz vsftpd-3.0.0.tar.gz
vsftpd-3.0.0/
vsftpd-3.0.0/twoprocess.h
vsftpd-3.0.0/banner.h
.
.
cd vsftpd-3.0.0
make
makeinstall
[root@vsftpd-3.0.0]# ls -lt /usr/local/sbin/vsftpd
-rwxr-xr-x 1 root root 135608 5??26 12:01 /usr/local/sbin/vsftpd
[root@vsftpd-3.0.0]# ls -l /etc/xinetd.d/vsftpd
-rw-r--r-- 1 root root 582 5??26 12:01 /etc/xinetd.d/vsftpd
xinetd 설치가 안되어있다면
[root@daegumc local]# yum install xinetd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.daum.net
* extras: ftp.daum.net
* updates: ftp.daum.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package xinetd.i386 2:2.3.14-16.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================
Installing:
xinetd i386 2:2.3.14-16.el5 base 126 k
Transaction Summary
=====================================================================================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 126 k
Is this ok [y/N]: y
Downloading Packages:
xinetd-2.3.14-16.el5.i386.rpm | 126 kB 00:00
寃쎄퀬: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
base/gpgkey | 1.5 kB 00:00
Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) <centos-5-key@centos.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : xinetd 1/1
Installed:
xinetd.i386 2:2.3.14-16.el5
Complete!