AWS provides a wide variety of mirrors for users, but in most cases the AMI provided in the community do not fully meet our needs, such as the more disgusting some mirrored root partitions are only 10g, so we generally use the community's public image to create a EC2, And then configure her, and then hit a mirror for the project, Packer can make us more automated to generate
Environment and Requirements:
1. The AMI root partition now has 25G2 25G a bit more, so want to reduce 25G to 12G3. View disk Information
# df-hFileSystem Size Used Avail use% mounted on/DEV/XVDA1 17G 1.5G 15G 9%/Tmpfs 498M 0 498M 0%/dev/shm
Operation Steps:
1. Mount a new 12G plate (/DEV/XVDF)
2. Partition and format new disks
# fdisk-lDevice Boot Start End Blocks Id System/DEV/XVDF1 1 1045 8393931 Linux
# First verify the version of Java being used is not sunjsk.Java-version# Get The latest Sun Java SDK from Oracle http://www.oracle.com/technetwork/java/javase/downloads/ Jdk-7u1-download-513651.htmlwget http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-linux-i586.rpm# Rename The file downloaded, just to being niceMV jdk-7u1-linux-i586.rpm\?E\=1320265424\H\=916f87354faed15fe652d9f76d64c844 jdk-7u1
Tags: BSP reinstall Inux Deb Class div complete window NIC configurationI. BACKGROUNDInstall Linux system (Debian 8.8), always fail, stuck in install software (12% position)Second, solve?Web-based solutions1. Do not unplug the cable during installation (I did not pull out)2. Disable the NIC configuration when installing (this way, try again, finally skip the lag point, it seems to solve the problem)Third, startInstallation completed, found the screen
Apache users and user groups. ChownApache/var/log/php/error_log.log and Chgrp apache/var/log/php/Error_log.logopen_basedir= .:/ tmp/#设置表示允许访问当前目录 (that is, the directory where the php script file resides) and/tmp/directory, can prevent PHP Trojan cross-siteAfter installation and configuration, the Web server is basically set up and can be accessed.Test articleUnder directory/var/www/html:Cd/var/www/htmlTo create a PHP file:VI index.phpphpphpinfo ();? >Then, when you enter the native address in
article is about creating a Linux server on AWS, owning a "free Tier" account is a prerequisite. To sign up for an account, you can use this link. Note that you need to enter your credit card details when you create your account.Let's assume that you have created a "free Tier" account.Before you continue, you must understand some of the terminology in AWS to und
Getting started with Linux: how to create a new AWS accesskey
Q: How can I create a new AWS accesskey when I configure an application that requires access to my Amazon AWS account to provide the AWS accesskey ID and secret accesskey?
Amazon
The Linux Server uploads files to S3 through the AWS command line
PurposeThe Linux Server uploads files to S3 through the AWS command line
ConfigurationOpen your AWS console;
Create a new user (such as test) in IAM. When it is created, it automatically creates a user secu
Installing using the installation packageEnvironment:
Linux, OS X, or Unix
Python 2 version 2.6.5+ or Python 3 version 3.3+
Check Python versionpython --version安装步骤1、下载安装包 $ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"2、解压压缩包 $ unzip awscli-bundle.zip3、执行安装,并生成可执行文件 sudo ./awscli-bundle/install -i /usr/local/aws
ObjectiveThe Linux server uploads files to S3 through the AWS command line.To connect to your Linux server, follow these steps.# install PIPYum-y Install Python-pip# Install AWSCLIPip Install Awscli# Initialize Configuration> AWS ConfigureAWS Access Key ID [None]:AWS Secret
LINUX VPS does not have root privileges is very difficult to do, and password landing is also convenient.The Linux version of my AWS VPs is Ubuntu 13.10, first signed in with an AWS certificate verified account,1. Change the root passwordsudo passwd root2, sudo chmod 777/etc/ssh/sshd_configUse up and change the authori
ObjectiveLinux server uploads files to S3 via AWS Command lineConfigurationOpen your AWS console;To connect to your Linux server, follow the steps below:# install PIPYum-y Install Python-pip# Install AWSCLIPip Install Awscli# Initialize ConfigurationAWS Configure# This step will require you to enter "access key ID", "Private access Key", "Default zone Name", "Def
AWS's Ubuntu Host login user is UbuntuLog in only by secret keyIf the remote login via SSH on the Linux terminal is as follows:If you apply for EC2 host download Key name is called My-key.pem, and saved in the local Linux host/home/key below1. Use the chmod command to ensure that your private key is not publicly visiblechmod /home/key/my-key.pem2.ssh -i/home/key/my-key.pem [email protected]3. The following
Open your AWS console;
Create a new user (such as test) in Iam, which automatically creates a user security credential when created, consists of an access key ID and a private access key, remembers it and downloads it, and uses it later;
Select the user you just created, under the "Permissions" tab there is an "additional permission", click on it, find a permission named "Amazons3fullaccess" in the list, tick it, and click "Additional Permissi
1. First copy your X?. PEM file to a Linux system, and modify its permissions to 600.chmod x?. Pem2. Rewrite key format as OpenSSH, commandSsh-keygen-p-F X?.pem3. Generate public key *.pub file commandSSH-KEYGEN-E-f x?. Pem > x?. Pem.pub4. Set SECURECRT, protocol select SSH2, host name fill in IP address or DNS server name, user name fill in Ec2-user or Root,ubuntu. Select SSH2 in the left tree and select authentication in the right PublicKey, click
Problem situation:
Using AWS EC2 Server, mount a disk, umount the mounted directory on the system, and then cancel the attachment of the disk in the AWS Admin interface, the process took a long time and the period state was buzy, but after a while it succeeded in canceling the attachment, However, the use of Fdisk on the system to view the disk still exists but is not available, see below:
[root@ip-10-150
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.