当前位置: 首页 > news >正文

点餐网站怎么做网推和地推的区别

点餐网站怎么做,网推和地推的区别,企业网站建设方案范本,网站开发人员 工资概述 initdb是PostgreSQL初始化数据库的工具#xff0c;用来生成PostgreSQL的Data目录结构 使用initdb 创建数据库集群时#xff0c;会自动初始化区域设置支持。 initdb 默认情况下将使用其执行环境的区域设置来初始化数据库集群#xff0c;因此#xff0c;如果您的系统已…概述 initdb是PostgreSQL初始化数据库的工具用来生成PostgreSQL的Data目录结构 使用initdb 创建数据库集群时会自动初始化区域设置支持。 initdb 默认情况下将使用其执行环境的区域设置来初始化数据库集群因此如果您的系统已设置为在数据库集群中使用您想要的区域设置那么您不需要其他任何东西去做。如果您想使用不同的区域设置或者您不确定系统设置为哪个区域设置您可以通过指定 initdb 使用哪个区域设置4选项。例如--locale 命令 initdb initializes a PostgreSQL database cluster.Usage:initdb [OPTION]... [DATADIR]Options:-A, --authMETHOD default authentication method for local connections--auth-hostMETHOD default authentication method for local TCP/IP connections--auth-localMETHOD default authentication method for local-socket connections[-D, --pgdata]DATADIR location for this database cluster-E, --encodingENCODING set default encoding for new databases-g, --allow-group-access allow group read/execute on data directory--icu-localeLOCALE set ICU locale ID for new databases--icu-rulesRULES set additional ICU collation rules for new databases-k, --data-checksums use data page checksums--localeLOCALE set default locale for new databases--lc-collate, --lc-ctype, --lc-messagesLOCALE--lc-monetary, --lc-numeric, --lc-timeLOCALEset default locale in the respective category fornew databases (default taken from environment)--no-locale equivalent to --localeC--locale-provider{libc|icu}set default locale provider for new databases--pwfileFILE read password for the new superuser from file-T, --text-search-configCFGdefault text search configuration-U, --usernameNAME database superuser name-W, --pwprompt prompt for a password for the new superuser-X, --waldirWALDIR location for the write-ahead log directory--wal-segsizeSIZE size of WAL segments, in megabytesLess commonly used options:-c, --set NAMEVALUE override default setting for server parameter-d, --debug generate lots of debugging output--discard-caches set debug_discard_caches1-L DIRECTORY where to find the input files-n, --no-clean do not clean up after errors-N, --no-sync do not wait for changes to be written safely to disk--no-instructions do not print instructions for next steps-s, --show show internal settings-S, --sync-only only sync database files to disk, then exitOther options:-V, --version output version information, then exit-?, --help show this help, then exitIf the data directory is not specified, the environment variable PGDATA is used.Report bugs to pgsql-bugslists.postgresql.org. PostgreSQL home page: https://www.postgresql.org/ [postgrespostgre-sql ~]$ 参数 参数中文解释-A, --authMETHOD 这个选项为本地用户指定在pg_hba.conf中使用的默认认证方法host和local行。initdb将使用指定的认证方法为非复制连接以及复制连接填充pg_hba.conf项。 为了安装方便md5是默认值。 --auth-hostMETHOD这个选项为通过 TCP/IP 连接的本地用户指定在pg_hba.conf中使用的认证方法host行。--auth-localMETHOD这个选项为通过 Unix 域套接字连接的本地用户指定在pg_hba.conf中使用的认证方法local行。-D, --pgdataDATADIR这个选项指定数据库集簇应该存放的目录。这是initdb要求的唯一信息但是你可以通过设定PGDATA环境变量来避免书写它这很方便因为之后数据库服务器使用同一个变量来找到数据库目录。-E, --encodingENCODING选择模板数据库的编码。这也将是后来创建的任何数据库的默认编码除非你覆盖它。默认值来自于区域或者如果该值不起作用则为SQL_ASCII。-g, --allow-group-access允许与集簇拥有者同组的用户读取initdb创建的所有集簇文件。 Windows会忽略此选项因为它不支持POSIX样式的组权限。--icu-localeLOCALE设置ICU区域设置ID--icu-rulesRULES设置其他ICU排序规则-k, --data-checksum在数据页面上使用校验码来帮助检测 I/O 系统造成的损坏。启用校验码将会引起显著的性能损失。如果被设置在所有数据库中会为所有对象计算校验码。 所有的检验故障均会在pg_stat_database视图中被报告。--localeLOCALE为数据库集簇设置默认区域。如果这个选项没有被指定该区域将从initdb所运行的环境中继承。--lc-collate设置字符串排序顺序--lc-ctype设置字符分类什么是字母它的大写字母等效项--lc-messagesLOCALE设置消息语言--lc-monetary设置货币金额的格式-lc-numeric设置数字格式--lc-timeLOCALE设置日期和时间的格式--no-locale等效于--localeC--locale-provider{libc|icu}设置默认区域设置提供程序libc或者icu--pwfileFILE让initdb从一个文件读取数据库超级用户的口令。该文件的第一行被当作口令。-T, --text-search-configCFG设置默认的文本搜索配置。但在任一数据库中使用相同的配置。--text-search-configpostgresql.conf-U, --usernameNAME选择数据库超级用户的用户名。这个的默认值是实际运行initdb的用户的名称。超级用户的名字是什么真的不重要但是你可以选择保留常用的名字postgres即使操作系统的用户名不同。-W, --pwprompt让initdb提示要求为数据库超级用户给予一个口令。如果你没有计划使用口令认证这就不重要。否则在你设置一个口令之前你就无法使用口令认证。-X, --waldirWALDIR这个选项指定预写式日志会被存储在哪个目录中。--wal-segsizeSIZE 设置WAL段尺寸以兆字节为单位。这是WAL日志中每个文件的尺寸。默认的尺寸为16兆字节。该值必须位于2的1次幂和1024次幂兆字节之间。这个选项只能在初始化期间设置并且之后不能更改。 调整这个值来控制WAL日志传送或者归档可能会有用。此外在有大量WAL的数据库中每个目录中数量巨大的WAL文件可能会成为性能和管理问题。增加WAL文件尺寸将会降低WAL文件的数量。 -c, --set NAMEVALUE覆盖服务器参数的默认设置-d, --debug生成调试输出--discard-caches生成的调试输出不进行缓存与-d, --debug配合使用-L DIRECTORY指定输入文件比如postgres.bki位置-n, --no-clean出现错误后不进行清理-N, --no-sync默认情况下initdb将等待所有文件被安全地写到磁盘之后再返回。这个选项会导致initdb不等待就返回后续操作系统如果崩溃可能损坏数据目录。这个选项不适用于生产环境。--no-instructions不要打印下一步的说明-s, --show显示内部配置-S, --sync-only安全地把所有数据库文件写入到磁盘并退出。这个指令不会执行任何数据库初始化操作。-V, --version打印initdb版本并退出。-?, --help显示有关initdb命令行参数的帮助并退出。 测试 [postgrespostgre-sql ~]$ initdb -U postgres -D /data/16.1/data2 --pwfile(printf %s 12345678ab) The files belonging to this database system will be owned by user postgres. This user must also own the server process.The database cluster will be initialized with locale zh_CN.UTF-8. The default database encoding has accordingly been set to UTF8. initdb: could not find suitable text search configuration for locale zh_CN.UTF-8 The default text search configuration will be set to simple.Data page checksums are disabled.creating directory /data/16.1/data2 ... ok creating subdirectories ... ok selecting dynamic shared memory implementation ... posix selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting default time zone ... Asia/Shanghai creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok syncing data to disk ... okinitdb: warning: enabling trust authentication for local connections initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.Success. You can now start the database server using:pg_ctl -D /data/16.1/data2 -l logfile start[postgrespostgre-sql ~]$
http://www.pierceye.com/news/11785/

