df -h


Filesystem               Size  Used Avail Use% Mounted on

/dev/mapper/centos-root   25G  5.2G   19G  22% /

devtmpfs                 484M     0  484M   0% /dev

tmpfs                    496M     0  496M   0% /dev/shm

tmpfs                    496M   57M  440M  12% /run

tmpfs                    496M     0  496M   0% /sys/fs/cgroup

/dev/vda1                477M  148M  301M  33% /boot

tmpfs                    100M     0  100M   0% /run/user/0


size: 디스크 크기

used: 사용중인 용량

avail: 사용가능한 용량

use: 남은용량 퍼센트

'CentOS7' 카테고리의 다른 글

가상호스팅 생성  (0) 2020.04.08
리눅스 명령어  (0) 2020.03.29
1. vi /etc/httpd/conf/vhost.conf

2. 
<VirtualHost *:80>
#       ServerAdmin webmaster@dummy-host.example.com
        DocumentRoot /home/rcp
        ServerName hongslab01.cafe24.com
        ServerAlias rcp.hongslab.shop
#       ErrorLog logs/dummy-host.example.com-error_log
#       CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
:wq 저장


3. mkdir /home/test   (DocumentRoot 경로 생성)
4. chmod -R 755 test   (읽기 쓰기 권한 부여)
5. systemctl restart httpd

6. .htaccess 파일만들기
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteCond $1 !^(index\.php|images|captcha|data|include|uploads|robots\.txt)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>


'CentOS7' 카테고리의 다른 글

centos7 남은용량 확인  (0) 2020.04.14
리눅스 명령어  (0) 2020.03.29

- 서버접속하기

ssh root@ipaddress


- 상위폴더로

cd ..


- 폴더이동

cd home



- 폴더내용을 복사

cp -R mvp/* hottalk


-폴더삭제

rm -r /home/hottalk/user_guide


-아파치재시작

systemctl restart httpd


-아파치설정

vi /etc/httpd/conf/httpd.conf


-가상호스팅설정

vi /etc/httpd/conf/vhost.conf


-퍼미션설정

chmod -R 777 test


-가상호스팅 설정

https://aeac.tistory.com/23?category=639116


-마지막 리부팅 시간보기

who -b


-사용자 로그인 로그 보기

last -x



'CentOS7' 카테고리의 다른 글

centos7 남은용량 확인  (0) 2020.04.14
가상호스팅 생성  (0) 2020.04.08

+ Recent posts