{"id":170731,"date":"2020-01-25T21:15:24","date_gmt":"2020-01-25T13:15:24","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=170731"},"modified":"2020-01-25T21:14:45","modified_gmt":"2020-01-25T13:14:45","slug":"cobbler-customize-configuration","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/cobbler-customize-configuration.html","title":{"rendered":"\u5b9e\u6218-\u4f7f\u7528 Cobbler \u81ea\u5b9a\u4e49\u5b89\u88c5\u7cfb\u7edf"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u642d\u5efa\u597d Cobbler \u670d\u52a1\u7aef\u540e\uff0c\u4f7f\u7528\u9ed8\u8ba4\u7684 kickstarts \u5f15\u5bfc\u6587\u4ef6\u5bf9\u5ba2\u6237\u7aef\u5b89\u88c5\u7cfb\u7edf\uff0c\u4e14\u9ed8\u8ba4\u5b89\u88c5\u7684\u662f\u6700\u5c0f\u5316\u7684\u7cfb\u7edf\u3002\u6211\u4eec\u53ef\u4ee5\u81ea\u5b9a\u4e49 kickstarts \u5f15\u5bfc\u6587\u4ef6\u8fdb\u800c\u5b9e\u73b0\u5bf9\u5ba2\u6237\u7aef\u7684\u81ea\u5b9a\u4e49\u5b89\u88c5\u7cfb\u7edf\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u73af\u5883\uff1a<\/strong>
\nCentOS Linux release 7.6.1810
\nVMware Workstation Pro 14<\/p>\n

\u5b9a\u5236\u7cfb\u7edf\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/strong><\/div>\n

\u67e5\u770b\u9ed8\u8ba4\u7684 ks \u6587\u4ef6<\/p>\n

[root@Jaking ~]# cobbler report\r\ndistros:\r\n==========\r\nName                           : CentOS-7.6-x86_64\r\nArchitecture                   : x86_64\r\nTFTP Boot Files                : {}\r\nBreed                          : redhat\r\nComment                        : \r\nFetchable Files                : {}\r\nInitrd                         : \/var\/www\/cobbler\/ks_mirror\/CentOS-7.6-x86_64\/images\/pxeboot\/initrd.img\r\nKernel                         : \/var\/www\/cobbler\/ks_mirror\/CentOS-7.6-x86_64\/images\/pxeboot\/vmlinuz\r\nKernel Options                 : {}\r\nKernel Options (Post Install)  : {}\r\nKickstart Metadata             : {'tree': 'http:\/\/@@http_server@@\/cblr\/links\/CentOS-7.6-x86_64'}\r\nManagement Classes             : []\r\nOS Version                     : rhel6\r\nOwners                         : ['admin']\r\nRed Hat Management Key         : <>\r\nRed Hat Management Server      : <>\r\nTemplate Files                 : {}\r\n\r\n\r\nprofiles:\r\n==========\r\nName                           : CentOS-7.6-x86_64\r\nTFTP Boot Files                : {}\r\nComment                        : \r\nDHCP Tag                       : default\r\nDistribution                   : CentOS-7.6-x86_64\r\nEnable gPXE?                   : 0\r\nEnable PXE Menu?               : 1\r\nFetchable Files                : {}\r\nKernel Options                 : {}\r\nKernel Options (Post Install)  : {}\r\nKickstart                      : \/var\/lib\/cobbler\/kickstarts\/sample_end.ks\r\nKickstart Metadata             : {}\r\nManagement Classes             : []\r\nManagement Parameters          : <>\r\nName Servers                   : []\r\nName Servers Search Path       : []\r\nOwners                         : ['admin']\r\nParent Profile                 : \r\nInternal proxy                 : \r\nRed Hat Management Key         : <>\r\nRed Hat Management Server      : <>\r\nRepos                          : []\r\nServer Override                : <>\r\nTemplate Files                 : {}\r\nVirt Auto Boot                 : 1\r\nVirt Bridge                    : xenbr0\r\nVirt CPUs                      : 1\r\nVirt Disk Driver Type          : raw\r\nVirt File Size(GB)             : 5\r\nVirt Path                      : \r\nVirt RAM (MB)                  : 512\r\nVirt Type                      : kvm\r\n<\/pre>\n

\u6ce8\uff1a distros \u662f\u53d1\u884c\u7248\u672c\uff0c\u5373\u5149\u76d8\u955c\u50cf\u4fe1\u606f\u3002 profiles \u6307\u7684\u662f ks \u5e94\u7b54\u6587\u4ef6\u3002 systems \u662f\u6307\u901a Cobbler \u5b89\u88c5\u597d\u7684\u7269\u7406\u673a\u540d\u79f0\u3002<\/p>\n

[root@Jaking ~]# cd \/var\/lib\/cobbler\/kickstarts\/\r\n[root@Jaking kickstarts]# ls\r\ndefault.ks        legacy.ks            sample_esx4.ks   sample.ks\r\nesxi4-ks.cfg      pxerescue.ks         sample_esxi4.ks  sample_old.seed\r\nesxi5-ks.cfg      sample_autoyast.xml  sample_esxi5.ks  sample.seed\r\ninstall_profiles  sample_end.ks        sample_esxi6.ks  sample.seed.28\r\n<\/pre>\n

\u53ef\u4ee5\u770b\u5230\u6709\u5f88\u591a\u9ed8\u8ba4\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n

\u4e0a\u4f20 CentOS7.ks \u5230 Cobbler \u670d\u52a1\u5668\u4e0a\u3002CentOS7.ks \u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u91cc\u9762\u5b89\u88c5\u4e86\u5f00\u53d1\u5de5\u5177\u76f8\u5173\u8f6f\u4ef6\u5305\u3002<\/p>\n

[root@Jaking kickstarts]# rz\r\n\r\n\"\"\r\n\r\n[root@Jaking kickstarts]# ls\r\nCentOS7.ks    install_profiles     sample_end.ks    sample_esxi6.ks  sample.seed.28\r\ndefault.ks    legacy.ks            sample_esx4.ks   sample.ks\r\nesxi4-ks.cfg  pxerescue.ks         sample_esxi4.ks  sample_old.seed\r\nesxi5-ks.cfg  sample_autoyast.xml  sample_esxi5.ks  sample.seed\r\n\r\n[root@Jaking kickstarts]# cat CentOS7.ks\r\n# Cobbler for Kickstart Configurator for CentOS 7 by clsn\r\ninstall\r\nurl --url=$tree\r\ntext\r\nlang en_US.UTF-8\r\nkeyboard us\r\nzerombr\r\nbootloader --location=mbr --driveorder=sda --append=\"crashkernel=auto rhgb quiet\"\r\n#Network information\r\n$SNIPPET('network_config')\r\n#network --bootproto=dhcp --device=eth0 --onboot=yes --noipv6 --hostname=CentOS7\r\ntimezone --utc Asia\/Shanghai\r\nauthconfig --enableshadow --passalgo=sha512\r\nrootpw  --iscrypted $default_password_crypted\r\nclearpart --all --initlabel\r\npart \/boot --fstype xfs --size 1024\r\npart swap --size 1024\r\npart \/ --fstype xfs --size 1 --grow\r\nfirstboot --disable\r\nselinux --disabled\r\nfirewall --disabled\r\nlogging --level=info\r\nreboot\r\n\r\n%pre\r\n$SNIPPET('log_ks_pre')\r\n$SNIPPET('kickstart_start')\r\n$SNIPPET('pre_install_network_config')\r\n# Enable installation monitoring\r\n$SNIPPET('pre_anamon')\r\n%end\r\n\r\n%packages\r\n@additional-devel\r\n@development\r\n@platform-devel\r\nbash-completion\r\nchrony\r\ndos2unix\r\nkexec-tools\r\nlrzsz\r\nsysstat\r\ntree\r\nvim\r\nwget\r\ngit\r\nnet-tools\r\n%end\r\n\r\n%post\r\nsystemctl disable postfix.service\r\n%end\r\n\r\n[root@Jaking kickstarts]# cobbler profile list  #\u67e5\u770b\u5f53\u524d\u542f\u52a8\u9879\uff0c\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\r\n   CentOS-7.6-x86_64\r\n<\/pre>\n

\u4fee\u6539 name \u662f CentOS-7.6-x86_64 \u7684 kickstart \u6587\u4ef6\u4e3a CentOS7.ks<\/p>\n

[root@Jaking kickstarts]# cobbler profile edit --name CentOS-7.6-x86_64 --kickstart=\/var\/lib\/cobbler\/kickstarts\/CentOS7.ks\r\n[root@Jaking kickstarts]# cobbler report | grep Kickstart\r\nKickstart Metadata             : {'tree': 'http:\/\/@@http_server@@\/cblr\/links\/CentOS-7.6-x86_64'}\r\nKickstart                      : \/var\/lib\/cobbler\/kickstarts\/CentOS7.ks\r\nKickstart Metadata             : {}\r\n<\/pre>\n

\u901a\u8fc7\u7ed9\u5185\u6838\u4f20\u53c2\u6570\uff0c\u4fee\u6539\u7f51\u5361\u540d\u79f0\u4e3a eth0<\/p>\n

[root@Jaking kickstarts]# cobbler profile edit --name CentOS-7.6-x86_64 --kopts='net.ifnames=0 biosdevname=0'\r\n<\/pre>\n

\u914d\u7f6e\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n

[root@Jaking kickstarts]# vim CentOS7.ks #\u67e5\u770b\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\uff0c\u9ed8\u8ba4\u5c31\u53ef\u4ee5\uff0c\u4e0d\u9700\u8981\u4fee\u6539\r\n# Cobbler for Kickstart Configurator for CentOS 7 by clsn\r\nInstall                 #\u5b89\u88c5\u7cfb\u7edf\r\nurl --url=$tree      #url \u5730\u5740\u4e3a Cobbler \u5185\u7f6e\u53d8\u91cf\r\ntext                    #\u6587\u672c\u65b9\u5f0f\u5b89\u88c5\uff0c\u4fee\u6539\u4e3a\u56fe\u5f62\u754c\u9762\u5219\u4e3a Graphical\r\nlang en_US.UTF-8 #\u8bed\u8a00\r\nkeyboard us         #\u952e\u76d8\r\nzerombr              #\u8be5\u53c2\u6570\u7528\u4e8e\u6e05\u9664\u5f15\u5bfc\u4fe1\u606f\uff0c\u9700\u8981\u8ba9\u5176\u751f\u6548\u53ef\u4ee5\u5728\u53c2\u6570\u540e\u6dfb\u52a0 yes \u5373\u53ef\u3002\u53ef\u9009\u9879\uff0c\u4e00\u822c\u4e0d\u7528\u3002\r\nbootloader --location=mbr --driveorder=sda --append=\"crashkernel=auto rhgb quiet\"\r\n#\u6307\u5b9a\u5f15\u5bfc\u88c5\u8f7d\u7a0b\u5e8f\u600e\u6837\u88ab\u5b89\u88c5.\u5bf9\u4e8e\u5b89\u88c5\u548c\u5347\u7ea7,\u8fd9\u4e2a\u9009\u9879\u90fd\u662f\u5fc5\u9700\u7684.\r\n#Network information\r\n$SNIPPET('network_config') #\u8be5\u53c2\u6570\u8868\u793a\u4f7f\u7528\u4e0b\u65b9%pre \u4e2d\u7684\u811a\u672c\u6765\u914d\u7f6e\u7f51\u7edc\uff0c\u76f8\u5173\u811a\u672c\u5b58\u653e\u4e8e\/var\/lib\/cobbler\/snippets\r\n#\u5982\u679c\u4e0d\u9700\u8981\u811a\u672c\u914d\u7f6e\u53ef\u542f\u7528\u4ee5\u4e0b\u914d\u7f6e\r\n#network --bootproto=dhcp --device=eth0 --onboot=yes --noipv6\r\n--hostname=CentOS7\r\ntimezone --utc Asia\/Shanghai #\u65f6\u533a\r\nauthconfig --enableshadow --passalgo=sha512 #\u52a0\u5bc6 shadow\r\nrootpw --iscrypted $default_password_crypted #\u8bbe\u7f6e root \u5bc6\u7801\r\nclearpart --all --initlabel #--all \u521d\u9664\u6240\u6709\u5206\u533a\uff0c\u540e\u8005\u5c06\u78c1\u76d8\u6807\u7b7e\u521d\u59cb\u5316\u4e3a\u7f3a\u7701\u503c\u8bbe\u7f6e\u3002\r\npart \/boot --fstype xfs --size 1024 #boot\u5206\u533a\u5927\u5c0f\r\npart swap --size 1024 #swap\u5206\u533a\u5927\u5c0f\r\npart \/ --fstype xfs --size 1 --grow #\u6839\u5206\u533a\u5927\u5c0f\r\nfirstboot --disable #\u51b3\u5b9a\u662f\u5426\u5728\u7cfb\u7edf\u7b2c\u4e00\u6b21\u5f15\u5bfc\u65f6\u542f\u52a8\"\u8bbe\u7f6e\u4ee3\u7406\u201d\uff0c\u7981\u7528\u3002\r\nselinux --disabled #\u5728\u7cfb\u7edf\u91cc\u8bbe\u7f6e SELinux \u72b6\u6001\r\nfirewall --disabled #\u5728\u7cfb\u7edf\u72f8\u8bbe\u7f6e\u800c\u9632\u706b\u5899\u72b6\u6001\r\nlogging --level=info #\u8fd9\u4e2a\u547d\u4ee4\u63a7\u5236\u5b89\u88c5\u8fc7\u7a0b\u4e2danaconda\u7684\u9519\u8bef\u65e5\u5fd7\uff0c\u5b83\u5bf9\u5b89\u88c5\u597d\u7684\u7cfb\u7edf\u6ca1\u6709\u5f71\u54cd\u3002\r\nreboot #\u5b89\u88c5\u540e\u91cd\u542f\r\n%pre #pre \u4e2d\u5b9a\u4e86\u524d\u9762\u4f7f\u7528\u7684\u5177\u4f53\u811a\u672c\u540d\u79f0\u3002\r\n$SNIPPET('log_ks_pre')\r\n$SNIPPET('kickstart_start')\r\n$SNIPPET('pre_install_network_config')\r\n# Enable installation monitoring\r\n$SNIPPET('pre_anamon')\r\n%end\r\n%packages #\u81ea\u5b9a\u4e49\u5b89\u88c5\u5185\u5bb9\uff0c\u8fd9\u91cc\u53ef\u4ee5\u53ef\u4ee5\u81ea\u884c\u751f\u6210 ks \u6587\u4ef6\u7136\u540e\u628a\u5bf9\u5e94\u7684\u914d\u7f6e\u590d\u5236\u5230\u8fd9\u91cc\u3002\u5f53\u524d\u914d\u7f6e\u4e3a\u6700\u5c0f\u5316\u5b89\u88c5\uff0c\u4ee5\u53ca\u5b89\u88c5\u7cfb\u7edf\u5e38\u7528\u5de5\u5177\u3002\r\n@additional-devel\r\n@development\r\n@platform-devel\r\nbash-completion\r\nchrony\r\ndos2unix\r\nkexec-tools\r\nlrzsz\r\nsysstat\r\ntree\r\nvim\r\nwget\r\ngit\r\nnet-tools\r\n%end\r\n%post #\u5b89\u88c5\u540e\u6267\u884c\u64cd\u4f5c\uff0c\u53ef\u4ee5\u6267\u884c\u811a\u672c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u6267\u884c\u547d\u4ee4\u3002\r\nsystemctl disable postfix.service\r\n%end\r\n<\/pre>\n

\u5b9a\u5236 Cobbler \u5f15\u5bfc\u83dc\u5355\uff08\u540d\u79f0\u3001\u8d85\u65f6\u65f6\u95f4\u3001\u9ed8\u8ba4\u542f\u52a8\u83dc\u5355\uff09<\/p>\n

[root@Jaking kickstarts]# vim \/etc\/cobbler\/pxe\/pxedefault.template\r\nDEFAULT menu\r\nPROMPT 0\r\nMENU TITLE Jaking #\u83dc\u5355\u540d\u79f0\r\nTIMEOUT 100 #\u8d85\u65f6\u65f6\u95f4\r\nTOTALTIMEOUT 6000\r\nONTIMEOUT $pxe_timeout_profile\r\n\r\nLABEL local\r\n        MENU LABEL (local)\r\n        MENU DEFAULT\r\n        LOCALBOOT -1\r\n        \r\n$pxe_menu_items   #\u8be5\u53d8\u91cf\u662f\u6211\u81ea\u5b9a\u4e49\u7684\u5f15\u5bfc\u83dc\u5355\uff0c\u590d\u5236\u5230 LABEL local \u914d\u7f6e\u9879\u4e0a\u65b9\uff0c\u5426\u5219\u9ed8\u8ba4\u542f\u52a8\u8fd8\u662f local\u3002\r\n\r\nMENU end\r\n<\/pre>\n

\u540c\u6b65 Cobbler \u914d\u7f6e<\/p>\n

[root@Jaking kickstarts]# systemctl restart cobblerd\r\n[root@Jaking kickstarts]# cobbler sync\r\ntask started: 2020-01-04_050537_sync\r\ntask started (id=Sync, time=Sat Jan  4 05:05:37 2020)\r\nrunning pre-sync triggers\r\ncleaning trees\r\nremoving: \/var\/www\/cobbler\/images\/CentOS-7.6-x86_64\r\nremoving: \/var\/lib\/tftpboot\/pxelinux.cfg\/default\r\nremoving: \/var\/lib\/tftpboot\/grub\/images\r\nremoving: \/var\/lib\/tftpboot\/grub\/grub-x86.efi\r\nremoving: \/var\/lib\/tftpboot\/grub\/grub-x86_64.efi\r\nremoving: \/var\/lib\/tftpboot\/grub\/efidefault\r\nremoving: \/var\/lib\/tftpboot\/images\/CentOS-7.6-x86_64\r\nremoving: \/var\/lib\/tftpboot\/s390x\/profile_list\r\ncopying bootloaders\r\ntrying hardlink \/var\/lib\/cobbler\/loaders\/grub-x86.efi -> \/var\/lib\/tftpboot\/grub\/grub-x86.efi\r\ntrying hardlink \/var\/lib\/cobbler\/loaders\/grub-x86_64.efi -> \/var\/lib\/tftpboot\/grub\/grub-x86_64.efi\r\ncopying distros to tftpboot\r\ncopying files for distro: CentOS-7.6-x86_64\r\ntrying hardlink \/var\/www\/cobbler\/ks_mirror\/CentOS-7.6-x86_64\/images\/pxeboot\/vmlinuz -> \/var\/lib\/tftpboot\/images\/CentOS-7.6-x86_64\/vmlinuz\r\ntrying hardlink \/var\/www\/cobbler\/ks_mirror\/CentOS-7.6-x86_64\/images\/pxeboot\/initrd.img -> \/var\/lib\/tftpboot\/images\/CentOS-7.6-x86_64\/initrd.img\r\ncopying images\r\ngenerating PXE configuration files\r\ngenerating PXE menu structure\r\ncopying files for distro: CentOS-7.6-x86_64\r\ntrying hardlink \/var\/www\/cobbler\/ks_mirror\/CentOS-7.6-x86_64\/images\/pxeboot\/vmlinuz -> \/var\/www\/cobbler\/images\/CentOS-7.6-x86_64\/vmlinuz\r\ntrying hardlink \/var\/www\/cobbler\/ks_mirror\/CentOS-7.6-x86_64\/images\/pxeboot\/initrd.img -> \/var\/www\/cobbler\/images\/CentOS-7.6-x86_64\/initrd.img\r\nWriting template files for CentOS-7.6-x86_64\r\nrendering DHCP files\r\ngenerating \/etc\/dhcp\/dhcpd.conf\r\nrendering TFTPD files\r\ngenerating \/etc\/xinetd.d\/tftp\r\nprocessing boot_files for distro: CentOS-7.6-x86_64\r\ncleaning link caches\r\nrunning post-sync triggers\r\nrunning python triggers from \/var\/lib\/cobbler\/triggers\/sync\/post\/*\r\nrunning python trigger cobbler.modules.sync_post_restart_services\r\nrunning: dhcpd -t -q\r\nreceived on stdout: \r\nreceived on stderr: \r\nrunning: service dhcpd restart\r\nreceived on stdout: \r\nreceived on stderr: Redirecting to \/bin\/systemctl restart dhcpd.service\r\n\r\nrunning shell triggers from \/var\/lib\/cobbler\/triggers\/sync\/post\/*\r\nrunning python triggers from \/var\/lib\/cobbler\/triggers\/change\/*\r\nrunning python trigger cobbler.modules.manage_genders\r\nrunning python trigger cobbler.modules.scm_track\r\nrunning shell triggers from \/var\/lib\/cobbler\/triggers\/change\/*\r\n*** TASK COMPLETE ***\r\n<\/pre>\n

\u65b0\u5efa\u865a\u62df\u673a\u8fdb\u884c\u6d4b\u8bd5\u3002<\/p>\n

\"\"<\/p>\n

\u6ce8\u610f\uff1a\u5185\u5b58\u8981\u8db3\u591f\u5927\uff0c\u7f51\u7edc\u6a21\u5f0f\u8981\u548c Cobbler \u670d\u52a1\u7aef\u7684\u7f51\u7edc\u6a21\u5f0f\u4e00\u81f4\u3002<\/p>\n

\u521b\u5efa\u8fc7\u7a0b\u7701\u7565\uff0c\u76f4\u63a5\u6765\u5230\u5f00\u673a\u542f\u52a8\u754c\u9762\uff1a<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\u53ef\u4ee5\u770b\u5230\uff0c\u9700\u8981\u5b89\u88c5 1262 \u4e2a\u5305\uff0c\u4e0d\u518d\u662f\u539f\u6765\u7684\u6700\u5c0f\u5316\u5b89\u88c5\u4e86\u3002<\/p>\n

\"\"<\/p>\n

\u5b89\u88c5\u6210\u529f\u540e\uff0c\u9ed8\u8ba4\u542f\u52a8\u547d\u4ee4\u884c\u6a21\u5f0f
\n\u8f93\u5165 root 123456 \u767b\u5f55\u7cfb\u7edf\uff1a<\/p>\n

\"\"<\/p>\n

\u8bbe\u7f6e\u9ed8\u8ba4\u542f\u52a8\u6a21\u5f0f\u4e3a\u56fe\u5f62\u5316\u6a21\u5f0f graphical.target<\/p>\n

[root@localhost ~]# systemctl get-default\r\nmulti-user.target\r\n[root@localhost ~]# systemctl set-default graphical.target\r\nRemoved symlink \/etc\/systemd\/system\/default.target.\r\nCreated symlink from \/etc\/systemd\/system\/default.target to \/usr\/lib\/systemd\/system\/graphical.target.\r\n[root@localhost ~]# systemctl get-default                 \r\ngraphical.target\r\n[root@localhost ~]# reboot\r\n<\/pre>\n

\"\"<\/p>\n

\u4e0d\u80fd\u6b63\u5e38\u542f\u52a8\u56fe\u5f62\u5316\u6a21\u5f0f<\/p>\n

\u89e3\u51b3\u65b9\u6cd5<\/strong><\/div>\n

\u5b89\u88c5\u56fe\u5f62\u5316\u8f6f\u4ef6<\/p>\n

[root@localhost ~]# yum install -y xorg* gnome* glx*\r\n<\/pre>\n

\u5207\u6362\u5230\u56fe\u5f62\u5316\u6a21\u5f0f<\/p>\n

[root@localhost ~]# init 5<\/pre>\n

\"\"
\n\"\"<\/p>\n","protected":false},"excerpt":{"rendered":"

\u73af\u5883\uff1a CentOS Linux release 7.6.1810 VMware Workstation Pr […]<\/p>\n","protected":false},"author":63,"featured_media":170773,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-170731","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/170731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=170731"}],"version-history":[{"count":10,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/170731\/revisions"}],"predecessor-version":[{"id":170798,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/170731\/revisions\/170798"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/170773"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=170731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=170731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=170731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}