2019/9/16
Linux software installation
Way: yum / rpm / Source Installation
yum install:
yum by analyzing RPM after the header data in accordance with correlation properties to produce software corresponding to each solution, it may then automatically processed Attribute dependent software to solve the problem with the installation or removal of software upgrades.
yum search MySQL cable package received at the source
yum install mysql-community-server.x86_64 install software
yum remove MySQL uninstall the software == yum erase mysql
RPM installation:
rpm -qa Query all installed software
rpm -qa | grep ssh check whether the installed ssh service === rpm -q openssh
rpm -ql | openssh list the software so files and directories where the full file name
rpm -qR openssh listed software dependency files associated with the software contained
rpm -hiv software installation software (download good software in advance)
-i Install the specified .rpm file
-h view progress
-v show details of the installation process
-e uninstall software
Install nginx
step 1: rpm-hiv http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
step 2: yum install nginx install software
step 3: service nginx start to open nginx service
step 4: netstat - ntulp | grep 80 view the port situation
step 5: systemctl stop firewalld.service closed centos firewall
Source install software (default directory is to install the software source code):
Step1 : the tar -xvf [] extract the source
Step2 : ./configure configuration (if required to specify the path of the installation: ./ configure -
step3: ./ make compiler source code
step4: ./ make install installation installed by default path / usr /
redis installation
$ wget http://download.redis.io/releases/redis-5.0.5.tar.gz
$ Takes -xzf redis-5.0.5.tar.gz
$ Cd-repeat 5.0.5
$ make
Update centos7 the yum source:
step1. First backup centos7 source comes in
mv /etc/yum.repos.d/CentOS-Base.repo hundred-base.repo.bak
step2. download the source wget -O http://mirrors.aliyun.com/repo/Centos-7.repo / etc /yum.repos.d/CentOS-Base.repo
step3.yum makecache generate cache
step4.yum -yinstall Software name installing software
yum -y update update system,
WAMP environment, phpstudy ( Windows + the Apache + MySQL + PHP .)
LAMP environment, linux installation in the Apache , MySQL , PHP three environments, while the need to install some plugins.
LNMP=linux+nginx+mysql+php-fpm
LAMP environment to build:
Installation apapche ( httpd ):
step1.yum install httpd httpd-devel httpd-manual mod_ssl mod_perl mod_auth_mysql
apache configuration file: /usr/local/apache2/conf/httpd.conf (source installation)
step2. install mysql and extensions
yum install mysql mysql-server mysql-devel
Installation mariadb
step3. install php
kali system management software
. step1 go to update the replacement source, Vim / etc / reources .list, APT -get Update && && upgrade APT APT-GET-GET autoclean;
step2. Install the software
apt-get management software
apt-get search software name, query software
apt-get install the software name, software installation
apt-get remove the software name, uninstall the software
In kali use dpkg management software
dpkg -i xx.deb installation
dpkg -e name of the software to uninstall
dpkg -l Software name query whether this software is installed locally
dpkg -al queries all software installation