Purchase a new Alibaba Cloud server and install the PHP runtime environment

Newly purchased Alibaba Cloud server, the whole process of installing the PHP operating environment.

National Computing Cloud page, to buy, I chose the three-year 797 yuan kind.
Purchase a new Alibaba Cloud server and install the PHP runtime environment

Note, select an Availability Zone.
Then the payment for the order is completed.
Purchase a new Alibaba Cloud server and install the PHP runtime environment

Click the icon on the left, cloud server ECS, you can see the overview, and then click the instance.
Purchase a new Alibaba Cloud server and install the PHP runtime environment

See the list of instances.

If you don't see it, select Availability Zone.

After seeing the example.

The instance name can be modified to show the difference when there are multiple instances.
Purchase a new Alibaba Cloud server and install the PHP runtime environment

Click on the instance ID.
Purchase a new Alibaba Cloud server and install the PHP runtime environment

If you did not set a password when you made a new purchase, now click Basic Information, more on the right, and reset your password will appear.
Set the server login password.
(The mobile phone verification code will be required here)
After the setting is successful, click Restart.

On the instance details page, go to Configuration Information->Public IP: Address. Required for ssh login later.

Purchase a new Alibaba Cloud server and install the PHP runtime environment

Switch to the shell interface.

Under mac, go directly to the terminal.
Under windows, use linux link tools such as xshell (recommended) and putty.
ssh root@your ip address.

After logging in, you will enter the linux system.
View operating system version information
uname -a
cat /proc/version
lsb_release -a
To view the usage of commands, use the man command. Such as:
man uname

Then enter the root directory.
Build a build directory, (personal habit, if you want to put it in the root directory, you don't need to build it)
Download the installation environment from oneinstack.com below, and install it (the official website has related help).
cd ~
mkdir build
cd build

Now the oneinstack website, automatically installed. https://oneinstack.com/auto/
can be selected, copy an installation command, you can. for example:

wget -c http://mirrors.linuxeye.com/oneinstack-full.tar.gz && tar xzf oneinstack-full.tar.gz && ~/oneinstack/install.sh --nginx_option 1 --php_option 5 --phpcache_option 1 --php_extensions imagick --phpmyadmin --db_option 1 --dbinstallmethod 1 --dbrootpwd oneinstack --pureftpd --redis --memcached --iptables --ssh_port 15187 --reboot

Because, I built another build under root, so I need to change the above ~/oneinstack to ~/build/oneinstack.
If you are under root, you can run the above command directly.
Then enter the car, observe for a while, and see that it has run automatically. Don't worry about it.
The subsequent installation process takes half an hour to 1 hour.

Optionally, interactive installation. https://oneinstack.com/install/

After the installation is complete, enter the ip address in the browser, and the oneinstack installation successful page appears!

If you still have questions, welcome to the PHP technical Q&A group.
QQ group: 292626152

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325477437&siteId=291194637