生成api jwt secret

php bin/console lexik:jwt:generate-keypair

将用户加入到管理端api角色中

bin/console sylius:user:promote [email protected] ROLE_API_ACCESS --user-type=admin

分类: 知识 标签: 暂无标签

评论


( ! ) Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /www/wwwroot/blog.laialex.com/var/Typecho/Db/Adapter/Pdo.php on line 108
Call Stack
#TimeMemoryFunctionLocation
10.0001361280{main}( ).../index.php:0
20.0040497232Typecho\Router::dispatch( ).../index.php:23
30.0099525720Widget\Archive->render( ).../Router.php:99
40.0101526680require_once( '/www/wwwroot/blog.laialex.com/usr/themes/Typecho_Theme_JJ/post.php ).../Archive.php:1418
50.6992568400Widget\Archive->need( $fileName = './php_modules/comment/comment.php' ).../post.php:27
60.6993568840require( '/www/wwwroot/blog.laialex.com/usr/themes/Typecho_Theme_JJ/php_modules/comment/comment.php ).../Archive.php:1336
70.6993568856Widget\Archive->need( $fileName = '/php_modules/comment/comment_form.php' ).../comment.php:6
80.6994569752require( '/www/wwwroot/blog.laialex.com/usr/themes/Typecho_Theme_JJ/php_modules/comment/comment_form.php ).../Archive.php:1336
90.6994569752Widget\Archive->comments( ).../comment_form.php:1
100.6997571672Typecho\Widget::alloc( $params = ['parentId' => 130, 'parentContent' => ['cid' => 130, 'title' => 'sylius系统api启用', 'slug' => 'sylius-xi-tong-api-qi-yong', 'created' => 1721444793, 'authorId' => 1, 'modified' => 1724837608, 'type' => 'post', 'status' => 'publish', 'text' => '生成api jwt secret\r\n\r\nphp bin/console lexik:jwt:generate-keypair\r\n\r\n将用户加入到管理端api角色中\r\n\r\nbin/console sylius:user:promote [email protected] ROLE_API_ACCESS --user-type=admin', 'commentsNum' => 33736, 'order' => 0, 'template' => NULL, 'password' => NULL, 'allowComment' => '1', 'allowPing' => '0', 'allowFeed' => '1', 'parent' => 0, 'categories' => [...], 'category' => 'knowledge', 'directory' => [...], 'date' => class Typecho\Date { ... }, 'year' => '2024', 'month' => '07', 'day' => '20', 'hidden' => FALSE, 'pathinfo' => '/archives/130/', 'permalink' => 'https://blog.laialex.com/archives/130/', 'url' => 'https://blog.laialex.com/archives/130/', 'isMarkdown' => FALSE, 'feedUrl' => 'https://blog.laialex.com/feed/archives/130/', 'feedRssUrl' => 'https://blog.laialex.com/feed/rss/archives/130/', 'feedAtomUrl' => 'https://blog.laialex.com/feed/atom/archives/130/', 'content' => '<p>生成api jwt secret</p><p>php bin/console lexik:jwt:generate-keypair</p><p>将用户加入到管理端api角色中</p><p>bin/console sylius:user:promote [email protected] ROLE_API_ACCESS --user-type=admin</p>'], 'respondId' => 'respond-post-130', 'commentPage' => 0, 'allowComment' => TRUE], $request = ???, $disableSandboxOrCallback = ??? ).../Archive.php:916
110.6997571672Typecho\Widget::widget( $alias = 'Widget\\Comments\\Archive', $params = ['parentId' => 130, 'parentContent' => ['cid' => 130, 'title' => 'sylius系统api启用', 'slug' => 'sylius-xi-tong-api-qi-yong', 'created' => 1721444793, 'authorId' => 1, 'modified' => 1724837608, 'type' => 'post', 'status' => 'publish', 'text' => '生成api jwt secret\r\n\r\nphp bin/console lexik:jwt:generate-keypair\r\n\r\n将用户加入到管理端api角色中\r\n\r\nbin/console sylius:user:promote [email protected] ROLE_API_ACCESS --user-type=admin', 'commentsNum' => 33736, 'order' => 0, 'template' => NULL, 'password' => NULL, 'allowComment' => '1', 'allowPing' => '0', 'allowFeed' => '1', 'parent' => 0, 'categories' => [...], 'category' => 'knowledge', 'directory' => [...], 'date' => class Typecho\Date { ... }, 'year' => '2024', 'month' => '07', 'day' => '20', 'hidden' => FALSE, 'pathinfo' => '/archives/130/', 'permalink' => 'https://blog.laialex.com/archives/130/', 'url' => 'https://blog.laialex.com/archives/130/', 'isMarkdown' => FALSE, 'feedUrl' => 'https://blog.laialex.com/feed/archives/130/', 'feedRssUrl' => 'https://blog.laialex.com/feed/rss/archives/130/', 'feedAtomUrl' => 'https://blog.laialex.com/feed/atom/archives/130/', 'content' => '<p>生成api jwt secret</p><p>php bin/console lexik:jwt:generate-keypair</p><p>将用户加入到管理端api角色中</p><p>bin/console sylius:user:promote [email protected] ROLE_API_ACCESS --user-type=admin</p>'], 'respondId' => 'respond-post-130', 'commentPage' => 0, 'allowComment' => TRUE], $request = NULL, $disableSandboxOrCallback = TRUE ).../Widget.php:187
120.6997572768Widget\Comments\Archive->execute( ).../Widget.php:155
130.7005575120Typecho\Db->fetchAll( $query = class Typecho\Db\Query { private $adapter = class Typecho\Db\Adapter\Pdo\Mysql { protected $object = class PDO { ... }; protected $lastTable = 'blog_comments' }; private $sqlPreBuild = ['action' => 'SELECT', 'table' => 'blog_comments', 'fields' => 'blog_comments.`coid` , blog_comments.`cid` , blog_comments.`author` , blog_comments.`mail` , blog_comments.`url` , blog_comments.`ip` , blog_comments.`authorId` , blog_comments.`ownerId` , blog_comments.`agent` , blog_comments.`text` , blog_comments.`type` , blog_comments.`status` , blog_comments.`parent` , blog_comments.`created` ', 'join' => [...], 'where' => ' WHERE (blog_comments.`cid` = #param:0# ) AND (blog_comments.`status` = #param:1# OR (blog_comments.`author` = #param:2# AND blog_comments.`mail` = #param:3# AND blog_comments.`status` = #param:4#) )', 'limit' => NULL, 'offset' => NULL, 'order' => ' ORDER BY blog_comments.`coid` ASC', 'group' => NULL, 'having' => NULL, 'rows' => [...]]; private $prefix = 'blog_'; private $params = [0 => 130, 1 => 'approved', 2 => NULL, 3 => NULL, 4 => 'waiting'] }, $filter = [0 => class Widget\Comments\Archive { protected $request = class Typecho\Widget\Request { ... }; protected $response = class Typecho\Widget\Response { ... }; protected $stack = [...]; protected $sequence = 0; protected $length = 0; protected $parameter = class Typecho\Config { ... }; protected $row = [...]; protected $options = class Widget\Options { ... }; protected $user = class Widget\User { ... }; protected $security = class Widget\Security { ... }; protected $db = class Typecho\Db { ... }; private $currentPage = NULL; private $total = FALSE; private $threadedComments = [...]; private $singleCommentOptions = NULL }, 1 => 'push'] ).../Archive.php:111
140.7005575120Typecho\Db->query( $query = class Typecho\Db\Query { private $adapter = class Typecho\Db\Adapter\Pdo\Mysql { protected $object = class PDO { ... }; protected $lastTable = 'blog_comments' }; private $sqlPreBuild = ['action' => 'SELECT', 'table' => 'blog_comments', 'fields' => 'blog_comments.`coid` , blog_comments.`cid` , blog_comments.`author` , blog_comments.`mail` , blog_comments.`url` , blog_comments.`ip` , blog_comments.`authorId` , blog_comments.`ownerId` , blog_comments.`agent` , blog_comments.`text` , blog_comments.`type` , blog_comments.`status` , blog_comments.`parent` , blog_comments.`created` ', 'join' => [...], 'where' => ' WHERE (blog_comments.`cid` = #param:0# ) AND (blog_comments.`status` = #param:1# OR (blog_comments.`author` = #param:2# AND blog_comments.`mail` = #param:3# AND blog_comments.`status` = #param:4#) )', 'limit' => NULL, 'offset' => NULL, 'order' => ' ORDER BY blog_comments.`coid` ASC', 'group' => NULL, 'having' => NULL, 'rows' => [...]]; private $prefix = 'blog_'; private $params = [0 => 130, 1 => 'approved', 2 => NULL, 3 => NULL, 4 => 'waiting'] }, $op = ???, $action = ??? ).../Db.php:424
150.7005575760Typecho\Db\Adapter\Pdo->query( $query = 'SELECT blog_comments.`coid` , blog_comments.`cid` , blog_comments.`author` , blog_comments.`mail` , blog_comments.`url` , blog_comments.`ip` , blog_comments.`authorId` , blog_comments.`ownerId` , blog_comments.`agent` , blog_comments.`text` , blog_comments.`type` , blog_comments.`status` , blog_comments.`parent` , blog_comments.`created` FROM blog_comments WHERE (blog_comments.`cid` = \'130\' ) AND (blog_comments.`status` = \'approved\' OR (blog_comments.`author` = NULL AND blog_comments.`mail` = NULL AND blo'..., $handle = class PDO { }, $op = 1, $action = 'SELECT', $table = 'blog_comments' ).../Db.php:391
160.7005576192execute( ).../Pdo.php:108