티스토리 뷰
centos]
vi /etc/sysconfig/network-scripts/ifcfg-ens33
%%%%
TYPE=Ethernet
OTPROTO=static
NAME=ens33
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.10.100
GATEWAY=192.168.10.254
NETMASK=255.255.255.0
NETWORK=192.168.10.0
BROADCAST=192.168.10.255
DNS1=168.126.63.1
DNS2=8.8.8.8
%%%%
systemctl restart network
ifconfig
cd /temp
su
yum -y install httpd
systemctl start httpd.service
systemctl enable httpd.service
yum -y install vsftpd
systemctl start vsftpd.service
systemctl enable vsftpd.service
vi /etc/vsftpd/vsftpd.conf
#해제 anon
systemctl restart vsftpd.service
cd /var/ftp에
pub폴더 생성 후
chmod 777 pub
하고
vi /etc/sysconfig/selinux
->disabled
init6로 재시작
방화벽 설정 : firewall-config
runtime, permanent 모두 ftp http https 클릭
-----------
win701]
알드라이브에서
192.168.10.100
익명로그인
하면 pub폴더가 보인다!!
pub폴더안에
boa.jpg
boa_valenti.mp4
넣고
--------------
centos]
cp boa.jpg boa_valenti.mp4 /var/www/html/
cd /var/www 에서
chmod 755 html
cd /var/www/html
chmod 755 boa*
vi index.html
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
<html>
<head>
<title>한국정보교육원</title>
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p><span style="font-size:40pt;"><marquee style="left:">방가 방가 ^.^ 우리는 클라우트컴퓨팅 603호랍니다.~</marquee></span></p>
<p><img src="boa.jpg" width="851" height="229" border="0"></p>
<video oncontextmenu="return false;" id="myVideo" width="640" controls autoplay>
<source src="boa_valenti.mp4" type="video/mp4">
</video>
</body>
</html>
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
systemctl restart httpd
-----------
win701]
인터넷에서
http://192.168.10.100/
검색하면 서버접속됨.
필요파일
'리눅스' 카테고리의 다른 글
[Linux]리눅스 telnet, smb(윈도우SERVER) (0) | 2023.04.05 |
---|---|
[Linux]리눅스 dns서버 (0) | 2023.04.04 |
aewrgewrq (0) | 2023.03.28 |
[Linux]기초명령어2 - 2023/03/23 (0) | 2023.03.24 |
[Linux]기초 명령어1 -2023/03/22 (0) | 2023.03.22 |