necessaryEvil from nowOn
2015-04-24
ECHO
Parameter
-n : 不要在最後自動換行
-e : 若字串中出現以下字元, 則特別加已處理, 而不將之當成一般文字輸出.
\a : 發出警告聲
\n : 刪除前一個字元
\c : 最後不加上換行符號
\f : 換行且游標停留在原來位置
\n : 換行且游標移至行首
\r : 游標移至行首, 但不換行
\t : 插入 tab
\v : 與 \f 相同
\\ : 插入 \ 字元
\nnn : 插入 nnn (八進位) 所代表的 ASCII字元
Example
閱讀更多 »
2015-04-02
SVN, first try.
Installation & Setup
# yum install mod_dav_svn subversion
# vim /etc/httpd/conf.d/subversion.conf
make sure 2 lines upper this config file.
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
modify these
<Location /repos> # root path for http connection on /svn
DAV svn # svn = connection method
SVNPath /var/www/svn/repos # local svn path
AuthType Basic #
AuthName "Subversion repos" # show login information
AuthUserFile /etc/svn-auth-conf # account & password located file
Require valid-user # svn login required password
#Satisfy Any # svn login password no required
</Location>
Create first user
# htpasswd -cm /etc/svn-auth-conf yourusername
Create other users
# htpasswd -m /etc/svn-auth-conf anotherusername
Establish version control area
# mkdir /var/www/svn
# cd /var/www/svn
# svnadmin create mts
# chown -R apache.apache mts
# service httpd restart
Apache, httpd start FAIL
When no idea for httpd start FAIL without any error message.
Fixed,
check log file on /var/log/httpd/*, and there was a error log related NSS [error].
removed this kind of log file on /var/log/httpd/nss_error_log, and then httpd WORK. MY GOD.
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)