1、Permission denied: Could not open password file: /var/svn/passwd
解決辦法:
要更改相關目錄的權限
#chown –R apache:apache /var/svn/
由於RHEL5中引入了SELinux來加安全控制,因此還需要對該路徑進行賦權。(整個路徑的目錄都要賦權,如:要訪問/var/svn/passwd,則從/var開始都要賦權)
如果不賦權,會出現 Permission denied: Could not open password file: /var/svn/passwd這樣的錯誤
#chcon -h -t httpd_sys_content_t /var #chcon -R -h -t httpd_sys_content_t /var/svn
2、svn客戶端啓動時報如下錯誤:invalid authz configuration
原因:認證配置無效
1》、svn的服務沒有啓動,查看啓動命令:ps aux |grep svn,如果沒有啓動,用命令:svnserve -d -r /var/svn啓動
-d:運行在後臺;-r表示設定你的svn版本庫的位置;/var/svn:我的svn版本庫的位置
2》、是authz文件的問題 添加user的時候導致空格或換行不對,換行、空格出的問題最多
3、通過:svn://10.130.36.230/myapp訪問svn報無法連接主機的錯誤
解決辦法:
把端口去掉,如:svn://10.130.36.216/myapp
#killall svnserve
#svnserve -d -r /var/svn
4、yum install mysql 在啓動時,報:Timeout error occurred trying to start MySQL Daemon
解決辦法:
#/usr/bin/mysqld_safe --user=mysql &
#/etc/init.d/mysqld start
5、Mysql創建用戶名和密碼
解決辦法:/usr/bin/mysqladmin -u root password 111111
6、進入mysql的方法
解決辦法:mysql -u -p111111
7、啓動 Mysql 服務的時候提示:/usr/local/mysql/libexec/mysqld: Retry in 60 secs. Message reprinted in 600 secs
。
解決辦法:
造成這個問題的原因很明顯 Expect up to 60 secs delay for server to continue after freeing disk space。磁盤空間不足,無法啓動數據庫
清理掉磁盤沒用的數據
8、MySQL啓動錯誤:[Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
解決辦法:
將/etc/my.cnf裏面的skip-locking 改爲skip-external-locking
重啓mysql
9、linux下拷貝多個文件到另一目錄下,鼠標光標不動
解決辦法:
用命令vmstat查看free、buff、cache的變化。
10、apache啓動報錯(98)Address already in use
解決辦法:
killall httpd
/etc/init.d/httpd start
11、Apache/2.2.3 (CentOS) configured -- resuming normal operations,受限制
解決辦法:
1、setup中的防火牆關閉
2、版本庫的權限設置
12、編譯mysql時,報WARNING: unrecognized options: --enable-dav, --enable-so, --enable-maintainer-mode, --enable-rewrite
解決辦法:先安裝一下zlib,yum install zlib ,然後用--with-zlib指明一下安裝的位置
13、Apache下整合的SVN,由於自己需要加modules,就重新./configure,make make install後啓動apache出現如下錯誤:
httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_dav_svn.so into server: /usr/local/apache2/modules/mod_dav_svn.so: undefined symbol: dav_register_provider
解決辦法:
重新./configure 增加參數
./configure -prefix=/usr/local/apache2 -enable-dav -enable-so -enable-maintainer-mode -enable-rewrite
14、linux下創建中文路徑,報以下錯誤:
[root@localhost ~]# svnadmin create /var/svn/virues/軟件版本
svnadmin: warning: cannot set LC_CTYPE locale
svnadmin: warning: environment variable LANG is en
svnadmin: warning: please check that your locale name is correct
svnadmin: Can't convert string from native encoding to 'UTF-8':
svnadmin: /var/svn/virues?\200?\237?\188?\254?\176?\230?\177?\190
解決辦法:
export LC_CTYPE="zh_CN.UTF-8"
15、svn: Valid UTF-8 data (hex: 47 64 20 53 63) followed by invalid UTF-8 sequence (hex: e9 6e 69 63) 錯誤
解決辦法:
這樣的錯誤的原因是所提交的文件中包含非utf8的編碼, 假如你知道該非utf8編碼是什麼編碼類型的話(例如 :iso-8859-15),可以這樣解決這個錯誤:
#yum -y install convmv
convmv -r -f iso-8859-15 -t utf8 --notest -i /data/www/shop_bak/trunk
svn import -m "New import 20100606" /data/www/shop_bak/trunk svn://svn.dev.shop.com/shop/trunk
16、linux 管理iptables
方法:iptables -L查看使用情況;iptables -F,全部kill掉
17、SVNmanager啓動時報如下錯誤
Forbidden
You don't have permission to access /svnmanager on this server.
centos Apache/2.2.3 (CentOS) configured -- resuming normal operations
解決辦法:
把selinux關閉 setenforce 0
18、通過TSVN訪問時,報 authentication failed
解決辦法:1,配置格式問題
2,服務的問題
3,authz、passwd、svnserver.conf的編碼問題。