跳到主要內容

發表文章

目前顯示的是 3月, 2022的文章

[bitnami]如何重啟服務

Start Or Stop Services Each Bitnami stack includes a control script that lets you easily stop, start and restart services. Obtain the status of a service: sudo /opt/bitnami/ctlscript.sh status Call it without any service name arguments to start all services: sudo /opt/bitnami/ctlscript.sh start Or use it to restart a single service, such as Apache only, by passing the service name as argument: sudo /opt/bitnami/ctlscript.sh restart apache Use this script to stop all services: sudo /opt/bitnami/ctlscript.sh stop Restart the services by running the script without any arguments: sudo /opt/bitnami/ctlscript.sh restart 參考網址 Start Or Stop Services

[bitnami]如何遠端連phpMyAdmin

 [Mac] Open a new terminal window on your local system (for example, using “Finder -> Applications -> Utilities -> Terminal” in macOS or the Dash in Ubuntu). Make sure that you have your  SSH credentials ( .pem  key file)  in hand. Run the following command to configure the SSH tunnel using the SSH key file. Remember to replace KEYFILE with the path to your private key and SERVER-IP with the public IP address or hostname of your server: ssh -N -L 8888:127.0.0.1:80 -i KEYFILE bitnami@SERVER-IP Remember that if you are redirecting HTTP requests to the HTTPS port, you must use destination port 443 instead of 80. NOTE: If successful, the above command will create an SSH tunnel but will not display any output on the server console. Access the phpMyAdmin console through the secure SSH tunnel you created, by browsing to  http://127.0.0.1:8888/phpmyadmin . Log in to phpMyAdmin by using the following credentials: Username:  root Password: application password. (Refer to our  FAQ  to le

[bitnami]如何遠端連ssh

Debian sudo rm -f /etc/ssh/sshd_not_to_be_run sudo systemctl enable ssh sudo systemctl start ssh Log in to the server console as the  bitnami  user. Edit the  /etc/ssh/sshd_config  and modify or add the following line: PasswordAuthentication yes Restart the SSH server for the new configuration to take effect: sudo /etc/init.d/ssh force-reload   參考網址 Activate Or Deactivate The SSH Server Connect To The Server Using SSH Configure Password-Based SSH Authentication Configure Key-Based SSH Authentication