跳到主要內容

發表文章

目前顯示的是有「bitnami」標籤的文章

[bitnami]設定固定ip

  Log in to the server console. Obtain the network interface name using the command below. Typically, the interface name is of the form  enXXXX . Note the virtual machine’s IP address associated with the interface. sudo ifconfig Create a configuration file for the network interface by copying an existing configuration file and placing it in the  /etc/systemd/network  directory. In this example, assume that the new configuration file is named 25-wired.network: cd /etc/systemd/network sudo cp 99-dhcp.network 25-wired.network Edit the new configuration file and update it to look like the configuration below. Replace the INTERFACE-NAME, HOST-IP-ADDRESS and GATEWAY-IP-ADDRESS placeholders with the name of the network interface, the host IP address obtained previously, and the gateway IP address, as shown in the example. [Match] Name=INTERFACE-NAME [Network] Address=HOST-IP-ADDRESS Gateway=GATEWAY-IP-ADDRESS Here is an example screenshot: Save your changes and r...

[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 passwo...

[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