2016-09-07 2 views
0

このガイドに従っています。コマンドラインエラーからmagentoをインストールする

http://devdocs.magento.com/guides/v2.1/install-gde/install/cli/install-cli-install.html

私は、Web installatinを実行しようとしましたが、私はこれを試してみてください今ので、それは常にstuckedです。

iは、Magentoのための任意のテーブルが存在しないルート

mysql> show databases; 
+--------------------+ 
| Database   | 
+--------------------+ 
| information_schema | 
| mysql    | 
| performance_schema | 
| sys    | 
+--------------------+ 
4 rows in set (0,00 sec) 

としてMySQLに行くとき。

[だから私はリンク

magento setup:install --base-url=http://127.0.0.1/magento2/ \ 
--db-host=localhost --db-name=magento --db-user=magento --db-password=magento \ 
--admin-firstname=Magento --admin-lastname=User [email protected] \ 
--admin-user=admin --admin-password=admin123 --language=en_US \ 
--currency=USD --timezone=America/Chicago --use-rewrites=1 

に与えられた、このコマンドを実行しますが、鉱山は私が./magento

[email protected]:/var/www/html/magento2/bin# ./magento setup:install --base-url=http://127.0.0.1/magento2/ --db-host=localhost --db-name=magento --db-user=magento --db-password=magento --admin-firstname=Magento --admin-lastname=User [email protected] --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --timezone=America/Chicago --use-rewrites=1 
SQLSTATE[HY000] [1045] Access denied for user 'magento'@'localhost' (using password: YES) 



    [InvalidArgumentException] 
    Parameter validation failed 

や他の緑の著作

setup:install [--backend-frontname="..."] [--key="..."] [--session-save="..."] [--definition-format="..."] [--db-host="..."] 

を使用するので、magentoを実行するカント--db-name = "..."] [--db-user = "..."] [--db-engine = "..."] [--db-password = "..."] [--db-prefix = "..."] [ - db-model = "..."] [--db-init-statements = "..."] [-s | --skip-db-validation] [--http-cache-hosts = "。 ..] [--base-url = "..."] [--language = "..."] [--timezone = "..."] [--currency = "..." ] [--use-rewrites = "..."] [--use-secure = "..."] [--base-url-secure = "..."] [--use-secure -admin = "..."] [--admin-use-security-key = "..."] [--admin-user = "..."] [--admin-password = "..] "] [--admin-email =" ... "] [--admin-firstname =" ... "] [--admin-lastname =" ... "] [--cleanup-database] ] [--sales-order-increment-prefix = "..."] [--use-sample-data] [--magento-init-params = "..."]

それはので、私はそれのための私のMySQLのパスワードと管理者名を使用しinformatonに

--db-user 

User name of the Magento database instance owner. 

Default is root. 

を言います。今回は動作しますが、別のエラーがあります。

[email protected]:/var/www/html/magento2/bin# ./magento setup:install --base-url=http://127.0.0.1/magento/ --db-host=localhost --db-name=magentodb --db-user=root --db-password= root --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --timezone=America/Chicago --cleanup-database help 



    [RuntimeException] 
    Too many arguments. 

だから、私はパラメータを減らします。しかし、再び同じ

[email protected]:/var/www/html/magento2/bin# ./magento setup:install --base-url=http://127.0.0.1/magento/ --db-host=localhost --db-name=magentodb --db-user=root --db-password= root 



    [RuntimeException] 
    Too many arguments. 

私はここ

http://localhost/magento2/setup/#/landing-install

ページを見ることができます。私はエラーがないと思う。私もセットアップを実行することができますが、%66%67でスタックしています。昨日これが完成しましたが、それはshooppingカードに追加されていませんでした。今日、私はすべてのPHP 5.6 7.0を自分のPCで削除し、すべて元に戻しました。今すぐインストールできません。

何が原因なのですか?私は、すべてのphpを削除php5.6を再インストールし、それが働いた

ディレクトリが

/var/www/html/magento2/bin 

も、このエラーの

[email protected]:/var/www/html/magento2/bin# ./magento setup:install admin-user="root" 



    [RuntimeException] 
    Too many arguments. 


by the way i create user and daabase before installation 

    mysql -u root -p 
    CREATE DATABASE magentodb; 
    CREATE USER [email protected] IDENTIFIED BY 'magento'; 
    GRANT ALL PRIVILEGES on magentodb.* to [email protected]; 
    FLUSH PRIVILEGES; 
    exit 
    mysql bu 
    11- service apache2 restart 
    12- service mysql restart 

答えて

1

あるウェブからMagentoのをダウンロードしてWW/HTMLに抽出されました。

関連する問題