0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

よく間違えるコマンド

Posted at

Mysqlの接続

``` mysql -u root -p -h rds-mysql-server.xxx.ap-no-1.rds.amazonaws.com

mysql -u root -p -h  「RDS→データベース→エンドポイントのrdsで始まるとこ」


<h3>EC2接続</h3>

ssh -i ~/.ssh/practice-aws.pem ec2-user@xx.xx.xx.xx

ssh -i ~/.ssh/practice-aws.pem ec2-user@「パブリックIPアドレス ipv4のこと」

<h3>viの操作</h3>

$ sudo vi ファイル名
で操作
$ sudo nginx -t
でどこがエラーかわかる


```viファイル内操作
:w  で保存
:q!  で脱出
:set number で行数わかる
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?