{"id":5973,"date":"2021-08-26T01:05:28","date_gmt":"2021-08-25T16:05:28","guid":{"rendered":"https:\/\/www.wexal.jp\/document-3-0-0\/setting\/initial-setting-command\/"},"modified":"2022-12-29T14:34:35","modified_gmt":"2022-12-29T05:34:35","slug":"initial-setting-command","status":"publish","type":"page","link":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/setting\/initial-setting-command\/","title":{"rendered":"For First-time Users - Setup by PST Commands (3.0.0)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Updating_PST_Modules\"><\/span>Updating PST Modules<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Please use the latest version of WEXAL\u00ae Page Speed Technology (hereinafter referred to as \"PST\"). The latest version continuously applies bug fixes, security updates, and implements changes in evolving web technology. Root privileges are necessary to update.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo yum update kusanagi-prem3<\/code><\/pre>\n\n\n\n<p>or<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ su -\n&#91;root@kusanagi8 ~]# yum update kusanagi-prem3<\/code><\/pre>\n\n\n\n<p>If the following message is displayed, PST (3.x) is not installed. Refer to <a href=\"..\/setting\/migrate-setting-command\/\" data-type=\"URL\" data-id=\"..\/setting\/migrate-setting-command\/\">\"When migrating from a previous PST (2.x)\"<\/a> for more information.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>No packages marked for update<\/code><\/pre>\n\n\n\n<p>or<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Package(s) kusanagi-prem3 available, but not installed.\nNo packages marked for update<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Configuring_Initial_Profile_Settings\"><\/span>Configuring Initial Profile Settings<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To activate PST, select one KUSANAGI profile in which to configure the intial settings. The initial settings are executed with the \"pst init\" command. The profile is specified at the end of the \"pst\" command. Or, the command can be executed from the profile directory (as the current directory.)<\/p>\n\n\n\n<p>To execute the \"pst\" command,\"kusanagi\" user or root privileges are required. If you want to enable PST for multiple profiles, please configure initial settings for each profile.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;kusanagi@kusanagi8 ~]$ pst init %PROFILE-NAME%<\/code><\/pre>\n\n\n\n<p>or<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;kusanagi@kusanagi8 ~]$ cd \/home\/kusanagi\/%PROFILE-NAME%\n&#91;kusanagi@kusanagi8 %PROFILE-NAME%]$ pst init<\/code><\/pre>\n\n\n\n<p>Once the initial PST settings are complete, the PST Manager URL will be displayed.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pst watch stopped.\npst watch started.\nInfo: open WEXAL manager form http:\/\/xxx.xxx.xxx.xxx:61000<\/code><\/pre>\n\n\n\n<p>The following steps can also be performed through PST Manager. If you use PST Manager to set up, refer to <a href=\"..\/setting\/initial-setting-manager\/\" data-type=\"URL\" data-id=\"..\/setting\/initial-setting-manager\/\">\"For first-time users - Setup in PST Manager\"<\/a> for more information.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Enabling_PST\"><\/span>Enabling PST<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Enable PST for a profile that has completed the initial setup. PST is enabled with the \"pst on\" command. The profile is specified at the end of the \"pst\" command. Or, the command can be executed from the profile directory (as the current directory.) To execute the \"pst\" command,\"kusanagi\" user or root privileges are required.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;kusanagi@kusanagi8 ~]$ pst on %PROFILE-NAME%<\/code><\/pre>\n\n\n\n<p>or<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;kusanagi@kusanagi8 ~]$ cd \/home\/kusanagi\/%PROFILE-NAME%\n&#91;kusanagi@kusanagi8 %PROFILE-NAME%]$ pst on<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Checking_PST_Status\"><\/span>Checking PST Status<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First, check if PST is enabled. Run \"pst status\" command to display PST status. The profile is specified at the end of the \"pst\" command. Or, the command can be executed from the profile directory (as the current directory.) To execute the \"pst\" command,\"kusanagi\" user or root privileges are required.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;kusanagi@kusanagi8 ~]$ pst status %PROFILE-NAME%\nWEXAL Page Speed Technology = on\nWatch = on<\/code><\/pre>\n\n\n\n<p>or<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;kusanagi@kusanagi8 ~]$ cd \/home\/kusanagi\/%PROFILE-NAME%\n&#91;kusanagi@kusanagi8 %PROFILE-NAME%]$ pst status\nWEXAL Page Speed Technology = on\nWatch = on<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Modifying_PST_Configurations\"><\/span>Modifying PST Configurations<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You can change PST settings by editing the configuration file. The format is YAML. The configuration file is \"wexal\/pst.config.yaml\" in the profile directory. Refer to the <a href=\".\/document-3-0-0\/pst-config-file\/\" data-type=\"URL\" data-id=\".\/document-3-0-0\/pst-config-file\/\">\"PST Configuration File\"<\/a> for more information.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Optimizing_Resources\"><\/span>Optimizing Resources<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>PST Resource Monitoring Service (watch) monitors changes to resources in profiles and generates optimized resource files for images, scripts, and style sheets in response to updates. However, for resources that existed in a profile before executing the initial PST configuration, an optimized resource file will not be generated until the resource is updated. Therefore, it is necessary to generate an optimized resource file for the resources in the profile.<\/p>\n\n\n\n<p>Run the \"pst opt all\" command to perform resource optimization. The profile is specified at the end of the \"pst\" command. Or, the command can be executed from the profile directory (as the current directory.) To execute the \"pst\" command,\"kusanagi\" user or root privileges are required.<\/p>\n\n\n\n<p>Resource optimization will take time if the number of resource files is large. By limiting the number of target directories to be optimized, optimization time can be shortened. The optimization time can also be shortened by using the \"pst opt image\", \"pst opt js\", and \"pst opt css\" commands instead of the \"pst opt all\" command to limit the resources to be optimized. Refer to <a href=\".\/document-3-0-0\/pst-command\/\" data-type=\"URL\" data-id=\".\/document-3-0-0\/pst-command\/\">\"PST Commands\"<\/a> for more information.<a href=\"https:\/\/www.wexal.jp\/document-3-0-0\/pst-command\"><\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;kusanagi@kusanagi8 ~]$ pst opt all %PROFILE-NAME%<\/code><\/pre>\n\n\n\n<p>or<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;kusanagi@kusanagi8 ~]$ cd \/home\/kusanagi\/%PROFILE-NAME%\n&#91;kusanagi@kusanagi8 %PROFILE-NAME%]$ pst opt all<\/code><\/pre>\n\n\n\n<p>You can check the progress of resource optimization with the \"pst queue\" command. To execute the \"pst\" command,\"kusanagi\" user or root privileges are required.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;kusanagi@kusanagi8 ~]$ pst queue<\/code><\/pre>\n\n\n\n<p>If the value of the Resource Optimization Service \"optimizer\" queue is 0, resource optimization is complete. Also, you can check if there are optimized resource files under the \"wexal\/optdir\" directory in the profile. Below is an example of checking optimized resources for images uploaded in August 2021.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;kusanagi@kusanagi8 ~]$ ls -l \/home\/kusanagi\/%PROFILE-NAME%\/wexal\/optdir\/wp-content\/uploads\/2021\/08\n-rw-r--r--. 1 root root 106707  August  3 09:50 img1-1024x640.jpg\n-rw-r--r--. 1 root root  44520  August  3 09:50 img1-1024x640.jpg.webp\n-rw-r--r--. 1 root root 137492  August  3 09:50 img1-1200x750.jpg\n-rw-r--r--. 1 root root  57288  August  3 09:50 img1-1200x750.jpg.webp\n-rw-r--r--. 1 root root   7489  August  3 09:50 img1-150x150.jpg\n-rw-r--r--. 1 root root   3782  August  3 09:50 img1-150x150.jpg.webp\n-rw-r--r--. 1 root root 204712  August  3 09:50 img1-1536x960.jpg\n-rw-r--r--. 1 root root  82396  August  3 09:50 img1-1536x960.jpg.webp\n-rw-r--r--. 1 root root  14863  August  3 09:50 img1-300x188.jpg\n-rw-r--r--. 1 root root   6956  August  3 09:50 img1-300x188.jpg.webp\n-rw-r--r--. 1 root root  66012  August  3 09:50 img1-768x480.jpg\n-rw-r--r--. 1 root root  27914  August  3 09:50 img1-768x480.jpg.webp\n-rw-r--r--. 1 root root 252283  August  3 09:50 img1.jpg\n-rw-r--r--. 1 root root 103324  August  3 09:50 img1.jpg.webp<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Updating PST Modules Please use the latest version of WEXAL\u00ae Page Speed Technology (hereinafter referred to as \"PST\"). The latest version continuously applies bug fixes, security updates, and implements changes in evolving web technology. Root privileges are necessary to update. or If the following message is displayed, PST (3.x) is not installed. Refer to \"When migrating from a previous PST (2.x)\" for more information. or Configuring Initial Profile Settings To activate PST, select one KUSANAGI profile in which to configure the intial settings. The initial settings are executed with the \"pst init\" command. The profile is specified at the end of the \"pst\" command. Or, the command can be executed ... <\/p>\n<p class=\"read-more-container\"><a title=\"For First-time Users - Setup by PST Commands (3.0.0)\" class=\"read-more button\" href=\"https:\/\/www.wexal.jp\/en\/document-3-0-0\/setting\/initial-setting-command\/#more-5973\" aria-label=\"Read more about For First-time Users - Setup by PST Commands (3.0.0)\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":5963,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"version":[16],"class_list":["post-5973","page","type-page","status-publish"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>For First-time Users - Setup by PST Commands (3.0.0) - WEXAL\u00ae Page Speed Technology<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wexal.jp\/en\/document-3-0-0\/setting\/initial-setting-command\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"For First-time Users - Setup by PST Commands (3.0.0) - WEXAL\u00ae Page Speed Technology\" \/>\n<meta property=\"og:description\" content=\"Updating PST Modules Please use the latest version of WEXAL\u00ae Page Speed Technology (hereinafter referred to as &quot;PST&quot;). The latest version continuously applies bug fixes, security updates, and implements changes in evolving web technology. Root privileges are necessary to update. or If the following message is displayed, PST (3.x) is not installed. Refer to &quot;When migrating from a previous PST (2.x)&quot; for more information. or Configuring Initial Profile Settings To activate PST, select one KUSANAGI profile in which to configure the intial settings. The initial settings are executed with the &quot;pst init&quot; command. The profile is specified at the end of the &quot;pst&quot; command. Or, the command can be executed ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wexal.jp\/en\/document-3-0-0\/setting\/initial-setting-command\/\" \/>\n<meta property=\"og:site_name\" content=\"WEXAL\u00ae Page Speed Technology\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-29T05:34:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wexal.jp\/wp-content\/uploads\/2021\/10\/wexal_og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/setting\\\/initial-setting-command\\\/\",\"url\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/setting\\\/initial-setting-command\\\/\",\"name\":\"For First-time Users - Setup by PST Commands (3.0.0) - WEXAL\u00ae Page Speed Technology\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wexal.jp\\\/#website\"},\"datePublished\":\"2021-08-25T16:05:28+00:00\",\"dateModified\":\"2022-12-29T05:34:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/setting\\\/initial-setting-command\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/setting\\\/initial-setting-command\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/setting\\\/initial-setting-command\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documentation (3.0.0)\",\"item\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Settings (3.0.0)\",\"item\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/setting\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"For First-time Users - Setup by PST Commands (3.0.0)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wexal.jp\\\/#website\",\"url\":\"https:\\\/\\\/www.wexal.jp\\\/\",\"name\":\"WEXAL\u00ae Page Speed Technology\",\"description\":\"the best UX for all Websites.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wexal.jp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"For First-time Users - Setup by PST Commands (3.0.0) - WEXAL\u00ae Page Speed Technology","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/setting\/initial-setting-command\/","og_locale":"en_US","og_type":"article","og_title":"For First-time Users - Setup by PST Commands (3.0.0) - WEXAL\u00ae Page Speed Technology","og_description":"Updating PST Modules Please use the latest version of WEXAL\u00ae Page Speed Technology (hereinafter referred to as \"PST\"). The latest version continuously applies bug fixes, security updates, and implements changes in evolving web technology. Root privileges are necessary to update. or If the following message is displayed, PST (3.x) is not installed. Refer to \"When migrating from a previous PST (2.x)\" for more information. or Configuring Initial Profile Settings To activate PST, select one KUSANAGI profile in which to configure the intial settings. The initial settings are executed with the \"pst init\" command. The profile is specified at the end of the \"pst\" command. Or, the command can be executed ... Read more","og_url":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/setting\/initial-setting-command\/","og_site_name":"WEXAL\u00ae Page Speed Technology","article_modified_time":"2022-12-29T05:34:35+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.wexal.jp\/wp-content\/uploads\/2021\/10\/wexal_og.png","type":"image\/png"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/setting\/initial-setting-command\/","url":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/setting\/initial-setting-command\/","name":"For First-time Users - Setup by PST Commands (3.0.0) - WEXAL\u00ae Page Speed Technology","isPartOf":{"@id":"https:\/\/www.wexal.jp\/#website"},"datePublished":"2021-08-25T16:05:28+00:00","dateModified":"2022-12-29T05:34:35+00:00","breadcrumb":{"@id":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/setting\/initial-setting-command\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wexal.jp\/en\/document-3-0-0\/setting\/initial-setting-command\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/setting\/initial-setting-command\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wexal.jp\/en\/"},{"@type":"ListItem","position":2,"name":"Documentation (3.0.0)","item":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/"},{"@type":"ListItem","position":3,"name":"Settings (3.0.0)","item":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/setting\/"},{"@type":"ListItem","position":4,"name":"For First-time Users - Setup by PST Commands (3.0.0)"}]},{"@type":"WebSite","@id":"https:\/\/www.wexal.jp\/#website","url":"https:\/\/www.wexal.jp\/","name":"WEXAL\u00ae Page Speed Technology","description":"the best UX for all Websites.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wexal.jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/pages\/5973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/comments?post=5973"}],"version-history":[{"count":4,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/pages\/5973\/revisions"}],"predecessor-version":[{"id":6488,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/pages\/5973\/revisions\/6488"}],"up":[{"embeddable":true,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/pages\/5963"}],"wp:attachment":[{"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/media?parent=5973"}],"wp:term":[{"taxonomy":"version","embeddable":true,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/version?post=5973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}