Daily study of Linux--Review day

Source: Internet
Author: User

1. Installing the System


Virtual machine memory typically 1 hours.

The resolution can be adjusted.

NIC has two settings simple and practical bridging, once and for all NAT

Important partition: The actual situation according to customer demand, the default/boot with 200M, swap 2000M/surplus and so on.



2.ifconfig-a


Dhclient (will generate DHCP service, work is not available)


Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Device=eth0

Hwaddr=00:0c:29:cb:9f:f9

Type=ethernet

Uuid=e46d71e2-c89b-4949-9056-81610600e3bb

Onboot=yes

Nm_controlled=yes

Bootproto=static

ipaddr=192.168.75.3

netmask=255.255.255.0

gateway=192.168.75.2

Peerdns=no-----

dns1=8.8.8.8

Dns2= .....



Route-n


DNS configuration file/etc/resolv.conf


3. Remote connection


Use Putty, Xshell, (as far as possible in English, Chinese may have back door)


1) Direct Password login


2) secret key login

(1) Double-click Puttygen production key Pair


(2) The private key is stored on its own computer, and the public key is copied and pasted.


(3) Create on Linux server

Open Puttygen, generate the private key, save the settings password.

Enter server mkdir. SSH

VI. Ssh/authorized_keys Copy the public key in.

chmod. SSH


chmod Authorized_keys


Temporarily close SELinux Setenforce 0


Permanently close Vi/etc/selinux/config


Selinux=disabled


Clear Firewall Rule iptables-f

Save Firewall Rule/etc/init.d/iptables Save



----have repeated please forgive ...




Daily study of Linux--Review day

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.