Skip to content

Commit

Permalink
发布博客,时间:2024/10/21 13:05:34
Browse files Browse the repository at this point in the history
  • Loading branch information
whp98 committed Oct 21, 2024
1 parent 05252f0 commit b14c6aa
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/Linux系统/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Linux系统
- [ubuntu桌面](./ubuntu桌面/)
- [linux centos系统pyinstaller打包环境准备](./linux系统pyinstaller打包环境准备.md)
- [Linux系统中su-用户和su的区别](./Linux系统中su-用户和su的区别.md)
- [Linux系统中.bash_rc和.bash_profile的区别](./Linux系统中.bash_rc和.bash_profile的区别.md)
- [rsync的使用](./rsync的使用.md)
Expand Down
31 changes: 31 additions & 0 deletions docs/Linux系统/linux系统pyinstaller打包环境准备.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# linux centos系统pyinstaller打包环境准备

## 使用源代码编译安装python

```shell
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
yum -y groupinstall "Development tools"
yum install libffi-devel -y
mkdir python_install
cd python_install/
wget https://www.python.org/ftp/python/3.9.20/Python-3.9.20.tar.xz
tar -xvJf Python-3.9.20.tar.xz
mkdir /usr/local/python3
cd Python-3.9.20/
./configure --prefix=/usr/local/python3 --enable-shared --with-ssl
make && make install
cp libpython3.so libpython3.9.so.1.0 /usr/lib64/
which python3
which pip3
```

## 设置pip
```shell
python3 -m pip install --upgrade pip
pip3 config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
python3 -m venv ./venv
which python3
which pip3
```

7 changes: 7 additions & 0 deletions docs/Linux系统/ubuntu桌面/ubuntu切换kde.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ sudo apt install kde-plasma-desktop

安装完毕之后重启系统即可使用。

## 其他必须软件

1.压缩工具ark
```shell
sudo apt install ark
```


## 评价
kde解决了nautils的问题,文件保存选择路径慢的问题。
Expand Down
2 changes: 2 additions & 0 deletions docs/SVN版本管理/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SVN版本管理
- [svn命令行使用](./svn命令行使用.md)
94 changes: 94 additions & 0 deletions docs/SVN版本管理/svn命令行使用.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# svn命令行使用

## 拉取代码
```shell
svn checkout svn://192.168.1.1/svn/test/trunk test
```

## 更新代码
```shell
svn update
svn update -r 100
svn update -r HEAD
svn update -r 100:HEAD
svn update -r 100:HEAD --set-depth infinity
svn update -r 100:HEAD --set-depth immediates
svn update -r 100:HEAD --set-depth empty
```

## 提交代码
```shell
svn commit -m "提交说明"
svn commit -m "提交说明" --username=admin --password=admin
svn commit -m "提交说明" --username=admin --password=admin --no-auth-cache
```

## 添加文件到版本库

```shell
svn add file1 file2 file3
svn add file1 file2 file3 --force
```
## 删除文件
```shell
svn delete file1 file2 file3
svn delete file1 file2 file3 --force
```

## 忽略文件
```shell
svn propset svn:ignore "*.log" .
svn propset svn:ignore "*.log" . --force
```

## 创建标签
```shell
svn copy svn://192.168.1.1/svn/test/trunk svn://192.168.1.1/svn/test/tags/1.0.0 -m "创建标签"
svn copy svn://192.168.1.1/svn/test/trunk svn://192.168.1.1/svn/test/tags/1.0.0 -m "创建标签" --username=admin --password=admin
```

## 创建分支
```shell
svn copy svn://192.168.1.1/svn/test/trunk svn://192.168.1.1/svn/test/branches/1.0.0 -m "创建分支"
svn copy svn://192.168.1.1/svn/test/trunk svn://192.168.1.1/svn/test/branches/1.0.0 -m "创建分支" --username=admin --password=admin
```

## 查看日志

```shell
svn log svn://192.168.1.1/svn/test/trunk
svn log svn://192.168.1.1/svn/test/trunk -l 10
svn log svn://192.168.1.1/svn/test/trunk -r 100:HEAD
```

## 查看文件修改记录
```shell
svn blame svn://192.168.1.1/svn/test/trunk/test.php
svn blame svn://192.168.1.1/svn/test/trunk/test.php -r 100:HEAD
```

## 查看文件差异
```shell
svn diff svn://192.168.1.1/svn/test/trunk/test.php
svn diff svn://192.168.1.1/svn/test/trunk/test.php -r 100:HEAD
```

## 查看文件状态
```shell
svn status
svn status -u
svn status -u --username=admin --password=admin
```

## 清理缓存
```shell
svn cleanup
svn cleanup --username=admin --password=admin
svn cleanup --force
```

## 清理锁
```shell
svn cleanup --remove-locks
svn cleanup --remove-locks --username=admin --password=admin
```
3 changes: 2 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# 目录
- [SVN版本管理](./SVN版本管理/)
- [Linux系统](./Linux系统/)
- [Python语言](./Python语言/)
- [社会认知](./社会认知/)
- [About](./public/public.md)
Expand All @@ -11,7 +13,6 @@
- [赞助和推广](./赞助和推广/)
- [前端开发](./前端开发/)
- [开发工具技巧](./开发工具技巧/)
- [Linux系统](./Linux系统/)
- [Git版本管理](./Git版本管理/)
- [安卓开发](./安卓开发/)
- [计算机网络](./计算机网络/)
Expand Down

0 comments on commit b14c6aa

Please sign in to comment.