ä¾ãã°ãã£ã¬ã¯ããªã®ä½æã«installã³ãã³ãã使ã
ãããªãã¨ãããã¨ãã¾ãããã
mkdir -p /path/to/dir chown 2gou /path/to/dir chgrp oretachino /path/to/dir chmod 700 /path/to/dir
chown 2gou.oretachino /path/to/dir
ã§ããããã©è¡æ°ç¨¼ãããã«åããã
åããã¨ãããã«ã¯ãæå¤ã¨ç¥ããã¦ãªããã©install
使ãã¨1ã³ãã³ãã§ã¤ããã
install -o 2gou -g oretachi -m 700 -d /path/to/dir
installã®manãè¦ã¦ã¿ãã¨
This install program copies files (often just compiled) into destination locations you choose. If you want to download and install a ready-to-use package on a GNU/Linux system, you should instead be using a package manager like yum(1) or apt-get(1).
ã¨ããã¾ãããã®ã³ãã³ãã«æ°ä»ããã®ã¯rpmãä½æãã¦ããã¨ãã«specãã¡ã¤ã«ã«æ¸ãã¦ãã£ãããã§ãspecãã¡ã¤ã«ãèªãã¨installã³ãã³ãã«ãããã¡ã¤ã«ã³ãã¼æ¹æ³ãåããã¾ãã
# Install systemd service files mkdir -p $RPM_BUILD_ROOT%{_unitdir} for s in httpd htcacheclean; do install -p -m 644 $RPM_SOURCE_DIR/${s}.service \ $RPM_BUILD_ROOT%{_unitdir}/${s}.service done
ä¾ãã°CentOS7ã®httpdããã±ã¼ã¸å
%install
ã»ã¯ã·ã§ã³ã§ãããsystemdç¨ã®ãã¡ã¤ã«ãã³ãã¼ããæã«ã¯ãããªæãã§æ¸ãã¦ãããã
ã³ãã¼ã®é¨åã«é¢ãã¦ã¯ä»¥ä¸ã®ä¾¿å©ãªãã·ã§ã³ãããã®ã§
-p
: ã³ãã¼å ã®ã¿ã¤ã ã¹ã¿ã³ãã¯ãã®ã¾ã¾-b
: ãã¡ã¤ã«å 容ã«å·®ç°ãããã°ã³ãã¼å ã®ããã¯ã¢ãããåå¾ãã¦ããã³ãã¼
å¥ãã£ã¬ã¯ããªã«åã£ã¦ããããã¯ã¢ããå ã®ãã¡ã¤ã«ãå ã®å ´æã«æ»ãããããã¨ãã«ã便å©ããªãã¨æã£ãã®ã ããã©ã
-m
ãå¿ããã¨ããã©ã«ãã®755ã«ãªã£ã¦ãã¾ã- ãããããã³ãã¼å ã®ãã¡ã¤ã«ã®ãã¼ããã·ã§ã³ãç¥ã£ã¦ãªãã¨ãããªãã¦é¢å
- åèµ·ã³ãã¼ããªãã®ã§ããã¯ã¢ããå ãè¤æ°é層ãã£ã¦ãã¨åãé層ãåç¾åºæ¥ãªã
ã®ã§ãæ¥å¸¸ã ã¨æåã«æ¸ãã空ãã£ã¬ã¯ããªã®ä½æãä¸çªéå®ããããªã¨æãã¾ãããªã¹ãã¢ã¯æ®éã«cp -a
ã¨ãrsync
ã§ããã°ããããã