-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
137 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# SVN版本管理 | ||
- [svn命令行使用](./svn命令行使用.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters