Вы находитесь на странице: 1из 4

[root@classroom ~]# cat .

bash_history
df -h
umount /dev/sr0
mkdir /rhel7-repo/
mount /dev/sr0 /rhel7-repo/
cd /rhel7-repo/
ll
cd /etc/yum.repos.d/
vi local-rhel7.repo
yum clean all
yum repolist
yum -y install httpd
yum -y remove httpd
yum -y install httpd
cd /var/www/html
ll
mkdir -p /rhel7.0/x86_64/errata/Packages
df -h
cd /rhel7-repo
ll
cd /rhel7.0/x86_64/errata/
ll
rmdir Packages/
cd -
ll
pwd
cp -arv /rhel7-repo/* /rhel7.0/x86_64/errata/
cd /var/www/html/
ll
ln -s /var/www/html /rhel7.0/x86_64/errata/
systemctl restart httpd
cd /var/www/html
ll
ln -s /rhel7.0/x86_64/errata/ /var/www/html
ll
firewall-cmd --permanent --add-service=httpd
firewall-cmd --reload
firewall-cmd --permanent --add-service=http
firewall-cmd --reloadfirewall-cmd --permanent --add-service=http
firewall-cmd --reload
firewall-cmd --permanent --add-service=http
firewall-cmd --reload
vi /etc/sysctl.conf
sysctl -p
useradd saara
crontab -eu saara
systemctl restart crond.service
systemctl enabled crond.service
systemctl restart crond.service
systemctl enabled crond.service
crontab -lu saara
yum -y install ntp.x86-64
vi /etc/ntp.conf
timedatectl
systemctl restart ntpd.service
systemctl enable ntpd.service
timedatectl
useradd -u 2017 deal
id deal
useradd natasha
vim /etc/cron.deny
su - natasha
vim /etc/cron.deny
su - natasha
ls -l /root/local.tar.gz
tar -zcvf /root/local.tar.gz /var
ls -l /root/local.tar.gz
init 0
pwd
cd /var/www/html
ll
rm errata
ll
pwd
ln -s content ../../../rhel7.0/x86_64/errata
cd content
ls -ltr
ln -s ../../../rhel7.0/x86_64/errata conent
ll
cd content
cd ../../../rhel7.0/x86_64/errata
ll
rm content
ll
rm -rf html
ll
systemctl restart httpd
pwd
df -h
cd /rhel7
cd /rhel7.0/
ll
cd x86_64/
ll
cd errata/
ll
pwd
firewall-cmd --list-service
cd
cd -
cd /var/www/html
vim mist.html
cd /etc/httpd/conf
ll
vi httpd.conf
systemctl -restart httpd
systemctl restart httpd
pwd
cd ..
ll
cd /var/www/html
ll
vi /etc/selinux/
cd /etc/selinux/
ll
vi config
init 6
iptables -L
iptables -F
systemctl disable iptables
systemctl stop iptables
getenforce
systemctl status httpd.service
cd /rhel7.0/x86_64/errata/
du -sh Packages/
cd /var/www/html/
lsd
ls
cd errata/
ls
cd ..
ls
rm -rf *
ls
cd
cd /rhel7.0/x86_64/errata/
ls
cp Packages/ /var/www/html/
cp -rvf Packages/ /var/www/html/
vi /etc/hosts
df -h
cd /rhel7
cd /rhel7-repo/
ll
cd ../rhel7.0/
ls -ltr
cd x86_64/
ll
cd errata
ll
you can hear me ?
yes
how to create http://content.example.com/rhel7.0/x86_64/dvd
it sasy your call is on hold
ls
rpm -q craterepo
rpm -q createrepo
pwd
createrepo -v /rhel7.0/x86_64/errata
cd
cd /etc/yum.repos.d/
ls
cat local-rhel7.repo
cat redhat.repo
rm -f redhat.repo
vim local-rhel7.repo
yum clean all
yum update
yum install httpd -y
ln -s /rhel7.0/x86_64/errata /var/www/html/
firewall-cmd --list-services
systemctl status httpd
systemctl restart httpd.service
yum install finger -y
ifconfig -a
ssh 192.168.1.51
systemctl restart httpd
[root@classroom ~]#

Вам также может понравиться