{"action":"opened","issue":{"url":"https://api.github.com/repos/Tencent/bk-cmdb/issues/8","repository_url":"https://api.github.com/repos/Tencent/bk-cmdb","labels_url":"https://api.github.com/repos/Tencent/bk-cmdb/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/Tencent/bk-cmdb/issues/8/comments","events_url":"https://api.github.com/repos/Tencent/bk-cmdb/issues/8/events","html_url":"https://github.com/Tencent/bk-cmdb/issues/8","id":196947942,"number":8,"title":"访问主页时/account/login?cburl=参数为空，","user":{"login":"huangmeng4520","id":8178576,"avatar_url":"https://avatars.githubusercontent.com/u/8178576?v=3","gravatar_id":"","url":"https://api.github.com/users/huangmeng4520","html_url":"https://github.com/huangmeng4520","followers_url":"https://api.github.com/users/huangmeng4520/followers","following_url":"https://api.github.com/users/huangmeng4520/following{/other_user}","gists_url":"https://api.github.com/users/huangmeng4520/gists{/gist_id}","starred_url":"https://api.github.com/users/huangmeng4520/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangmeng4520/subscriptions","organizations_url":"https://api.github.com/users/huangmeng4520/orgs","repos_url":"https://api.github.com/users/huangmeng4520/repos","events_url":"https://api.github.com/users/huangmeng4520/events{/privacy}","received_events_url":"https://api.github.com/users/huangmeng4520/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-21T14:37:49Z","updated_at":"2016-12-21T14:37:49Z","closed_at":null,"body":"1、nginx版本\r\n`/ # nginx -v\r\nnginx version: nginx/1.9.9\r\n/ # \r\n`\r\n2、php版本\r\n/ # php -v\r\nPHP 5.6.20 (cli) (built: Dec 21 2016 13:19:58) \r\nCopyright (c) 1997-2016 The PHP Group\r\nZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies\r\n    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies\r\n/ # \r\n\r\n3、NGINX扩展模块\r\n`/ # nginx -V\r\nnginx version: nginx/1.9.9\r\nbuilt by gcc 5.3.0 (Alpine 5.3.0) \r\nbuilt with OpenSSL 1.0.2f  28 Jan 2016 (running with OpenSSL 1.0.2j  26 Sep 2016)\r\nTLS SNI support enabled\r\nconfigure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=www-data --group=www-data --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-threads --with-stream --with-stream_ssl_module --with-http_v2_module\r\n/ # \r\n`\r\n4、php扩展模块\r\n`/ # php -m\r\n[PHP Modules]\r\nbcmath\r\ncalendar\r\nCore\r\nctype\r\ncurl\r\ndate\r\ndom\r\nereg\r\nexif\r\nfileinfo\r\nfilter\r\nftp\r\ngd\r\nhash\r\niconv\r\nintl\r\njson\r\nlibxml\r\nmbstring\r\nmcrypt\r\nmhash\r\nmysqli\r\nmysqlnd\r\nopenssl\r\npcntl\r\npcre\r\nPDO\r\npdo_mysql\r\npdo_sqlite\r\nPhar\r\nposix\r\nreadline\r\nReflection\r\nsession\r\nSimpleXML\r\nsoap\r\nsockets\r\nSPL\r\nsqlite3\r\nstandard\r\nsysvmsg\r\nsysvsem\r\nsysvshm\r\ntokenizer\r\nxml\r\nxmlreader\r\nxmlrpc\r\nxmlwriter\r\nZend OPcache\r\nzip\r\nzlib\r\n\r\n[Zend Modules]\r\nZend OPcache\r\n\r\n/ # \r\n`\r\n5、cmdb库创建，并导入bk-cmdb.sql\r\n![image](https://cloud.githubusercontent.com/assets/8178576/21392875/e78f89f0-c7cc-11e6-8d69-4e4dfdd77b84.png)\r\n\r\n6、在项目目录执行了php index.php /cli\r\n`/var/www # ls -la\r\ntotal 112\r\ndrwxrwxr-x    5 www-data www-data      4096 Dec 21 06:07 .\r\ndrwxrwxr-x   11 root     root           103 Jun 15  2016 ..\r\n-rw-rw-r--    1 www-data www-data       102 Dec 21 06:04 .htaccess\r\n-rw-rw-r--    1 www-data www-data     40131 Dec 21 06:04 LICENSE.TXT\r\n-rw-rw-r--    1 www-data www-data      3891 Dec 21 06:04 README.md\r\ndrwxrwxr-x   14 www-data www-data      4096 Dec 21 06:07 application\r\n-rw-rw-r--    1 www-data www-data     16648 Dec 21 06:04 bk-cmdb.sql\r\n-rw-rw-r--    1 www-data www-data     12088 Dec 21 06:04 cmdb-api.md\r\n-rw-rw-r--    1 www-data www-data      1150 Dec 21 06:04 favicon.ico\r\n-rw-rw-r--    1 www-data www-data      9806 Dec 21 06:04 index.php\r\ndrwxrwxr-x    8 www-data www-data      4096 Dec 21 06:07 static\r\ndrwxrwxr-x    8 www-data www-data      4096 Dec 21 06:07 system\r\n/var/www # php index.php /cli/Init/initUserData\r\n/var/www # \r\n\r\n7、疑问执行完成之后cmdb数据所有表为空，没有任何数据是否正常\r\n\r\n8、db链接已经修改\r\n\r\n9、constants.php 文件地址已经修改\r\n`define('BASE_URL', 'http://220.164.109.98:600');\r\n\r\n问题：访问主页时301跳转到/account/login?cburl= \"=号后面没有参数`\r\n![image](https://cloud.githubusercontent.com/assets/8178576/21393098/e4d79206-c7cd-11e6-9ae2-47937c1f38cc.png)\r\n  ##\r\n"}}
{"actor":{"display_login":"huangmeng4520"}}