小编Man*_*dar的帖子

/etc/my.cnf - 我错过了什么?

我收到以下错误:

error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
Run Code Online (Sandbox Code Playgroud)

这是我的 /etc/my.cnf 文件:

[root@host backup]#cat /etc/my.cnf
max_allowed_packet=100M
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[mysqldump]
max_allowed_packet=100M
Run Code Online (Sandbox Code Playgroud)

mysql linux

5
推荐指数
1
解决办法
2万
查看次数

Git clone 工作正常,但 git push 不行

我在 Git 服务器上创建了一个测试 git repo:

/var/cache/git/username/myGitRepo.git
Run Code Online (Sandbox Code Playgroud)

这是一个“裸”的git repo。文件的所有权属于这个“用户名”用户。我可以在另一台 Windows 机器上克隆上面的 Git 存储库。

git clone git://myhost/var/cache/git/username/myGitRepo.git
Run Code Online (Sandbox Code Playgroud)

回购正确克隆。然后我可以进行本地提交并尝试将更改推送回我的 Git 服务器:

git push origin master
Run Code Online (Sandbox Code Playgroud)

但这会在服务器上出现权限错误:

fatal: remote error: access denied or repository not exported: /git/username/myGitRepo.git
Run Code Online (Sandbox Code Playgroud)

git-daemon-export-ok在 repo 目录中添加了魔法文件 ' ' 文件。但我不断收到上述错误。

我甚至设置chmod777/var/cache/git/username/myGitRepo.git

得到同样的错误。

Git remote -v 抛出以下输出。

$ git remote -v
origin  git://myhost/git/username/myGitRepo.git (fetch)
origin  git://myhost/git/username/myGitRepo.git (push)
Run Code Online (Sandbox Code Playgroud)

任何人都可以帮助我解决此错误?

git

3
推荐指数
1
解决办法
3万
查看次数

标签 统计

git ×1

linux ×1

mysql ×1