'Linux' 카테고리의 다른 글
리눅스(linux) LVM 디스크 관리 및 추가 (0) | 2014.10.31 |
---|---|
리눅스 shell script (0) | 2014.10.31 |
리눅스에 iptraf3.0 설치 (1) | 2014.10.31 |
DNS 서버구축 (0) | 2014.10.31 |
linux,unix에 vi editor 구문강조 (0) | 2014.10.31 |
'Linux' 카테고리의 다른 글
리눅스 shell script (0) | 2014.10.31 |
---|---|
lunux(리눅스) 압축 파일 관리 (compress.tar, gzip 등) (0) | 2014.10.31 |
DNS 서버구축 (0) | 2014.10.31 |
linux,unix에 vi editor 구문강조 (0) | 2014.10.31 |
make install 안될 때 해결법 (0) | 2014.10.31 |
'Linux' 카테고리의 다른 글
lunux(리눅스) 압축 파일 관리 (compress.tar, gzip 등) (0) | 2014.10.31 |
---|---|
리눅스에 iptraf3.0 설치 (1) | 2014.10.31 |
linux,unix에 vi editor 구문강조 (0) | 2014.10.31 |
make install 안될 때 해결법 (0) | 2014.10.31 |
FTP Server 구축 (0) | 2014.10.31 |
'Linux' 카테고리의 다른 글
리눅스에 iptraf3.0 설치 (1) | 2014.10.31 |
---|---|
DNS 서버구축 (0) | 2014.10.31 |
make install 안될 때 해결법 (0) | 2014.10.31 |
FTP Server 구축 (0) | 2014.10.31 |
Mail Server 구축 (0) | 2014.10.31 |
<div style="background-color: rgb(255, 255, 255); font-family: 'Lucida Grande', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Lucida Sans Unicode', Helvetica, Arial, sans-serif; font-size: 0.9em; overflow-x: hidden; overflow-y: auto; margin: 0px !important; padding: 5px 20px 26px !important;padding: 20px;padding: 20px; color: rgb(115, 115, 115); font-size: 15px; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', AppleSDGothicNeo-Medium, 'Segoe UI', 'Malgun Gothic', Verdana, Tahoma, sans-serif; background-color: rgb(255, 255, 255); -webkit-font-smoothing: antialiased; background-position: initial initial; background-repeat: initial initial;">
<ul>
<li style="display: list-item; line-height: 1.4em;">컴파일할 때 make가 안되면 커널버전이 달라서 안될수도 있다.<br style="clear: both;">*libcap-devel을 yum으로 받아설치하거나 rpm으로 받아 설치하면 된다.</li>
</ul><pre style="border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; overflow: auto;"><code class="bash hljs" data-origin="<pre><code class="bash">[root@dbserver vsftpd-3.0.2]# yum install libcap-devel -y
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--&gt; Running transaction check
---&gt; Package libcap-devel.x86_64 0:2.16-5.5.el6 will be installed
--&gt; Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
libcap-devel x86_64 2.16-5.5.el6 public_ol6_latest 24 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 24 k
Installed size: 15 k
Downloading Packages:
libcap-devel-2.16-5.5.el6.x86_64.rpm | 24 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libcap-devel-2.16-5.5.el6.x86_64 1/1
Verifying : libcap-devel-2.16-5.5.el6.x86_64 1/1
Installed:
libcap-devel.x86_64 0:2.16-5.5.el6
Complete!
[root@dbserver vsftpd-3.0.2]#
</code></pre>" style="display: block;border: 1px solid rgb(204, 204, 204); white-space: pre; padding: 0.5em; margin: 0px;border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;font-size: 0.9em; font-family: Consolas, Inconsolata, Courier, monospace;display: block; overflow-x: auto; padding: 0.5em; background-color: white; color: black; background-position: initial initial; background-repeat: initial initial;">[root@dbserver vsftpd-<span class="hljs-number">3.0</span>.<span class="hljs-number">2</span>]<span class="hljs-comment" style="color: rgb(204, 204, 204);"># yum install libcap-devel -y</span>
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libcap-devel.x86_64 <span class="hljs-number">0</span>:<span class="hljs-number">2.16</span>-<span class="hljs-number">5.5</span>.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
libcap-devel x86_64 <span class="hljs-number">2.16</span>-<span class="hljs-number">5.5</span>.el6 public_ol6_latest <span class="hljs-number">24</span> k
Transaction Summary
================================================================================
Install <span class="hljs-number">1</span> Package(s)
Total download size: <span class="hljs-number">24</span> k
Installed size: <span class="hljs-number">15</span> k
Downloading Packages:
libcap-devel-<span class="hljs-number">2.16</span>-<span class="hljs-number">5.5</span>.el6.x86_64.rpm | <span class="hljs-number">24</span> kB <span class="hljs-number">00</span>:<span class="hljs-number">00</span>
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libcap-devel-<span class="hljs-number">2.16</span>-<span class="hljs-number">5.5</span>.el6.x86_64 <span class="hljs-number">1</span>/<span class="hljs-number">1</span>
Verifying : libcap-devel-<span class="hljs-number">2.16</span>-<span class="hljs-number">5.5</span>.el6.x86_64 <span class="hljs-number">1</span>/<span class="hljs-number">1</span>
Installed:
libcap-devel.x86_64 <span class="hljs-number">0</span>:<span class="hljs-number">2.16</span>-<span class="hljs-number">5.5</span>.el6
Complete!
[root@dbserver vsftpd-<span class="hljs-number">3.0</span>.<span class="hljs-number">2</span>]<span class="hljs-comment" style="color: rgb(204, 204, 204);">#</span>
</code></pre><ul>
<li style="display: list-item; line-height: 1.4em;">위와같이 패키지 설치가 완료 됐으면 다시 make를 해보자</li>
</ul><pre style="border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; overflow: auto;"><code class="bash hljs" data-origin="<pre><code class="bash">[root@dbserver vsftpd-3.0.2]# make
gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o tunables.o ftpdataio.o secbuf.o ls.o postprivparent.o logging.o str.o netstr.o sysstr.o strlist.o banner.o filestr.o parseconf.o secutil.o ascii.o oneprocess.o twoprocess.o privops.o standalone.o hash.o tcpwrap.o ipaddrparse.o access.o features.o readwrite.o opts.o ssl.o sslslave.o ptracesandbox.o ftppolicy.o sysutil.o sysdeputil.o seccompsandbox.o -Wl,-s -fPIE -pie -Wl,-z,relro -Wl,-z,now `./vsf_findlibs.sh`
</code></pre>" style="display: block;border: 1px solid rgb(204, 204, 204); white-space: pre; padding: 0.5em; margin: 0px;border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;font-size: 0.9em; font-family: Consolas, Inconsolata, Courier, monospace;display: block; overflow-x: auto; padding: 0.5em; background-color: white; color: black; background-position: initial initial; background-repeat: initial initial;">[root@dbserver vsftpd-<span class="hljs-number">3.0</span>.<span class="hljs-number">2</span>]<span class="hljs-comment" style="color: rgb(204, 204, 204);"># make</span>
gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o tunables.o ftpdataio.o secbuf.o ls.o postprivparent.o logging.o str.o netstr.o sysstr.o strlist.o banner.o filestr.o parseconf.o secutil.o ascii.o oneprocess.o twoprocess.o privops.o standalone.o hash.o tcpwrap.o ipaddrparse.o access.o features.o readwrite.o opts.o ssl.o sslslave.o ptracesandbox.o ftppolicy.o sysutil.o sysdeputil.o seccompsandbox.o -Wl,<span class="hljs-operator">-s</span> <span class="hljs-operator">-f</span>PIE -pie -Wl,-z,relro -Wl,-z,now `./vsf_findlibs.sh`
</code></pre><ul>
<li style="display: list-item; line-height: 1.4em;">정상적으로 에러없이 설치가 잘 된다.</li>
</ul><pre style="border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; overflow: auto;"><code class="bash hljs" data-origin="<pre><code class="bash">[root@dbserver vsftpd-3.0.2]# make install
if [ -x /usr/local/sbin ]; then \
install -m 755 vsftpd /usr/local/sbin/vsftpd; \
else \
install -m 755 vsftpd /usr/sbin/vsftpd; fi
if [ -x /usr/local/man ]; then \
install -m 644 vsftpd.8 /usr/local/man/man8/vsftpd.8; \
install -m 644 vsftpd.conf.5 /usr/local/man/man5/vsftpd.conf.5; \
elif [ -x /usr/share/man ]; then \
install -m 644 vsftpd.8 /usr/share/man/man8/vsftpd.8; \
install -m 644 vsftpd.conf.5 /usr/share/man/man5/vsftpd.conf.5; \
else \
install -m 644 vsftpd.8 /usr/man/man8/vsftpd.8; \
install -m 644 vsftpd.conf.5 /usr/man/man5/vsftpd.conf.5; fi
if [ -x /etc/xinetd.d ]; then \
install -m 644 xinetd.d/vsftpd /etc/xinetd.d/vsftpd; fi
[root@dbserver vsftpd-3.0.2]#
[root@dbserver vsftpd-3.0.2]#
```* 컴파일할 때 make가 안되면 커널버전이 달라서 안될수도 있다.
*libcap-devel을 yum으로 받아설치하거나 rpm으로 받아 설치하면 된다.
```bash
[root@dbserver vsftpd-3.0.2]# yum install libcap-devel -y
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--&gt; Running transaction check
---&gt; Package libcap-devel.x86_64 0:2.16-5.5.el6 will be installed
--&gt; Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
libcap-devel x86_64 2.16-5.5.el6 public_ol6_latest 24 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 24 k
Installed size: 15 k
Downloading Packages:
libcap-devel-2.16-5.5.el6.x86_64.rpm | 24 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libcap-devel-2.16-5.5.el6.x86_64 1/1
Verifying : libcap-devel-2.16-5.5.el6.x86_64 1/1
Installed:
libcap-devel.x86_64 0:2.16-5.5.el6
Complete!
[root@dbserver vsftpd-3.0.2]#
</code></pre>" style="display: block;border: 1px solid rgb(204, 204, 204); white-space: pre; padding: 0.5em; margin: 0px;border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;font-size: 0.9em; font-family: Consolas, Inconsolata, Courier, monospace;display: block; overflow-x: auto; padding: 0.5em; background-color: white; color: black; background-position: initial initial; background-repeat: initial initial;">[root@dbserver vsftpd-<span class="hljs-number">3.0</span>.<span class="hljs-number">2</span>]<span class="hljs-comment" style="color: rgb(204, 204, 204);"># make install</span>
<span class="hljs-keyword" style="font-weight: bold;">if</span> [ -x /usr/local/sbin ]; <span class="hljs-keyword" style="font-weight: bold;">then</span> \
install -m <span class="hljs-number">755</span> vsftpd /usr/local/sbin/vsftpd; \
<span class="hljs-keyword" style="font-weight: bold;">else</span> \
install -m <span class="hljs-number">755</span> vsftpd /usr/sbin/vsftpd; <span class="hljs-keyword" style="font-weight: bold;">fi</span>
<span class="hljs-keyword" style="font-weight: bold;">if</span> [ -x /usr/local/man ]; <span class="hljs-keyword" style="font-weight: bold;">then</span> \
install -m <span class="hljs-number">644</span> vsftpd.<span class="hljs-number">8</span> /usr/local/man/man8/vsftpd.<span class="hljs-number">8</span>; \
install -m <span class="hljs-number">644</span> vsftpd.conf.<span class="hljs-number">5</span> /usr/local/man/man5/vsftpd.conf.<span class="hljs-number">5</span>; \
<span class="hljs-keyword" style="font-weight: bold;">elif</span> [ -x /usr/share/man ]; <span class="hljs-keyword" style="font-weight: bold;">then</span> \
install -m <span class="hljs-number">644</span> vsftpd.<span class="hljs-number">8</span> /usr/share/man/man8/vsftpd.<span class="hljs-number">8</span>; \
install -m <span class="hljs-number">644</span> vsftpd.conf.<span class="hljs-number">5</span> /usr/share/man/man5/vsftpd.conf.<span class="hljs-number">5</span>; \
<span class="hljs-keyword" style="font-weight: bold;">else</span> \
install -m <span class="hljs-number">644</span> vsftpd.<span class="hljs-number">8</span> /usr/man/man8/vsftpd.<span class="hljs-number">8</span>; \
install -m <span class="hljs-number">644</span> vsftpd.conf.<span class="hljs-number">5</span> /usr/man/man5/vsftpd.conf.<span class="hljs-number">5</span>; <span class="hljs-keyword" style="font-weight: bold;">fi</span>
<span class="hljs-keyword" style="font-weight: bold;">if</span> [ -x /etc/xinetd.d ]; <span class="hljs-keyword" style="font-weight: bold;">then</span> \
install -m <span class="hljs-number">644</span> xinetd.d/vsftpd /etc/xinetd.d/vsftpd; <span class="hljs-keyword" style="font-weight: bold;">fi</span>
[root@dbserver vsftpd-<span class="hljs-number">3.0</span>.<span class="hljs-number">2</span>]<span class="hljs-comment" style="color: rgb(204, 204, 204);">#</span>
[root@dbserver vsftpd-<span class="hljs-number">3.0</span>.<span class="hljs-number">2</span>]<span class="hljs-comment" style="color: rgb(204, 204, 204);">#</span>
```* 컴파일할 때 make가 안되면 커널버전이 달라서 안될수도 있다.
*libcap-devel을 yum으로 받아설치하거나 rpm으로 받아 설치하면 된다.
```bash
[root@dbserver vsftpd-<span class="hljs-number">3.0</span>.<span class="hljs-number">2</span>]<span class="hljs-comment" style="color: rgb(204, 204, 204);"># yum install libcap-devel -y</span>
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libcap-devel.x86_64 <span class="hljs-number">0</span>:<span class="hljs-number">2.16</span>-<span class="hljs-number">5.5</span>.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
libcap-devel x86_64 <span class="hljs-number">2.16</span>-<span class="hljs-number">5.5</span>.el6 public_ol6_latest <span class="hljs-number">24</span> k
Transaction Summary
================================================================================
Install <span class="hljs-number">1</span> Package(s)
Total download size: <span class="hljs-number">24</span> k
Installed size: <span class="hljs-number">15</span> k
Downloading Packages:
libcap-devel-<span class="hljs-number">2.16</span>-<span class="hljs-number">5.5</span>.el6.x86_64.rpm | <span class="hljs-number">24</span> kB <span class="hljs-number">00</span>:<span class="hljs-number">00</span>
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libcap-devel-<span class="hljs-number">2.16</span>-<span class="hljs-number">5.5</span>.el6.x86_64 <span class="hljs-number">1</span>/<span class="hljs-number">1</span>
Verifying : libcap-devel-<span class="hljs-number">2.16</span>-<span class="hljs-number">5.5</span>.el6.x86_64 <span class="hljs-number">1</span>/<span class="hljs-number">1</span>
Installed:
libcap-devel.x86_64 <span class="hljs-number">0</span>:<span class="hljs-number">2.16</span>-<span class="hljs-number">5.5</span>.el6
Complete!
[root@dbserver vsftpd-<span class="hljs-number">3.0</span>.<span class="hljs-number">2</span>]<span class="hljs-comment" style="color: rgb(204, 204, 204);">#</span>
</code></pre><ul>
<li style="display: list-item; line-height: 1.4em;">위와같이 패키지 설치가 완료 됐으면 다시 make를 해보자</li>
</ul><pre style="border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; overflow: auto;"><code class="bash hljs" data-origin="<pre><code class="bash">[root@dbserver vsftpd-3.0.2]# make
gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o tunables.o ftpdataio.o secbuf.o ls.o postprivparent.o logging.o str.o netstr.o sysstr.o strlist.o banner.o filestr.o parseconf.o secutil.o ascii.o oneprocess.o twoprocess.o privops.o standalone.o hash.o tcpwrap.o ipaddrparse.o access.o features.o readwrite.o opts.o ssl.o sslslave.o ptracesandbox.o ftppolicy.o sysutil.o sysdeputil.o seccompsandbox.o -Wl,-s -fPIE -pie -Wl,-z,relro -Wl,-z,now `./vsf_findlibs.sh`
</code></pre>" style="display: block;border: 1px solid rgb(204, 204, 204); white-space: pre; padding: 0.5em; margin: 0px;border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;font-size: 0.9em; font-family: Consolas, Inconsolata, Courier, monospace;display: block; overflow-x: auto; padding: 0.5em; background-color: white; color: black; background-position: initial initial; background-repeat: initial initial;">[root@dbserver vsftpd-<span class="hljs-number">3.0</span>.<span class="hljs-number">2</span>]<span class="hljs-comment" style="color: rgb(204, 204, 204);"># make</span>
gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o tunables.o ftpdataio.o secbuf.o ls.o postprivparent.o logging.o str.o netstr.o sysstr.o strlist.o banner.o filestr.o parseconf.o secutil.o ascii.o oneprocess.o twoprocess.o privops.o standalone.o hash.o tcpwrap.o ipaddrparse.o access.o features.o readwrite.o opts.o ssl.o sslslave.o ptracesandbox.o ftppolicy.o sysutil.o sysdeputil.o seccompsandbox.o -Wl,<span class="hljs-operator">-s</span> <span class="hljs-operator">-f</span>PIE -pie -Wl,-z,relro -Wl,-z,now `./vsf_findlibs.sh`
</code></pre><ul>
<li style="display: list-item; line-height: 1.4em;">정상적으로 에러없이 설치가 잘 된다.</li>
</ul><pre style="border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; overflow: auto;"><code class="bash hljs" data-origin="<pre><code class="bash">[root@dbserver vsftpd-3.0.2]# make install
if [ -x /usr/local/sbin ]; then \
install -m 755 vsftpd /usr/local/sbin/vsftpd; \
else \
install -m 755 vsftpd /usr/sbin/vsftpd; fi
if [ -x /usr/local/man ]; then \
install -m 644 vsftpd.8 /usr/local/man/man8/vsftpd.8; \
install -m 644 vsftpd.conf.5 /usr/local/man/man5/vsftpd.conf.5; \
elif [ -x /usr/share/man ]; then \
install -m 644 vsftpd.8 /usr/share/man/man8/vsftpd.8; \
install -m 644 vsftpd.conf.5 /usr/share/man/man5/vsftpd.conf.5; \
else \
install -m 644 vsftpd.8 /usr/man/man8/vsftpd.8; \
install -m 644 vsftpd.conf.5 /usr/man/man5/vsftpd.conf.5; fi
if [ -x /etc/xinetd.d ]; then \
install -m 644 xinetd.d/vsftpd /etc/xinetd.d/vsftpd; fi
[root@dbserver vsftpd-3.0.2]#
[root@dbserver vsftpd-3.0.2]#
</code></pre>" style="display: block;border: 1px solid rgb(204, 204, 204); white-space: pre; padding: 0.5em; margin: 0px;border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;font-size: 0.9em; font-family: Consolas, Inconsolata, Courier, monospace;display: block; overflow-x: auto; padding: 0.5em; background-color: white; color: black; background-position: initial initial; background-repeat: initial initial;">[root@dbserver vsftpd-<span class="hljs-number">3.0</span>.<span class="hljs-number">2</span>]<span class="hljs-comment" style="color: rgb(204, 204, 204);"># make install</span>
<span class="hljs-keyword" style="font-weight: bold;">if</span> [ -x /usr/local/sbin ]; <span class="hljs-keyword" style="font-weight: bold;">then</span> \
install -m <span class="hljs-number">755</span> vsftpd /usr/local/sbin/vsftpd; \
<span class="hljs-keyword" style="font-weight: bold;">else</span> \
install -m <span class="hljs-number">755</span> vsftpd /usr/sbin/vsftpd; <span class="hljs-keyword" style="font-weight: bold;">fi</span>
<span class="hljs-keyword" style="font-weight: bold;">if</span> [ -x /usr/local/man ]; <span class="hljs-keyword" style="font-weight: bold;">then</span> \
install -m <span class="hljs-number">644</span> vsftpd.<span class="hljs-number">8</span> /usr/local/man/man8/vsftpd.<span class="hljs-number">8</span>; \
install -m <span class="hljs-number">644</span> vsftpd.conf.<span class="hljs-number">5</span> /usr/local/man/man5/vsftpd.conf.<span class="hljs-number">5</span>; \
<span class="hljs-keyword" style="font-weight: bold;">elif</span> [ -x /usr/share/man ]; <span class="hljs-keyword" style="font-weight: bold;">then</span> \
install -m <span class="hljs-number">644</span> vsftpd.<span class="hljs-number">8</span> /usr/share/man/man8/vsftpd.<span class="hljs-number">8</span>; \
install -m <span class="hljs-number">644</span> vsftpd.conf.<span class="hljs-number">5</span> /usr/share/man/man5/vsftpd.conf.<span class="hljs-number">5</span>; \
<span class="hljs-keyword" style="font-weight: bold;">else</span> \
install -m <span class="hljs-number">644</span> vsftpd.<span class="hljs-number">8</span> /usr/man/man8/vsftpd.<span class="hljs-number">8</span>; \
install -m <span class="hljs-number">644</span> vsftpd.conf.<span class="hljs-number">5</span> /usr/man/man5/vsftpd.conf.<span class="hljs-number">5</span>; <span class="hljs-keyword" style="font-weight: bold;">fi</span>
<span class="hljs-keyword" style="font-weight: bold;">if</span> [ -x /etc/xinetd.d ]; <span class="hljs-keyword" style="font-weight: bold;">then</span> \
install -m <span class="hljs-number">644</span> xinetd.d/vsftpd /etc/xinetd.d/vsftpd; <span class="hljs-keyword" style="font-weight: bold;">fi</span>
[root@dbserver vsftpd-<span class="hljs-number">3.0</span>.<span class="hljs-number">2</span>]<span class="hljs-comment" style="color: rgb(204, 204, 204);">#</span>
[root@dbserver vsftpd-<span class="hljs-number">3.0</span>.<span class="hljs-number">2</span>]<span class="hljs-comment" style="color: rgb(204, 204, 204);">#</span>
</code></pre></div>
'Linux' 카테고리의 다른 글
DNS 서버구축 (0) | 2014.10.31 |
---|---|
linux,unix에 vi editor 구문강조 (0) | 2014.10.31 |
FTP Server 구축 (0) | 2014.10.31 |
Mail Server 구축 (0) | 2014.10.31 |
APM server 구축 (0) | 2014.10.31 |
'Linux' 카테고리의 다른 글
linux,unix에 vi editor 구문강조 (0) | 2014.10.31 |
---|---|
make install 안될 때 해결법 (0) | 2014.10.31 |
Mail Server 구축 (0) | 2014.10.31 |
APM server 구축 (0) | 2014.10.31 |
Linux의 네크워크 설정 (0) | 2014.09.03 |
'Linux' 카테고리의 다른 글
linux,unix에 vi editor 구문강조 (0) | 2014.10.31 |
---|---|
make install 안될 때 해결법 (0) | 2014.10.31 |
FTP Server 구축 (0) | 2014.10.31 |
APM server 구축 (0) | 2014.10.31 |
Linux의 네크워크 설정 (0) | 2014.09.03 |
'Linux' 카테고리의 다른 글
linux,unix에 vi editor 구문강조 (0) | 2014.10.31 |
---|---|
make install 안될 때 해결법 (0) | 2014.10.31 |
FTP Server 구축 (0) | 2014.10.31 |
Mail Server 구축 (0) | 2014.10.31 |
Linux의 네크워크 설정 (0) | 2014.09.03 |
Linux의 네트워크 설정
네트워크 설정 방법은 네트워크 설정 툴인 콘솔에서 실행 가능한 netconfig와 setup 그리고 xwindow에서 실행가능한system-config-network라는 툴이 있다. 여기서 변경한 내용은 /etc/sysconfig/network-scripts 디렉토리의 ifcfg-eth0 파일에 설정내용을 저장하게 된다.
1. 장치명 확인
부팅시 출력한 메시지를 저장하고 있으므로 dmesg 명령어를 이용하여 하드웨어 리소스 이름을 알 수 있다.
#dmesg | grep eth : 메시지 중 랜카드에 대한 메시지 출력
2. 자동으로 ip주소 받기
/etc/sysconfig/network-scripts 디렉토리의 ifcfg-eth0 파일에 ip주소, netmask, gateway설정을 하면 된다.
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=<장치명>
BOOTPROTO= dhcp
ONBOOT = yes
TYPE : Ethernet
3. 수동으로 ip주소 지정
DEVICE=<장치명>
BOOTPROTO=static
ONBOOT = yes
TYPE : Ethernet
/etc/sysconfig/network-scrypts/ifcfg-eth0파일은 부팅시에 네트워크 데몬이 읽고 자동실행을 하여 자동 설정이 되도록 하기위해서 설정하는것이다.
4. DNS(네임서버) 주소 설정
#vi /etc/resolv.conf
nameserver <DNS주소1>
nameserver <DNS주소2>
또는
#vi /etc/sysconfig/network
DNS1=<DNS주소1>
DNS2=<DNS주소2>
#service network restart
만약 host가 없다는 오류 메시지가 나오면 위 두 파일을 확인해야 한다.
5. 호스트네임지정
#vi /etc/sysconfig/network
HOSTNAME=Linux.com
#service network restart
#hostname
#vi /etc/hosts
<아이피주소> <포스트이름>
#hostname
* 프롬프트에 적용시키기 위해서는 로그아웃을 한 후 로그인을 하면 적용이 된다.
NIC(Network Interface Card, LANcard)
#ifconfig : ip 확인
#ifconfig eth0 down : eyh0 비활성화
#ifconfig
#ifconfig eth0 up : 비활성화된 eth0활성화
네트워크 서비스를 재 시작 하지 않은 상태에서 네트워크 설정하기
#ifconfig echo <아이피주소> 또는 #ifconfig echo <아이피주소> up
route
게이트웨이가 등록되지 않아 생긴 오류
#route add default gw <아이피주소>
순차적으로 네트워크 연결이 끊어지므로 한번에 실행
#ifconfig echo <아이피주소> up && route add default gw <아이피주소>
'Linux' 카테고리의 다른 글
linux,unix에 vi editor 구문강조 (0) | 2014.10.31 |
---|---|
make install 안될 때 해결법 (0) | 2014.10.31 |
FTP Server 구축 (0) | 2014.10.31 |
Mail Server 구축 (0) | 2014.10.31 |
APM server 구축 (0) | 2014.10.31 |