[Linux]디스크 속도 측정 I/O
·
Linux
[root@mark ~]# dd if=/dev/zero bs=1M count=1024 of=write_1GB_test 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB) copied, 0.371248 s, 2.9 GB/s [root@mark ~]# rm -rf write_1GB_test
[Linux]NAS NFS설정
·
Linux
1. NAS에서 공유폴더 NFS설정(권한) 2. Linux 콘솔 창에서 마운트 명령 입력(재부팅시 자동 실행) 1) 마운트 할 폴더 생성 Ex) mkdir test 2) 마운트 명령 입력(mount [NAS IP 주소] : [공유 폴더의 마운트 경로] / [NFS 클라이언트 마운트 지점]) Ex) 192.168.10.11:/volume1/share /test 3)마운트 고정 fstab 파일 수정 Ex)vi /etc/fstab(빨간 밑줄 행만 추가) ================================================================ 백업 / 매일 02:00 ## NFS 설정(192.168.40.48 -> 192.168.40.27 MOUNT) ## mount -t nfs -o..
[Linux]용량(MB,GB) 확인
·
Linux
du -sh ./*
[Linux]mount nfs 에러
·
Linux
mount -t nfs 실패 --> mount: wrong fs type, bad option, bad superblock on --> yum search nfs --> yum install nfs-utils mount -t nfs 실패 --> mount.nfs: rpc.statd is not running but is required for remote locking. mount.nfs: Either use '-o nolock' to keep locks local, or start statd. mount.nfs: an incorrect mount option was specified --> yum search portmap --> centos 6.3 에서는 portmap 을 안 쓰는건지 rpcbind ..
[FTP]SecureCrt X/Y/Zmodem
·
Linux
[root@server ~]# sz /disk/data/temp/D43D7E0F1DC6-20170918140715.zip --> 파일다운로드시 # rz - 내 PC에 있는 자료를 서버로 업로드 # sz 파일명 - 지정된 폴더로 다운 ------------------------------------------------ [root@server ~]# yum install lrzsz
[Linux]batch shell(tar,ftp,sftp)
·
Linux
---------------------------------------- * FTP ---------------------------------------- #!/bin/sh HOST=IP명 USER=계정 PASSWORD=패스워드 #folder=$(date +'%Y%m%d') folder_tar=$(date +'%Y%m%d')".tar" cd /var/backup/web/ #tar cvf $folder_tar $folder #backup=$(date +'%Y%m%d')".*" ftp -i -n
리눅스 이더넷 맥 주소 확인
·
Linux
1. ifconfig [root@server ~]# ifconfig -a | grep ^eth 2. IP확인 [root@server ~]# ip link show eth0 3. Mac Address만 확인 [root@server ~]# ifconfig -a | grep ^eth | awk '{print $5}' 출처 - 리눅스 이더넷 맥 주소 확인
[shell] Time format
·
Linux
# 작업날짜폴더 생성 WORKDAY=`date +%Y%m%d` # 한달전 년월 가져오기(YYYYMM) MONTH=`date +%Y%m -d -1months` # 한달전 년 가져오기(YYYYMM) YEAR_YYYY=`date +%Y -d -1months` # 한달전 월 가져오기(YYYYMM) MONTH_MM=`date +%m -d -1months` # 한달전 년월 가져오기(YYYYMM) MONTH_YYYYMM=`date +%Y-%m -d -1months` # 전월 년월 가져오기(YYMM) -- 매월1일 실행 YYMM=` date +%g%m -d -1day` 참고 - http://netssam.tistory.com/11
[MYSQL]DB 튜닝(innodb / my.cnf)
·
Programing
### DB셋팅 / 2016.11.14 # Set the SQL mode to strict sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" # The maximum amount of concurrent sessions the MySQL server will # allow. One of these connections will be reserved for a user with # SUPER privileges to allow the administrator to login even if the # connection limit has been reached. max_connections=1000 # Query cache i..
[MYSQL]LINUX 시작서비스등록
·
Database
[MYSQL_HOME]/support-files/mysql.server cp mysql.server /etc/init.d/mysqld1