markdown Lightsail命令

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown Lightsail命令相关的知识,希望对你有一定的参考价值。

### Check Admin Password

```
cat bitnami_application_password
```

### Accessing PhpMyAdmin on Linux and Mac OSX

```
ssh -N -L 8888:127.0.0.1:80 -i KEYFILE bitnami@SERVER-IP
```

### Permissions Overall

HTDOCS Folder ( Root ) 777 Daemon:Daemon
```
sudo chown -R deamon:daemon /htdocs
```
WP-CONTENT Folder and everything inside
```
sudo chown -R bitnami:daemon /htdocs/wp-content
```

### Email Setup MX Records
Emails do not use www in their domain lookup, so you must specify the root domain

```
Type MX
Subdomain: (no wwww) - domain.com
Priority: 1
Destination: Mail Server
```

### Start/Stop Web Server
Stop Server `sudo /opt/bitnami/ctlscript.sh stop`

Start Server `sudo /opt/bitnami/ctlscript.sh start`

### Lets Encrypt SSL Setup
https://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl/

If you want to use (www) in your domain then you need specify www.example.com for any reference of DOMAIN in the instructions above.

以上是关于markdown Lightsail命令的主要内容,如果未能解决你的问题,请参考以下文章

如何获取 Lightsail 实例的实例名称

如何获取Lightsail实例的实例名称

如何从我的 Mac 连接到新的 Amazon Lightsail 实例?

AWS 与 Lightsail,有啥区别? [复制]

有没有办法每3个月自动安排一次Lightsail实例的启动?

如何从 EC2 快照创建 AWS Lightsail 实例?