In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
AMH, this is a LNMP/Nginx virtual host panel developed by the Chinese, see the tribe has been testing various VPS control panels, there are many friends to me that can test and share AMH, the reason is simple, not so many fancy features, the most suitable for individual users.
This article will bring you to use AMH web hosting panel to build websites on VPS hosts, bind domain names, create and manage MysqL databases, if you like AMH this feature is not much but simple enough style, you can use AMH to build Wordpress blog, Discuz! Forum community.
Since the tribe activated GCE Cloud Virtual Machine a few days ago and learned that Google's GCE Cloud Virtual Machine is almost the same as VPS in some aspects, the AMH installation in this article is based on GCE VPS testing, if you have your own VPS host, you can refer to the installation.
Lightweight AMH Web Hosting Panel Installation Using and GCE Cloud Space to Build Website Examples
I. GCE Cloud VPS Installation AMH Preparation
1. GCE Cloud VPS has been tested and used in the same way as the general VPS, but there are some specific differences. If you are using a traditional VPS such as Linode or Godaddy VPS, you can skip this step and go directly to the next installation process.
2, AMH virtual host panel requires VPS host memory greater than 600, the tribe applied to Google Compute Engine VPS is the smallest memory: 0.6GB memory.
3. Execute the following command to add a 256MB swap partition to the GCE VPS and automatically enable it at boot.
cd /var/dd if=/dev/zero of=swapfile bs=1024 count=262144/sbin/mkswap swapfile/sbin/swapon swapfile/sbin/swapon -secho "/var/swapfile swap swap defaults 0 0" >>/etc/fstab
4. Open ports 80 and 8888 of GCE VPS, open Http access and AMH background login. You can directly enter the firewall rules of GCE to create new rules and add common ports such as 80 and 8888.
5, of course, you can also use gcutil, execute the following command to add port 80.
gcutil addfirewall http2 --description="Incoming http allowed. " --allowed="tcp:http"
After executing this command, you can see the newly added firewall rules in the Google Compute Engine Control Center, which have the same effect as the ones we just added manually.
Second, AMH virtual host panel installation process
1. To install AMH Virtual Host Panel, log in to VPS with SSH and execute the following command:
The copy code is as follows:
wget http://amh.sh/file/AMH/4.2/amh.sh && chmod 775 amh.sh && ./ amh.sh 2>&1 | tee amh.log
Select whether you want to install or uninstall AMH, enter 1 Yes to install.
3, then set MysqL password, AMH administrator password, enter to start installation.
4, depending on the performance of the VPS host, AMH installation time will be different, I spent 60 minutes on the GCE VPS installation.
5. After installation, you can log in to AMH virtual host management background at IP:8888.
6. AMH control panel is designed to be simple, which can be operated by command or directly click to start or close Web server components. Tribal AMH installation found that the memory occupied in about 100MB. (Click to enlarge)
Third, AMH creates a website binding domain name to increase FTP
1. Click Add Virtual Host in AMH, and then fill in the domain name you want to bind. The others can be kept by default. Finally, click "Save" to create it successfully. (Click to enlarge)
2. AMH assigns different website root directories according to domain names. Default homepages, pseudo-static rules, etc. can be edited and modified.
3. The newly added FTP account can be assigned to the root directory of a specific website, and a FTP account can be granted access to the root directory of all websites.
AMH creates and manages MysqL database
To create a new MysqL database, click the "Create Database" button.
2, and then fill in the new MysqL database name below, you can create multiple at once, and finally click Save.
MysqL was successfully created.
4. The default is root as the user of MysqL database. To create a new MysqL database user name, click "New User" below.
5. Set MysqL username and password options, click Save below.
V. AMH Virtual Host Panel Backup and Restore Settings
AMH also provides a simple backup function, you can set a password when backing up.
2. After the backup is done, if you want to restore AMH settings and data at a certain time in the future, you can click "One-click Restore."
3, backup can also be backed up to remote FTP.
VI. Summary of AMH Virtual Host Panel Installation and Use
In addition to operating directly on the web page, you can also use various commands directly in SSH to execute, such as managing virtual machines, executing amh host, and then following the relevant commands.
AMH is basically enough to build a website, but it lacks user management, permission allocation, and API interfaces, so AMH is more suitable for individuals or several people to use VPS.
The above is all the content of this article, I hope to help everyone's study, but also hope that everyone a lot of support.
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.