When buying a server, directly check the required environment LAMP.
[Security Group] Add [Inbound Direction]:
The instance id joins the security group
Copy the public network ip, enter the URL: http://{public network ip}:80 to enter the OneinStack welcome page, and operate as needed.
Take mysql as an example:
mysql check initial password>
cd /root/oneinstack
grep dbrootpwd options.conf
Result: dbrootpwd='default password'
Passwords are generally complex and difficult to remember
mysql change password>
sudo /root/oneinstack/reset_db_root_password.sh
After the modification is successful, enter>
mysql -uroot -p
Uninstall a service:
sudo /root/oneinstack/uninstall.sh
Uninstall oneinStack
Enter instance id - stop - (more) replace OS: reselect public image
If the replacement is successful, it will be gone.