Essential for centos installation-Basic settings and missing files

Source: Internet
Author: User

It is mainly because centos is installed on virtual machines and some settings are always made every time.

Purely Basic settings. For example, the local securecrt can connect to centos in the virtual machine.

For complex non-basic settings, see Linux Command collection.

 

Set Network

Automatic Connection

# Cat/etc/sysconfig/network-scripts/ifcfg-eth0 onboot = Yes

 

Restart Nic

# Service network restart

------------------------------------------

Install missing files

Download Upload Command

RZ: Command not found

# Yum install lrzsz

 

If the yum source is not directly downloaded to the local device

# Yum localinstall File

 

Download rpm

# Rpm-I file

-------------------------------------------

Install Telnet

# Yum-y install Telnet

--------------------------------------------

Install Lua

# Yum-y install Lua

# Yum-y install LUA-devel

 

--------------------------------------------

Install GCC to compile C Language

Cc: Command not found

# Yum gcc

# Yum-y install gcc

Note:-y indicates that yes is selected for installation.

--------------------------------------------

Checking for C ++ compiler default output file name... configure: Error: C ++ compiler cannot create executables
See 'config. log' for more details.

# Yum install GCC gcc-C ++

--------------------------------------------

Phpize prompt

Cannot find Autoconf. Please check your Autoconf installation and
$ Php_autoconf environment variable. Then, rerun this script.

# Wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gz
# Tar-zvxf autoconf-2.62.tar.gz
# Cd autoconf-2.62/
#./Configure & make install

----------------------------------------------

Install rzsz

# Yum install lrzsz

---------------------------------------------

Getcwd: cannot access parent directories Solution

The getcwd command cannot locate the current working directory. Generally, this is because you RM this directory after you CD it to a directory.
Getcwd is reported when you execute some service scripts.
You only need to run the CD command in any directory that actually exists.
The reason for this is that the current user does not have the executable permission for the current directory.

----------------------------------------------

Related Article

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.