Centos apache

I bought an ECS, in Aliyun but did not apply for a domain name. Can apache be directly set to ip access instead of domain name access? if so, how to set it?

Mar.12,2021

you can access


after installing apache without any special settings. If you don't configure a domain name, you can access


with ip.

Aliyun's ECS, when you enter the user's CVM page, each CVM will have two IP, a public network IP, and a private network IP
public network IP, assuming 134.13.134.13
private network IP, assuming 10.0.1.10
then you only need to install apache or Nginx in the Linux to
Ubuntu use apt install apache2
centos use yum install httpd

Note that security groups need to be set in Aliyun, and the development of 80 (http) and 443 (https) ports can be accessed from outside

. After

is finished, you can use the public network IP (134.13.134.13) to access the browser. Use http://134.13.134.13, and you will see the welcome page of apache

.

can be accessed directly through IP

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b335b4-2be6e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b335b4-2be6e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?