In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use EC2 to build wordpress on AWS. It is very detailed and has a certain reference value. Friends who are interested must read it!
0. First of all, you need to have an AWS account 1. Generate key pair (1) EC2-> Network and Security-> key pair-> create key pair-> download pem file (private key)
To access a virtual server in AWS, the client needs a key pair consisting of a private key and a public key.
The public key is uploaded to AWS and configured to the virtual server, and the private key is private to the customer.
To access the Linux server, use the SSH protocol. The customer authenticates with a key instead of a password when logging in.
(2) convert pem files to ppk files
two。 Create EC2 instance (1) first go to the control panel of EC2, click "start instance", select Ubuntu Server 18.04 LTS (HVM), SSD Volume Type,64 bit (x86)
(2) choose t2.micro, free package
(3) next, default configuration
(4) next, add memory, 8g
(5) add tags, such as the name of the instance
(6) configure security groups and add port mappings such as http,https,mysql
(7) Review and launch
(8) after startup, you can see it in the instance.
3. Enter the EC2 instance and install the software (1) use putty to connect to the instance
Enter the public IP address of EC2 and connection type SSH for the host name. Then click the menu "Connect"-"SSH"-"Authentication", and select the PPK format authentication private key file that has just been converted.
(2) Log in and log in to the root account login as: ubuntusudo suapt-get update (3) install apacheapt-get install apache2
After the installation is completed, access the public IP address of the http://EC2 instance in the browser, and the default page of Apache will appear.
(4) install phpapt-get install php (5) install mysqlapt-get install mysql-server (6) make php support mysqlapt-get install php-mysql (7) restart apacheservice apache2 restart (8) Test PHP and establish a probe file vi / var/www/html/info.php
The browser accesses the http:// public ip/info.php and the php info interface can be seen.
(9) use the MySQL client to create a WordPress database and a user mysql-u root CREATE DATABASE wordpressGRANT ALL PRIVILEGES ON wordpress.* TO "chenxin" @ "localhost" IDENTIFIED BY "123456"; FLUSH PRIVILEGES EXIT (10) set up the wp-config.php file wget https://cn.wordpress.org/wordpress-4.9.4-zh_CN.tar.gz # download the Chinese version of WordPresstar-xzvf wordpress-4.9.4-zh_CN.tar.gz # decompress cd wordpressmv wp-config-sample.php wp-config.php # rename wp-config-sample.php to wp-config.phpvim wp-config.php// and database_name_here,username_here Password_here is replaced with its own database, user name and password. Define ('DB_NAME',' wordpress'); define ('DB_USER',' chenxin'); define ('DB_PASSWORD',' 123456') (11) copy the files in WordPress to the default website root directory cp-Rv / root/wordpress/* / var/www/html/ rm / var/www/html/index.thmlchown-R www-data:www-data / var/www/systemctl restart apache2 (12) use a browser to access the http:// public IP/wp-admin/instal...
The above is all the content of the article "how to use EC2 to build wordpress on AWS". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.