Linux/centos2019. 2. 22. 16:03

흐음.. git으로 변환해주어야 하려나? 고민중..


[링크 : https://blog.hanumoka.net/2018/04/30/centOs-20180430-centos-install-subversion/]

[링크 : https://www.lesstif.com/pages/viewpage.action?pageId=6979749]


+

저장소의 format 파일을 접근할 수 없다고 나오면 selinux를 설정해주어야 한다.

chcon -R -t svnserve_content_t /svn 

[링크 : http://jryeong.blogspot.com/2013/12/cenos-svn.html]

'Linux > centos' 카테고리의 다른 글

centos nfs client  (0) 2019.02.27
centos timezone 변경  (2) 2019.02.23
smb on centos  (0) 2019.02.13
centos backup  (0) 2019.02.13
centos epel 저장소 추가  (0) 2019.02.13
Posted by 구차니
하드웨어/RAID2019. 2. 22. 14:13

희한하게 죽어라 쓰면서 읽지 않아서

의문을 가지는 중.. RAID-5로

read ahead / write back 정책으로 해놔서 그런걸까..

왜 저렇게 미친듯(?)이 읽고 나서 읽기는 쉬고 미친듯이 쓰는걸까?


Posted by 구차니
Linux2019. 2. 22. 13:43

gzip 으로 하는데 느려서 반디집 처럼 멀티코어 지원하는 압축프로그램 찾는 중 발견

p만 붙이면 되는거였나 싶은데 pigz는 이름이 독특하네 ㅋㅋㅋ

아무튼 gzip을 많이 썼으니 pigz를 외우면 될 듯

 

PXZ - Parallel XZ is a compression utility that takes advantage of running LZMA compression of different parts of an input file on multiple cores and processors simultaneously. Its primary goal is to utilize all resources to speed up compression time with minimal possible influence on compression ratio.
sudo apt-get install pxz
PLZIP - Lzip is a lossless data compressor based on the LZMA algorithm, with very safe integrity checking and a user interface similar to the one of gzip or bzip2. Lzip decompresses almost as fast as gzip and compresses better than bzip2, which makes it well suited for software distribution and data archiving.
Plzip is a massively parallel (multi-threaded) version of lzip using the lzip file format; the files produced by plzip are fully compatible with lzip.
Plzip is intended for faster compression/decompression of big files on multiprocessor machines, which makes it specially well suited for distribution of big software files and large scale data archiving. On files big enough, plzip can use hundreds of processors.
sudo apt-get install plzip
PIGZ - pigz, which stands for Parallel Implementation of GZip, is a fully functional replacement for gzip that takes advantage of multiple processors and multiple cores when compressing data.
sudo apt-get install pigz
PBZIP2 - pbzip2 is a parallel implementation of the bzip2 block-sorting file compressor that uses pthreads and achieves near-linear speedup on SMP machines. The output of this version is fully compatible with bzip2 v1.0.2 (ie: anything compressed with pbzip2 can be decompressed with bzip2).
sudo apt-get install pbzip2
LRZIP - A multithreaded compression program that can achieve very high compression ratios and speed when used with large files. It uses the combined compression algorithms of zpaq and lzma for maximum compression, lzo for maximum speed, and the long range redundancy reduction of rzip. It is designed to scale with increases with RAM size, improving compression further. A choice of either size or speed optimizations allows for either better compression than even lzma can provide, or better speed than gzip, but with bzip2 sized compression levels.
sudo apt-get install lrzip 

[링크 : https://askubuntu.com/questions/258202/multi-core-compression-tools]

 

--use-compress-program 을 통해서 압축 프로그램을 지정가능한 듯?

tar -c --use-compress-program=pigz -f tar.file dir_to_zip  

 

[링크 : https://stackoverflow.com/.../utilizing-multi-core-for-targzip-bzip-compression-decompression]

 

+ 21.12.03

use-compress-program="xz -t4" 식으로 주면 되려나?

$ tar cvf archive.tar.xz --use-compress-program='xz -1' *.csv

[링크 : https://unix.stackexchange.com/.../how-to-use-multi-threading-for-creating-and-extracting-tar-xz]

[링크 : https://www.baeldung.com/linux/xz-compression]

'Linux' 카테고리의 다른 글

sparse file 확인하기  (0) 2019.02.25
cron 실행 및 시간 관련 문제  (0) 2019.02.24
bash history 번호 옆 *  (0) 2019.02.16
네트워크 속도 모니터링  (0) 2019.02.03
ls에서 전체년도 보기  (0) 2019.02.03
Posted by 구차니

-c:a copy를 통해 오디오는 손대지 않고(AAC 같은건 못 건드리네.)

비디오만 비트레이트 변경할 수 있다.


$ ffmpeg -i viedeo.mp4 -b:v 2M -maxrate 2M -bufsize 1M  -c:a copy video_low.mp4 

[링크 : https://trac.ffmpeg.org/wiki/Limiting%20the%20output%20bitrate]

[링크 : https://opensource.com/article/17/6/ffmpeg-convert-media-file-formats]

'프로그램 사용 > ffmpeg & ffserver' 카테고리의 다른 글

webm을 mp3로 변환하기  (0) 2020.04.01
ffmpeg h264 encoding 옵션  (0) 2019.02.22
ffmpeg 레이턴시 관련 옵션 조사  (0) 2018.12.16
ffmpeg / ffplay cli interactive interface  (0) 2018.11.30
ffmpeg concat  (0) 2018.11.05
Posted by 구차니
Programming/node.js2019. 2. 22. 10:51

찾아보니 이상한(?) 모듈들 쓰는데

걍 귀찮아서 express 템플릿으로 만들었을 경우

/public/favicon.ico 넣어주면 끝

(크롬이나 edge 브라우저에서 테스트 완료)


[링크 : https://zinlee.tistory.com/entry/nodejs에서-파비콘favicon-설정-방법]

'Programming > node.js' 카테고리의 다른 글

floala 에디터 + node.js  (0) 2019.03.08
wysiwyg editor / node.js  (0) 2019.02.26
node.js apache 스타일 로그  (0) 2019.02.22
express ejs  (0) 2019.02.20
pug include / ejs include  (0) 2019.02.20
Posted by 구차니
Programming/node.js2019. 2. 22. 10:47

이것저것 찾다가 그냥 express 엔진에서 제공하는거 있길래

그걸 변형해서 사용함

github에서는 morgan 이라는 이름으로 쓰는데

express --ejs로 생성한 템플릿에 적용하려니 logger라는 이름으로 있어서 그걸 사용하여 추가함

(당연히?) 해당 프로젝트의 /log 디렉토리를 생성하여 주어야 한다.

(파일은 자동 생성됨)


var logger = require('morgan');
var fs = require('fs')
var path = require('path')

var app = express();

// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');

var accessLogStream = fs.createWriteStream(path.join(__dirname, 'log/access.log'), { flags: 'a' })
app.use(logger('dev'));
app.use(logger('combined', { stream: accessLogStream }))

[링크 : https://github.com/expressjs/morgan]


+

[링크 : https://www.npmjs.com/package/access-log]

[링크 : https://www.npmjs.com/package/apache-log2]


+

2019.02.23


일단은 webalizer를 통해서 정상적으로 로그 수집이 되는 것을 확인했음

'Programming > node.js' 카테고리의 다른 글

wysiwyg editor / node.js  (0) 2019.02.26
node.js 파비콘 설정하기  (0) 2019.02.22
express ejs  (0) 2019.02.20
pug include / ejs include  (0) 2019.02.20
node_modules include  (0) 2019.01.29
Posted by 구차니
프로그램 사용/nfs2019. 2. 22. 08:17

nfs 에서도 sparse file을 지원은 하는데 NFS v4.2 이후부터라고

NFS V4.2 ? Feature

● Sparse File Support ? Sparse files are ones which

have allocated or uninitialized blocks in the file.

(1.4.3)

● SEEK - Find the Next Data or Hole

● NFS: Implement SEEK (Sep 2014)

● READ_PLUS - READ Data or Holes from a File

● No published upstream patches yet

● Prototype patches improve performance with reading holes

(See Anna’s keynote graph).  

[링크 : https://events.static.linuxfound.org/sites/events/files/slides/Vault2017.pdf]


특정 버전으로 제한하는 법은 아래와 같은데 소수점 버전은 없네?

To specify NFS version, use -o option


# mount -t nfs -o vers=4 192.168.1.10:/mnt/data /data

or

# mount -t nfs -o vers=3 192.168.1.10:/mnt/data /data 

[링크 : https://computingforgeeks.com/configure-nfsv3-and-nfsv4-on-centos-7/]


버전 확인하기

근데 여전히 소수점 버전은 확인이 불가능 하다.

 nfsstat

[링크 : https://unix.stackexchange.com/questions/115918/how-to-determine-if-nfs-mount-is-mounted-as-v3-or-v4]

'프로그램 사용 > nfs' 카테고리의 다른 글

rootfs 와 nfs-server  (0) 2019.07.17
svc: failed to register lockdv1 RPC service (errno 111)  (0) 2015.02.10
nfs mount 시 옵션들  (0) 2012.12.11
mount.nfs: access denied by server while mounting  (0) 2012.06.08
showmount  (0) 2012.06.08
Posted by 구차니

느낌은 화요일쯤 되는데..

벌써 목요일이라니.. -_-

Posted by 구차니
Programming/web 관련2019. 2. 20. 20:06

css나 js등을 전송하다 보면 아무래도 작은 파일들로 나눠어서 효율이 떨어지는데

그런걸 하나로 묶어서 보내주도록 빌드(?)하는 그런 도우미 프로그램

[링크 : https://webpack.js.org/]


쓰는 법은 나중에 좀 봐야겠네..

그래서 요즘 웹 페이지들이 node.js 나 javascript 기반이라도 빌드를 하는 거였나?

[링크 : https://meetup.toast.com/posts/153]

[링크 : http://blog.jeonghwan.net/js/2017/05/15/webpack.html]

'Programming > web 관련' 카테고리의 다른 글

ECDHE?  (0) 2019.04.26
css position  (0) 2019.03.28
ajax bearer token header  (0) 2019.02.07
webGL vs SVG  (0) 2019.01.07
w3c validator  (0) 2018.12.10
Posted by 구차니
Programming/react.js2019. 2. 20. 20:04

react.js로 node.js 상관없이(?) 단독으로 프로젝트 생성해서 하는걸 보다가

node.js 로 생성된 프로젝트에 react.js를 추가하는걸 찾는 중

[링크 : https://github.com/velopert/react-express-hmr-example?files=1]

[링크 : https://velopert.com/1552]


(당연하지만) react 쪽은 javascript로 작성하고

node쪽에서는 단순히 react로 의해 생성되는 bundle.js를 script를 통해 불러오면 끝


react.js는 backend와 연결이 없는 단순 frontend 뷰 엔진이다 보니

그런식으로 구현이 가능 한 듯 하다.

'Programming > react.js' 카테고리의 다른 글

react.js + bootstrap?  (0) 2019.02.10
react store / flux pattern  (0) 2019.02.01
react.js context, component thru  (0) 2019.02.01
react import {}  (0) 2019.01.31
react html to jsx  (0) 2019.01.29
Posted by 구차니