File upload and download (linux-linux)
Example 1: Copying files from a distance to a local directory
Command:
SCP [Email protected]:/opt/soft/nginx-0.5.38.tar.gz/opt/soft/
Example 2: Copying from a distance to a local
Command:
scp-r [Email protected]:/opt/soft/mongodb/opt/soft/
Example 3: Uploading a local file to a remote machine specified directory
Command:
scp/opt/soft/nginx-0.5.38.tar.gz [Email protected]:/opt/soft/scptest
Example 4: Uploading a local directory to a remote machine-specified directory
Command:
Scp-r/opt/soft/mongodb [Email protected]:/opt/soft/scptest
SOURCE Installation
1./configure Related library literati pieces and configuration parameters and generate make file
2 make compile the source code to generate the executable file
3 make install installs the resulting executable file to the current computer
RPM Installation
RPM Software Common Command specification
linuxcast-1.2.0-30.el6.i686.rpm
RPM Base Command
Installation software: Rpm-i software.rpm
Uninstall software: RPM-E software
Upgrade form install: Rpm-u software-new.rpm
RPM supports installation of software via the HTTP,FTP protocol
RPM-LVH http://www.linuxcast.net/software.rpm
The following parameters can be added
-V Display Related information
-H Show progress bar
Usually add parameters
EG:RPM-IVH software.rpm
RPM Query
RPM-QA List of installed RPM software
RPM-QF filename Query destination file belongs to that RPM package
Rpm-qi PackageName query specifies information for installed RPM software
RPM-QL PackageName query specifies that the included files are installed
RPM-QIP software.rpm query For information that does not have an RPM file installed
RPM-QLP software.rpm Query does not install RPM-Included files
RPM Verification
Import Key
RPM--import rpm-gpg-key-centos-6
Verify
Rpm-k software.rpm
Verify that the software is installed
Rpm-v Software
--Network part
Summary:
---Modify the IP address---
Immediate effect:
# ifconfig eth0 192.168.1.155 netmask 255.255.255.0
Restart takes effect:
Modify/etc/sysconfig/network-scripts/ifcfg-eth0
---Modify the default gateway---
Immediate effect:
# route add default GW 192.168.1.1
Restart takes effect:
Modify/etc/sysconfig/network-scripts/ifcfg-eth0
---modify DNS---
Modify/etc/resolv.conf
Immediate effect after modification, restart is also valid
---Modify the host name---
Immediate effect:
# hostname Test1
Restart takes effect:
Modify/etc/sysconfig/network
Linux File Upload & Software Installation (RPM)