 postgresql操作手册systemctl enable postgresql-13 # systemctl start postgresql-13 ★第2章、设置数据存储路径 PostgreSQL 初始化数据库之后, 10版本的默认的数据目录是/var/lib/pgsql/ 13版本的默认的数据目录是/var/lib/pgsql/13/ 现在想修改为/data_pg/ 目录 ★PG-13版本 # systemctl firewall-cmd --add-port=5432/tcp --permanent # firewall-cmd --reload pg_hba.conf 配 置 保 存 在 postgres 库 下 面 的 名 为 pg_catalg 的 schema 下 的 pg_hba_file_rules表里: INSERT INTO "pg_hba_file_rules" ("line_number" #创建一个名为cof的 用户,并设置密码 postgres=# grant all on database db_test to cof; #给cof授权,有操作db_test 库的所有权限 postgres=# postgres=# revoke all on database db_test from cof; #撤销用户权限 postgres=# drop0 码力 | 17 页 | 445.84 KB | 1 年前3 postgresql操作手册systemctl enable postgresql-13 # systemctl start postgresql-13 ★第2章、设置数据存储路径 PostgreSQL 初始化数据库之后, 10版本的默认的数据目录是/var/lib/pgsql/ 13版本的默认的数据目录是/var/lib/pgsql/13/ 现在想修改为/data_pg/ 目录 ★PG-13版本 # systemctl firewall-cmd --add-port=5432/tcp --permanent # firewall-cmd --reload pg_hba.conf 配 置 保 存 在 postgres 库 下 面 的 名 为 pg_catalg 的 schema 下 的 pg_hba_file_rules表里: INSERT INTO "pg_hba_file_rules" ("line_number" #创建一个名为cof的 用户,并设置密码 postgres=# grant all on database db_test to cof; #给cof授权,有操作db_test 库的所有权限 postgres=# postgres=# revoke all on database db_test from cof; #撤销用户权限 postgres=# drop0 码力 | 17 页 | 445.84 KB | 1 年前3
 git 操作手册名称生效(只对新创建仓库生 效) # git branch -m main #将当前分支更名为main ★tag操作 tag是git版本库的一个标记命令,指向了某个commit的指针,tag命令主要用于 发布版本管理,当一个版本发布时,打上tag标签。 有了分支(branch)为什么还要引入tag这个概念呢? 因为tag是相对于同一个分 rmtRepo h�ps://gitlab.cof- lee.com/username/RemoteRepoName.git #将本地代码库的当前分支与远程的 代码库相关联,远程库在本地的别名设置为rmtRepo(当前本地分支与远程仓 库的分支名称要保持一致)git用户名及仓库名称要根据实际情况修改,比如: # git remote add rmtRepo h�ps://gitlab #将本地代码库的当前分支(main)推送到远 程的代码库的main分支 # git pull rmtRepo main #从远程代码库下载main分支的最新修改,若未 指定分支名,则默认拉取同本地分支名的分支 # git remote -v #查看当前仓库关联的远程代码库的URL # git remote0 码力 | 35 页 | 1.69 MB | 1 年前3 git 操作手册名称生效(只对新创建仓库生 效) # git branch -m main #将当前分支更名为main ★tag操作 tag是git版本库的一个标记命令,指向了某个commit的指针,tag命令主要用于 发布版本管理,当一个版本发布时,打上tag标签。 有了分支(branch)为什么还要引入tag这个概念呢? 因为tag是相对于同一个分 rmtRepo h�ps://gitlab.cof- lee.com/username/RemoteRepoName.git #将本地代码库的当前分支与远程的 代码库相关联,远程库在本地的别名设置为rmtRepo(当前本地分支与远程仓 库的分支名称要保持一致)git用户名及仓库名称要根据实际情况修改,比如: # git remote add rmtRepo h�ps://gitlab #将本地代码库的当前分支(main)推送到远 程的代码库的main分支 # git pull rmtRepo main #从远程代码库下载main分支的最新修改,若未 指定分支名,则默认拉取同本地分支名的分支 # git remote -v #查看当前仓库关联的远程代码库的URL # git remote0 码力 | 35 页 | 1.69 MB | 1 年前3
 python3学习手册依赖包,在共享主 机时,无法在全局site-packages目录中安装依赖包。 virtualenv将会为它自己的安装目录创建一个环境,这并不与其他 virtualenv环境共享库;同时也可以选择性地不连接已安装的全局库。 conda结合了pip和virtualenv的功能,比较方便地在不同环境之间进行 切换,环境管理较为简单。 ★centos安装anaconda3 anaconda下载地址: ★sqlite3模块 import sqlite3 sqlite_conn = sqlite3.connect('test.db') # 连接数据库文件, 若文件不存在则新建 # 数据库所有数据存储在此文件中,默认数据库名称同文件名(不含.db后 缀) sqlite_cursor = sqlite_conn.cursor() # 创建一个游标,用于执 行sql语句 # 查询是否有名为'tb_test'的表 (id,name,age) values ('uuidxxxxxx','cof-lee',18)") except Exception as e: print(type(e)) # 若在数据库中定义了唯一性约束,当试图插入一 个重复的值时,会触发"sqlite3.IntegrityError"错误 print(e) exit() sqlite_cursor.execute("insert0 码力 | 213 页 | 3.53 MB | 1 年前3 python3学习手册依赖包,在共享主 机时,无法在全局site-packages目录中安装依赖包。 virtualenv将会为它自己的安装目录创建一个环境,这并不与其他 virtualenv环境共享库;同时也可以选择性地不连接已安装的全局库。 conda结合了pip和virtualenv的功能,比较方便地在不同环境之间进行 切换,环境管理较为简单。 ★centos安装anaconda3 anaconda下载地址: ★sqlite3模块 import sqlite3 sqlite_conn = sqlite3.connect('test.db') # 连接数据库文件, 若文件不存在则新建 # 数据库所有数据存储在此文件中,默认数据库名称同文件名(不含.db后 缀) sqlite_cursor = sqlite_conn.cursor() # 创建一个游标,用于执 行sql语句 # 查询是否有名为'tb_test'的表 (id,name,age) values ('uuidxxxxxx','cof-lee',18)") except Exception as e: print(type(e)) # 若在数据库中定义了唯一性约束,当试图插入一 个重复的值时,会触发"sqlite3.IntegrityError"错误 print(e) exit() sqlite_cursor.execute("insert0 码力 | 213 页 | 3.53 MB | 1 年前3
 k8s操作手册 2.3le.pem ②安装k8s二进制组件 #使用aliyun的源(如果用的是RHEL8系列的系统,也是用的el7的仓库源,因为 k8s组件是用go语言写的,直接二进制文件就可用,不需要特殊的库依赖,于是 和系统弱相关,8或9系列的系统也直接可用这些rpm软件) # cat >> /etc/yum.repos.d/k8s-ali.repo < k8s操作手册 2.3le.pem ②安装k8s二进制组件 #使用aliyun的源(如果用的是RHEL8系列的系统,也是用的el7的仓库源,因为 k8s组件是用go语言写的,直接二进制文件就可用,不需要特殊的库依赖,于是 和系统弱相关,8或9系列的系统也直接可用这些rpm软件) # cat >> /etc/yum.repos.d/k8s-ali.repo <- 库地址 # kubectl apply -f ingress-nginx-controller-v1.2.0.yaml #创建ingress-controller服 务 #是以Deploym /root/test-chart-1.0.2.tgz ★搭建私有helm仓库 安装web服务器,创建一个根目录/charts 将所有chart压缩包复制到/charts目录下,并生成库的index文件 # yum install h�pd -y # mkdir /charts # cp test-chart-1.0.2.tgz /charts 0 码力 | 126 页 | 4.33 MB | 1 年前3
 The DevOps Handbookthroughout the organization.” They are self-healing ii. Netflix – April 21, 2011; entire Amazon AWS US-EAST availability zone went down; Netflix was unaffected. Since 2008 they were building and testing appropriate settings and use the tests to scan environments for vulnerabilities iii. 18F Cloud.gov (uses AWS GovCloud – 1. Created platform addressing bulk of compliance concerns driven by ATO requirements auditing, controls, and risk mitigations. ii. Bill Shinn, principle security solutions architect for AWS – auditors traditional training of sampling with screenshot evidence doesn’t really work in cloud0 码力 | 9 页 | 25.13 KB | 5 月前3 The DevOps Handbookthroughout the organization.” They are self-healing ii. Netflix – April 21, 2011; entire Amazon AWS US-EAST availability zone went down; Netflix was unaffected. Since 2008 they were building and testing appropriate settings and use the tests to scan environments for vulnerabilities iii. 18F Cloud.gov (uses AWS GovCloud – 1. Created platform addressing bulk of compliance concerns driven by ATO requirements auditing, controls, and risk mitigations. ii. Bill Shinn, principle security solutions architect for AWS – auditors traditional training of sampling with screenshot evidence doesn’t really work in cloud0 码力 | 9 页 | 25.13 KB | 5 月前3
 A Seat at the Table - IT Leadership in the Age of AgilityArt of Business Value and A Seat at the Table: IT Leadership in the Age of Agility. Before joining AWS he was the CIO of US Citizenship and Immigration Service (part of the Department of Homeland Security) Computer Science from Yale, and an MA in Philosophy from Yale. Mark and Mike first met at the 2019 AWS Public Sector Summit in Washington, DC. They’ve been best friends ever since.0 码力 | 4 页 | 379.23 KB | 5 月前3 A Seat at the Table - IT Leadership in the Age of AgilityArt of Business Value and A Seat at the Table: IT Leadership in the Age of Agility. Before joining AWS he was the CIO of US Citizenship and Immigration Service (part of the Department of Homeland Security) Computer Science from Yale, and an MA in Philosophy from Yale. Mark and Mike first met at the 2019 AWS Public Sector Summit in Washington, DC. They’ve been best friends ever since.0 码力 | 4 页 | 379.23 KB | 5 月前3
 A Seat at the Table: IT Leadership in the Age of Agility - Part 2Art of Business Value and A Seat at the Table: IT Leadership in the Age of Agility. Before joining AWS he was the CIO of US Citizenship and Immigration Service (part of the Department of Homeland Security) Computer Science from Yale, and an MA in Philosophy from Yale. Mark and Mike first met at the 2019 AWS Public Sector Summit in Washington, DC. They’ve been best friends ever since. Fork Me on GitHub0 码力 | 7 页 | 387.61 KB | 5 月前3 A Seat at the Table: IT Leadership in the Age of Agility - Part 2Art of Business Value and A Seat at the Table: IT Leadership in the Age of Agility. Before joining AWS he was the CIO of US Citizenship and Immigration Service (part of the Department of Homeland Security) Computer Science from Yale, and an MA in Philosophy from Yale. Mark and Mike first met at the 2019 AWS Public Sector Summit in Washington, DC. They’ve been best friends ever since. Fork Me on GitHub0 码力 | 7 页 | 387.61 KB | 5 月前3
 A Seat at the Table - IT Leadership in the Age of AgilityArt of Business Value and A Seat at the Table: IT Leadership in the Age of Agility. Before joining AWS he was the CIO of US Citizenship and Immigration Service (part of the Department of Homeland Security) Computer Science from Yale, and an MA in Philosophy from Yale. Mark and Mike first met at the 2019 AWS Public Sector Summit in Washington, DC. They’ve been best friends ever since. Follow Us Follow our0 码力 | 7 页 | 387.48 KB | 5 月前3 A Seat at the Table - IT Leadership in the Age of AgilityArt of Business Value and A Seat at the Table: IT Leadership in the Age of Agility. Before joining AWS he was the CIO of US Citizenship and Immigration Service (part of the Department of Homeland Security) Computer Science from Yale, and an MA in Philosophy from Yale. Mark and Mike first met at the 2019 AWS Public Sector Summit in Washington, DC. They’ve been best friends ever since. Follow Us Follow our0 码力 | 7 页 | 387.48 KB | 5 月前3
共 8 条
- 1














