Centos linux under software installed
yum through the analysis rpm header data, automatic dependency resolution, direct cloud download software, access to different software information depending on the version of the system, in order to download the rpm package, install the software
yum search software name: Search sources whether there software needed
yum install software name: install the software needs of
yum remove software name: uninstall the software, yum erase the name of the software, can also be removed
rpm file types can use the online rpm packages can also be downloaded to a locally installed
rpm -q Software name: only query software is installed
rpm -qa: List all software installed
rpm -qa | grep Software name: check whether the installation of a software
rpm -ql software name: lists all of the software files and directories where the full file name
rpm -qR capital filename: Find software-related dependencies
rpm -hiv software name or url: install the software, you need to download the software in advance good
-h view the progress
-i .rpm install the specified software
-v displays installation details
-U rpm using the upgrade file
-e uninstall the software
Source code, released by source package, configurations and compiler tedious, but highly portable, can run correctly compile
./configure configure
./make compile the source code
./make install installation: The default installation path of / usr / local / bin
Source installed software, the default is the current user permissions
centos 7 yum update source
1, the backup source comes yum: Music Videos /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2, download source wget url: rename the downloaded file-name Base.repo the CentOS
. 3, yum makecache: generating the cache
4, yum -y install: installing software
yum -y update: Update System
man command: View help
command --help: View Help
kali under Software Management
apt GET-
1, replacing the vim /etc/apt/reources.list,apt-get update && apt-get upgrade && apt-get autoclean updated source
2, install the software
apt-get search software name: query software
apt -get install software name: install the software
apt-get remove software name: uninstall the software
dpkg
dpkg -i xx.deb: Install the software
dpkg -e Software name: Uninstall the software
dpkg -l Software name: check whether the installed software
dpkg -al See all software
LAMP environmental structures
mounted apapche (the httpd):
yum the install the httpd-devel the httpd mod_ssl Manual mod_perl mod_auth_mysql the httpd-
#yum the install the httpd *
https://blog.51cto.com/12173069/2067565
default / var / www / html (yum install home directory)
usr / local / apapche2 / the htdocs (source installation)
disposed apache boot from the start:
the chkconfig the httpd ON
installation mysql:
yum the install MariaDB MariaDB-Server MariaDB-libs MariaDB-devel
start mysql service port 3306
service mariadb start
configuration mysql:
using mysql_secure_installation command to initialize the mysql database
is set to boot:
chkconfig mysqld ON
安装php
yum install –y php php-mysql php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl curl-devel php-bcmath
<?php
phpinfo();
?>