dbsa@dbsa-X406UA:~$ ssh root@172.16.9.99
root@172.16.9.99's password:Last login: Wed Sep 30 16:29:14 2020 from 172.17.10.182
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
50G 3,3G 44G 7% /
tmpfs 938M 0 938M 0% /dev/shm
/dev/md126p1 477M 49M 403M 11% /boot
/dev/mapper/VolGroup-lv_home
864G 22G 798G 3% /home
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-754.33.1.el6.x86_64 #1 SMP Tue Aug 25 15:29:40 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# cat /etc/cpu info
cat: /etc/cpu: No such file or directory
cat: info: No such file or directory
[root@localhost ~]# cat /etc/cpuinfo
cat: /etc/cpuinfo: No such file or directory
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
50G 3,3G 44G 7% /
tmpfs 938M 0 938M 0% /dev/shm
/dev/md126p1 477M 49M 403M 11% /boot
/dev/mapper/VolGroup-lv_home
864G 22G 798G 3% /home
[root@localhost ~]# history
1 df -h
2 lsblk
3 cd /etc/sysconfig/network-scripts/
4 ping 172.17.10.1
5 ifconfig
6 ls
7 vi ifcfg-eth1
8 poweroff
9 yum-update
10 yum update
11 rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
12 rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
13 yum --enablerepo=remi,epel install httpd
14 yum --enablerepo=remi,epel install mysql-server
15 service mysqld start
16 /usr/bin/mysql_secure_installation
17 passwd
18 /usr/bin/mysql_secure_installation
19 yum --enablerepo=remi,epel install php php-mysql php-mcrypt php-curl php-gd php-xml php-dom php-mbstring
20 cd /var/www/html/
21 wget https://download.owncloud.org/community/owncloud-10.4.0.tar.bz2
22 yum install wget
23 wget https://download.owncloud.org/community/owncloud-10.4.0.tar.bz2
24 tar xjf owncloud-10.4.0.tar.bz2
25 ls
26 chown -R apache.apache owncloud
27 mkdir /home/owncloud
28 chown -R apache.apache /home/owncloud
29 chmod -R 755 owncloud
30 chmod -R 755 /home/owncloud
31 mysql -u root -p
32 semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/data'
33 restorecon '/var/www/html/owncloud/data'
34 semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/data'
35 firewall-cmd --permanent --add-service=http
36 firewall-cmd --reload
37 firewall -cmd --reload
38 iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
39 iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
40 service iptables save
41 sestatus
42 echo 0 > /selinux/enforce
43 vi /etc/sysconfig/selinux
44 sestatus
45 setenforce 0
46 setenforce Permissive
47 sestatus
48 SELINUX=disabled
49 sestatus
50 service iptables stop
51 chkconfig httpd on
52 service httpd start
53 service httpd status
54 wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
55 wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm
56 rpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm
57 rhn-channel --add --channel=rhel-$(uname -i)-server-optional-6
58 wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
59 wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm
60 rpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm
61 yum install yum-utils
62 yum-config-manager --enable remi-php72
63 yum update -y
64 php -v
65 reboot
66 php -v
67 service httpd status
68 service iptables status
69 service iptables stop
70 yum-config-manager --disable remi-php54
71 yum install php php-mbstring php-gd php-mcrypt php-pear php-pspell php-pdo php-xml php-mysqlnd php-process php-pecl-zip php-xml php-intl php-zip php-zlib
72 yum install php-zip
73 service httpd restart
74 service mysql status
75 service mysqld status
76 service mysqld start
77 systemctl enable mysqld
78 chkconfig httpd on
79 chkconfig mysqld on
80 vi /etc/httpd/conf.d/welcome.conf
81 cd /etc/httpd/conf.d
82 ls
83 vi cloudyomart.yogyagroup.com.conf
84 service httpd restart
85 vi /var/www/html/owncloud/config/config.php
86 service iptables save
87 /etc/init.d/iptables save
88 /etc/init.d/iptables stop
89 chkconfig iptables off
90 reboot
91 vi /etc/sysconfig/network-scripts/ifcfg-eth0
92 vi /etc/sysconfig/network-scripts/ifcfg-eth1
93 exit
94 service iptables status
95 yum -y install rsync
96 exit
97 df -h
98 uname -a
Tidak ada komentar:
Posting Komentar