Job Recruitment Website - Recruitment portal - How to build a website on Baidu

How to build a website on Baidu

1, domain name registration and filing

Think about the domain name to be registered, and search whether the domain name has been registered in Tengyou Technology official website. If you are not registered, you can pay for it directly. If it is registered, only one domain name can be changed. After the payment registration is completed, you can see it in the management console.

If you want to use the cloud server in Chinese mainland for filing, you need to fill in some information, fill it in step by step in the filing platform of the server provider, and finally submit it for approval.

2. Domain name resolution.

Then you can go to the domain name management console of the cloud service provider for analysis. Host records can be filled in www, and record types and analysis lines are used by default. Because your record type is record, you can fill in your host IP. TTL needs to be mentioned. For IP addresses that are relatively fixed and do not need to be changed frequently, the TTL value can be set relatively large, which is helpful to improve the stability and speed of domain name resolution. On the contrary, for those that change frequently, fill in smaller ones.

3. Upload the website project

After building the cloud hosting environment, you can upload your project directly to the /var/www/html directory. What needs to be mentioned here is that only the root user has the write permission of the html directory, so the permission of the HTML directory needs to be modified to 777, and the command:

chmod -R 777 /var/www/html

After modifying the permissions, you need to find the apache configuration file:/etc/documentroot/var/www/html//project root server name//domain name errorloglogs/dummy-host.example.com-error _ logcustomlogs/dummy-host.example.com-access _ logcommon.

Modify DocumentRoot and ServerName accordingly, and restart apache:

Service httpd restart

You can visit the website normally here. Open your browser and enter your registered domain name, then you can open your own website.