LVM = Logical Volumn Manager
systemctl status [서비스명]
systemctl status sshd
systemctl status httpd
yum install -y httpd
echo "BongHyeon Park" > /var/www/html/index.html
systemctl status httpd
curl 127.0.0.1
systemctl start httpd
systemctl status httpd
curl 127.0.0.1
systemctl stop httpd
curl 127.0.0.1
systemctl start httpd
reboot
curl 127.0.0.1
systemctl enable httpd
reboot
curl 127.0.0.1
systemctl disable httpd
vi /etc/httpd/conf/httpd.conf
httpd = 80port 니까
Listen 88으로 바꾸고 restart해보기
rpm -qa | grep httpd
rpm -qa | grep docker
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-23.0.1-1.el7.x86_64.rpm
폐쇄망 처럼 하기위해 연결끊음
rpm -ivh --nodeps --force *.rpm
rpm -qa | grep docker
systemctl status docker
systemctl start docker
docker version
- rpm -e docker-ce-rootless-extras-23.0.1-1.el7.x86_64
rpm -e docker-ce-23.0.1-1.el7.x86_64
rpm -e docker-ce-cli-23.0.1-1.el7.x86_64
rpm -e containerd.io-1.6.4-3.1.el7.x86_64
YUM 패키지 관리(인터넷이 연결되어잇어야함)
yum install -y bash-completion
yum list installed | grep httpd
yum update httpd
yum list installed | grep docker
yum install -y docker
systemctl status docker
systemctl start docker
docker version
yum remove -y docker
yum autoremove -y docker
default via 192.168.0.1 dev enp0s17 proto dhcp metric 100
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
192.168.0.0/21 dev enp0s17 proto kernel scope link src 192.168.0.200 metric 100
ip 를 자동으로 부여받겟다고 BOOTPROTO = "dhcp"가 설정 돼있다.
ip를 dhcp 이용하지 않고 수동으로 세팅할수도 있다.
NetworkManager
systemctl restart network
systemctl status NetworkManager
nmcli connection show
NAME UUID TYPE DEVICE
enp0s3 1c5f7581-e9df-4792-8b9f-447e7b53c4cf ethernet enp0s3
nmcli connection show enp0s3
ip a
auto 를 manual로 바꾸는 작업
nmcli connection modify enp0s3 ipv4.addresses 192.168.56.101/24
nmcli connection modify enp0s3 ipv4.gateway 192.168.56.254
cat /etc/resolv.conf
nmcli connection modify enp0s3 ipv4.dns 8.8.4.4
nmcli connection modify enp0s3 ipv4.method manual
nmcli connection reload
nmcli connection up enp0s3
nmcli connection show enp0s3
gateway, ipv4 addresses 바뀜
cat /etc/sysconfig/network-scripts/ifcfg-enp0s3
nmcli connection delete enp0s3
nmcli connection add type ethernet con-name enp0s3 ifname enp0s3 autoconnect yes
nmcli connection show
nmcli connection show enp0s3
nmtui
-> IPv4 CONFIGURATION 에서 엔터치고 manual로 바꿈
-> Addresses 에서 엔터치고 192.168.56.10/24
-> Gateway로 가서 엔터치고
-> DNS servers 8.8.4.4 로 설정
그다음 맨밑으로 내려가서 ok ㄱㄱ
-> Tab 눌러서 back ㄱㄱ
-> Tab 눌러서 ok ㄱㄱ
┌─┤ NetworkManager TUI ├──┐
│ │
│ Please select an option │
│ │
│ Edit a connection │
│ Activate a connection │
│ Set system hostname │
│ │
│ Quit │
│ │
│ │
│ │
└─────────────────────────┘