-bash:xxx:command not found install some required software after new Linux installation (continuous update ...) ) __linux

Source: Internet
Author: User
Tags iptables
install using the Yum command: first yum search ifconfig find installation package, use Yum install Net-tools installation. first, the installation package:

Ifconfig (Network \IP): Yum install Net-tools

Unzip zip (compression \ Decompression): Yum install-y unzip zip

RZ (File upload): Yum install lrzsz.x86_64

JDK (Java):

Yum install java-1.8.0-openjdk
export Java_home=/usr/java

Wget:yum Install wget.x86_64

Firewall-cmd:yum Install Firewalld systemd-y

Yum Install ntpdate: Update system time, Ntpdate pool.ntp.org.

......


Second, the configuration: Turn off SELINUX: Run sed-i '/selinux/s/enforcing/disabled/'/etc/selinux/config; reboot (Shutdown-r now); Run Sestatus view (SELINUX Status:disabled can be). To turn off the firewall:

Ubuntu (UBUNTU-12.04-DESKTOP-AMD64)

View firewall status: UFW status

Shutdown Firewall: UFW disable

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

centos6.0

View firewall Status: Service iptables status

Shutdown firewall: chkconfig iptables off #开机不启动防火墙服务

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

centos7.0 (default is to use firewall as a firewall, if not changed to iptables firewall, use the following command to view and close the firewall)

View firewall status: Firewall-cmd--state

Shutdown firewall: Systemctl stop firewalld.service systemctl stop Firewalld.service #停止firewall
Systemctl Disable Firewalld.service #禁止firewall开机启动



To write a command to an environment variable:

sudo ln-sv/opt/consul/consul/usr/local/bin/


To assign permissions to a folder for the current user:
Linxu Assign permission: sudo chown-r jetty.jetty/opt/consul/


........................

..............................

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.