본문 바로가기

IT To do and To was

22년 2월 23일_리눅스 마지막, 웹 디자인 기능사 실기 기초

728x90
반응형

수요일[아직 수요일이네.. java를 할꺼면 프레임 워크 공부를 해야할텐데..정처기까지 따고 고민을 해도괜찮을까]

1. 리눅스 오늘 수업 내용 정리

service
systemctl -t service
                target
systemctl set-default multuser.target
systemctl set-default graphicaluser.target
systemctl start 서비스명
systemctl stop
systemctl status
systemctl retart
atp서버 교체
메이플서버로 들어옴
ssh haryul@10.0.2.41
패킷설치
sudo apt install vsftpd
설치파일
sudo vi /etc/vsftpd.conf
25번 yes로
그아래 배너 생성함
banner_file=/srv/ftp/welcome.msg
32번 해제
41번 해제
45번 해제
슈퍼유저로 전환
sudo -i
최상위 파일로 감
cd /srv/ftp/
파일 만들음
touch welcom.msg
vi welcom.msg
퍼블릭 디렉토리 생성
mkdir pub
권한 해제
chmod 777 pub
cd pub
샘플파일하나 카피
cp /boot/vmlinuz-5.<tab>*2
리부트
cd
서비스 재시작
sudo systemctl restart xrdp.service

mysql설치
sudo install mysql-server
들어오기
sudo mysql
보기
sudo databases;
user만들기
create user 'koko'@''%' dientifide by '1234';
mysql 
create database bulletin;

grant all privileges on bulletin.* to 'koko'@'%';
show grants for 'koko'@'%';

mysql -u koko -p

show databases;
use bulletion;
show tables;

CREATE TABLE `user


insert into `user` values(1, '  홍길동', 'developer');
insert into `user` values(2, '이미나', 'database administrator');
insert into `user` values(3, '고상원' 'data scientist, developer');
insert into `user` values(4, '최원술', 'bigdata engineer, developer');


sudo -i
cd /var/www/
ls
cd html
ls
mv index.html index.html.org
ls
vi index.html

<html>
<head>
</head>
<body>
  <h1> hello </h1>
<h2> hello323 </h2>
</body>
</html>
systemctl restart vsftpd.service
상태 확인
systmctl status vsftpd.service
오렌지로 빠져나오기
설정한거 확인 
ftp 10.0.2.41
파일 업로드 및 다운로드 가능
bin
get 파일이

history 
! ssh 하면 진입됨
address확인
netstat -atn
21 - ftp
22 -ssh
23 - telnet
80 - apache
//maple
sudo apt install xrdp
sudo adduser xrdp ssl-cert

sudo vi /etc/xrdp/startwm.sh
32,33에
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR

 

2. 웹디자인 기능사 오늘 필기 내용 정리

실전편 1

행과 열을 잘 알기

<!DOCTYPE html>
<html lang="ko">
    <head>
    <meta charset="UTF-8">
    <title>박하률</title>
        <link rel="stylesheet" href="css/common.css">
        <script src="js/jquery-3.3.1.min.js"></script>
        <script src="js/common.js"></script>
    </head>
    <body>
<div class="header">
    <h1>로고</h1>
    <div class="gnb">메뉴</div>
</div>
<div class="main"></div>
<div class="contents">
    <div class ="notice">공지사항</div>
    <div class ="gallery">갤러리</div>
    <div class ="banner">배너</div>
</div>
<div class="footer">
    <h1>로고</h1>
    <p class="copy">
        카피라이트
    </p>
    <div class="family">패밀리사이트</div>
</div>
    </body>
</html><!--ctrl + shfit +/-->
*{padding : 0; margin: 0;}

.header{
    width: 1200px; height: 100px; margin: 0 auto;
    
}
.main{
    width: 1200px; height: 300px; margin: 0 auto;
    background-color: firebrick;
    
}
.contents{
    width: 1200px; height: 200px; margin: 0 auto;
    
}
.footer{
    width: 1200px; height: 200px; margin: 0 auto;
    
}
h1{
    float: left; width: 200px; height: 100px;
    background-color: azure;
}
.gnb{
    float: left; width: 1000px; height: 100px;
    background-color: antiquewhite;
}
.notice, .gallery, .banner{
    float: left; width: 400px; height: 300px;
}
.notice{background-color: aquamarine;}
.gallery{background-color: bisque;}
.banner{background-color: cadetblue;}

.copy{
    float: left; width: 800px; height: 100px;
    background-color: cadetblue;
}
.family{
    float: left; width: 200px; height: 100px;
    background-color: cyan;
}

 

//yesterday wished to today list

. 걸러서 말하기 ✔😥

. 웹디 수강 ✔

. 거북이 모양 만들기 ✔

 

tomorrow wish list

 

.웹디자인 영역 적은 블로그 기재하기

. 하둡 재미 느끼기

728x90
반응형