相关文章:

  • 做教育机器网站不收费的网站
  • 在网站中设置网站地图快速生成网站程序
  • 心悦俱乐部官方网站怎么做任务网站建设企业邮箱制作网站
  • 权威的营销单页网站北京网站开发制作公司
  • 保定网站制作报价seo网络营销推广公司
  • 番禺建设网站外包将一个网站拉入黑名单怎么做
  • 网站建设厘金手指排名二一深圳市住房和建设局官网在线申请
  • 中国建设银行纪念币预约网站室内设计学校考研排名
  • 东莞网站设计实力wordpress的主题修改
  • 怎么学建设网站wordpress免费手动采集插件
  • 网站建设公司哪家好 尖端磐石网络上海建个人网站比较好的公司
  • 余姚企业网站建设wordpress 文件分享
  • wordpress如何建站呢wordpress博客备份
  • 潍坊学校网站建设河南专业网站建设公司首选
  • 夏邑县百城建设提质网站58同城做网站被骗
  • 怎样免费建企业网站吗沈阳做网站哪好
  • 目前做的比较好的法律网站有哪些html5的篮球网站开发
  • 如何做适合手机访问的网站用.net core 做网站
  • 启迪网站开发鄞州网站制作
  • 做网站最主要是什么阳江百姓网
  • dw织梦做网站十大永久免费网络游戏
  • 猴王水果竞猜网站建设p2p网贷网站开发
  • 对百度网站进行分析linux创建网站
  • 我要制作网站南京网站制作服务商
  • 网站服务器租用售价肥东建设局网站
  • 网站推广必做微信上微网站怎么做的
  • 高清品牌网站设计建设无代码制作网页
  • 做美工好的网站专做排版网站
  • 为什么网站收录下降建设部房地产网站
  • 厦门建站程序重庆沙坪坝新闻最新消息