LINUX75 LAMP
LAMP
环境
yum
NetworkManager
systemctl status firewalld
setenforce 0
Last login: Fri Jul 4 19:21:47 2025 from 192.168.235.1
[root@web ~]# cd /usr/local/apache2/conf/
[root@web conf]# ls
extra httpd.conf httpd.conf.bak magic mime.types original
[root@web conf]# cd extra
[root@web extra]# ls
httpd-autoindex.conf httpd-default.conf httpd-languages.conf httpd-mpm.conf httpd-ssl.conf httpd-vhosts.conf
httpd-dav.conf httpd-info.conf httpd-manual.conf httpd-multilang-errordoc.conf httpd-userdir.conf proxy-html.conf
[root@web extra]# hostname
web
[root@web extra]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00inet 127.0.0.1/8 scope host lovalid_lft forever preferred_lft foreverinet6 ::1/128 scope hostvalid_lft forever preferred_lft forever
2: ens34: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000link/ether 00:0c:29:1d:53:3b brd ff:ff:ff:ff:ff:ffinet 192.168.235.15/24 brd 192.168.235.255 scope global ens34valid_lft forever preferred_lft foreverinet6 fe80::20c:29ff:fe1d:533b/64 scope linkvalid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000link/ether 52:54:00:2b:f9:1b brd ff:ff:ff:ff:ff:ffinet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000link/ether 52:54:00:2b:f9:1b brd ff:ff:ff:ff:ff:ff
[root@web extra]# yum
已加载插件:fastestmirror, langpacks
您需要给出命令
Usage: yum [options] COMMANDList of Commands:check 检查 RPM 数据库问题
check-update 检查是否有可用的软件包更新
clean 删除缓存数据
deplist 列出软件包的依赖关系
distribution-synchronization 已同步软件包到最新可用版本
downgrade 降级软件包
erase 从系统中移除一个或多个软件包
fs Acts on the filesystem data of the host, mainly for removing docs/lanuages for minimal hosts.
fssnapshot Creates filesystem snapshots, or lists/deletes current snapshots.
groups 显示或使用、组信息
help 显示用法提示
history 显示或使用事务历史
info 显示关于软件包或组的详细信息
install 向系统中安装一个或多个软件包
langavailable Check available languages
langinfo List languages information
langinstall Install appropriate language packs for a language
langlist List installed languages
langremove Remove installed language packs for a language
list 列出一个或一组软件包
load-transaction 从文件名中加载一个已存事务
makecache 创建元数据缓存
provides 查找提供指定内容的软件包
reinstall 覆盖安装软件包
repo-pkgs 将一个源当作一个软件包组,这样我们就可以一次性安装/移除全部软件包。
repolist 显示已配置的源
search 在软件包详细信息中搜索指定字符串
shell 运行交互式的 yum shell
swap Simple way to swap packages, instead of using shell
update 更新系统中的一个或多个软件包
update-minimal Works like upgrade, but goes to the 'newest' package match which fixes a problem that affects your system
updateinfo Acts on repository update information
upgrade 更新软件包同时考虑软件包取代关系
version 显示机器和/或可用的源版本。Options:-h, --help 显示此帮助消息并退出-t, --tolerant 忽略错误-C, --cacheonly 完全从系统缓存运行,不升级缓存-c [config file], --config=[config file]配置文件路径-R [minutes], --randomwait=[minutes]命令最长等待时间-d [debug level], --debuglevel=[debug level]调试输出级别--showduplicates 在 list/search 命令下,显示源里重复的条目-e [error level], --errorlevel=[error level]错误输出级别--rpmverbosity=[debug level name]RPM 调试输出级别-q, --quiet 静默执行-v, --verbose 详尽的操作过程-y, --assumeyes 回答全部问题为是--assumeno 回答全部问题为否--version 显示 Yum 版本然后退出--installroot=[path] 设置安装根目录--enablerepo=[repo] 启用一个或多个软件源(支持通配符)--disablerepo=[repo] 禁用一个或多个软件源(支持通配符)-x [package], --exclude=[package]采用全名或通配符排除软件包--disableexcludes=[repo]禁止从主配置,从源或者从任何位置排除--disableincludes=[repo]disable includepkgs for a repo or for everything--obsoletes 更新时处理软件包取代关系--noplugins 禁用 Yum 插件--nogpgcheck 禁用 GPG 签名检查--disableplugin=[plugin]禁用指定名称的插件--enableplugin=[plugin]启用指定名称的插件--skip-broken 忽略存在依赖关系问题的软件包--color=COLOR 配置是否使用颜色--releasever=RELEASEVER在 yum 配置和 repo 文件里设置 $releasever 的值--downloadonly 仅下载而不更新--downloaddir=DLDIR 指定一个其他文件夹用于保存软件包--setopt=SETOPTS 设置任意配置和源选项--bugfix Include bugfix relevant packages, in updates--security Include security relevant packages, in updates--advisory=ADVS, --advisories=ADVSInclude packages needed to fix the given advisory, inupdates--bzs=BZS Include packages needed to fix the given BZ, inupdates--cves=CVES Include packages needed to fix the given CVE, inupdates--sec-severity=SEVS, --secseverity=SEVSInclude security relevant packages matching theseverity, in updates插件选项:
[root@web extra]# yum repolist
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
源标识 源名称 状态
!local local yum 4,070
!soft soft yum 1
repolist: 4,071
[root@web extra]# system status NetworkManager
bash: system: 未找到命令...
[root@web extra]# systemctl status NetworkManager
● NetworkManager.service - Network ManagerLoaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:NetworkManager(8)
[root@web extra]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:firewalld(1)
[root@web extra]# setenforce 0
setenforce: SELinux is disabled
MYSQL
yum install cmake-devel
PHP
yum install ncurses-devel
yum install libcurl-devel
yum install openssh-devel
yum install pcre-devel
[root@web extra]# yum install cmake
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
local | 3.6 kB 00:00:00
soft | 2.9 kB 00:00:00
软件包 cmake-2.8.12.2-2.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@web extra]# yum install ncurses-term.noarch
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
正在解决依赖关系
--> 正在检查事务
---> 软件包 ncurses-term.noarch.0.5.9-14.20130511.el7_4 将被 安装
--> 解决依赖关系完成依赖关系解决==========================================================================================================================================Package 架构 版本 源 大小
==========================================================================================================================================
正在安装:ncurses-term noarch 5.9-14.20130511.el7_4 local 543 k事务概要
==========================================================================================================================================
安装 1 软件包总下载量:543 k
安装大小:1.5 M
Is this ok [y/d/N]: n
Is this ok [y/d/N]: yum install ncurses-devel
Is this ok [y/d/N]: n
Exiting on user command
您的事务已保存,请执行:yum load-transaction /tmp/yum_save_tx.2025-07-05.06-57.pRswL_.yumtx 重新执行该事务
[root@web extra]# yum install ncurses-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 ncurses-devel-5.9-14.20130511.el7_4.x86_64 已安装并且是最新版本
无须任何处理
[root@web extra]# yum install openssh-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
没有可用软件包 openssh-devel。
错误:无须任何处理
[root@web extra]# yum install pcre-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 pcre-devel-8.32-17.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@web extra]# yum install libcurl-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 libcurl-devel-7.29.0-59.el7.x86_64 已安装并且是最新版本
无须任何处理
Mysql
useradd -r -s /sbin/nologin mysql
[root@web extra]# useradd mysql -r -s /sbin/nologin mysql
用法:useradd [选项] 登录useradd -Duseradd -D [选项]选项:-b, --base-dir BASE_DIR 新账户的主目录的基目录-c, --comment COMMENT 新账户的 GECOS 字段-d, --home-dir HOME_DIR 新账户的主目录-D, --defaults 显示或更改默认的 useradd 配置-e, --expiredate EXPIRE_DATE 新账户的过期日期-f, --inactive INACTIVE 新账户的密码不活动期-g, --gid GROUP 新账户主组的名称或 ID-G, --groups GROUPS 新账户的附加组列表-h, --help 显示此帮助信息并推出-k, --skel SKEL_DIR 使用此目录作为骨架目录-K, --key KEY=VALUE 不使用 /etc/login.defs 中的默认值-l, --no-log-init 不要将此用户添加到最近登录和登录失败数据库-m, --create-home 创建用户的主目录-M, --no-create-home 不创建用户的主目录-N, --no-user-group 不创建同名的组-o, --non-unique 允许使用重复的 UID 创建用户-p, --password PASSWORD 加密后的新账户密码-r, --system 创建一个系统账户-R, --root CHROOT_DIR chroot 到的目录-P, --prefix PREFIX_DIR prefix directory where are located the /etc/* files-s, --shell SHELL 新账户的登录 shell-u, --uid UID 新账户的用户 ID-U, --user-group 创建与用户同名的组-Z, --selinux-user SEUSER 为 SELinux 用户映射使用指定 SEUSER[root@web extra]# useradd -s -r /sbin/nologin mysql
useradd:无效的 shell“-r”
[root@web extra]# useradd -r -s /sbin/nologin mysql
useradd:用户“mysql”已存在
vim cmake.sh
[root@web extra]# ls
httpd-autoindex.conf httpd-default.conf httpd-languages.conf httpd-mpm.conf httpd-ssl.conf httpd-vhosts.conf
httpd-dav.conf httpd-info.conf httpd-manual.conf httpd-multilang-errordoc.conf httpd-userdir.conf proxy-html.conf
[root@web extra]# cd ~
[root@web ~]# la
bash: la: 未找到命令...
[root@web ~]# ls
anaconda-ks.cfg apr-1.5.2.tar.bz2 apr-util-1.5.4.tar.bz2 httpd-2.4.37.tar.bz2 mysql-5.6.31 php-7.2.17
apr-1.5.2 apr-util-1.5.4 httpd-2.4.37 initial-setup-ks.cfg mysql-5.6.31.tar.gz php-7.2.17.tar.xz
[root@web ~]# cd mysql-5.6.31/
[root@web mysql-5.6.31]# cat cmake.sh
cmake . \
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql/ \
-DMYSQL_DATADIR=/usr/local/mysql/data \
-DENABLED_LOCAL_INFILE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DMYSQL_TCP_PORT=3306 \
-DDEFAULT_CHARSET=utf8mb4 \
-DDEFAULT_COLLATION=utf8mb4_general_ci \
-DWITH_EXTRA_CHARSETS=all \
-DMYSQL_USER=mysql
chmod +x cmake.sh
./cmake.sh
make
make install
[root@web mysql-5.6.31]# ./cmake.sh \
> ^C
[root@web mysql-5.6.31]# make && make install \
> ^C
chown -R mysql.mysql /usr/local/mysql
// Why This Command Is Used
Permission Requirements: MySQL requires correct ownership of its files to read/write data, logs, and configuration files. Mismatched ownership causes startup failures or crashes .
Common Scenarios:
After installing MySQL manually (e.g., via tarball).
When MySQL fails to start due to permission errors (e.g., mysqld: Can’t create/write to file).
If critical files (e.g., my.cnf, data files) are accidentally owned by root instead of mysql .
rm -f /etc/my.cnf
[root@web mysql-5.6.31]# find /etc -name my.cnf
[root@web mysql-5.6.31]# chown -R mysql.mysql /usr/local/mysql\
> ^C
[root@web mysql-5.6.31]# ll /usr/local/mysql
总用量 52
drwxr-xr-x. 2 mysql mysql 4096 7月 3 22:15 bin
-rw-r--r--. 1 mysql mysql 17987 5月 17 2016 COPYING
drwxr-xr-x. 5 mysql mysql 156 7月 4 20:14 data
drwxr-xr-x. 2 mysql mysql 55 7月 3 22:15 docs
drwxr-xr-x. 3 mysql mysql 4096 7月 3 22:15 include
drwxr-xr-x. 3 mysql mysql 4096 7月 3 22:15 lib
drwxr-xr-x. 4 mysql mysql 30 7月 3 22:15 man
-rw-r--r--. 1 root root 943 7月 3 22:32 my.cnf
drwxr-xr-x. 10 mysql mysql 4096 7月 3 22:15 mysql-test
-rw-r--r--. 1 mysql mysql 2496 5月 17 2016 README
drwxr-xr-x. 2 mysql mysql 30 7月 3 22:15 scripts
drwxr-xr-x. 28 mysql mysql 4096 7月 3 22:15 share
drwxr-xr-x. 4 mysql mysql 4096 7月 3 22:15 sql-bench
drwxr-xr-x. 2 mysql mysql 136 7月 3 22:15 support-files
cd /usr/local/mysql
./scripts/mysql_install_db --user=mysql
[root@web mysql-5.6.31]# cd /usr/local/mysql
[root@web mysql]# ls
bin COPYING data docs include lib man my.cnf mysql-test README scripts share sql-bench support-files
[root@web mysql]# cd /usr/local/mysql
[root@web mysql]# cd scripts/
[root@web scripts]# ls
mysql_install_db
[root@web scripts]# cd ~
[root@web ~]# ls
anaconda-ks.cfg apr-1.5.2.tar.bz2 apr-util-1.5.4.tar.bz2 httpd-2.4.37.tar.bz2 mysql-5.6.31 php-7.2.17
apr-1.5.2 apr-util-1.5.4 httpd-2.4.37 initial-setup-ks.cfg mysql-5.6.31.tar.gz php-7.2.17.tar.xz
[root@web ~]# cd /usr/local/mysql
[root@web mysql]# ./scripts/mysql_install_db --user=mysql
Installing MySQL system tables...2025-07-05 07:16:29 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2025-07-05 07:16:29 0 [Note] ./bin/mysqld (mysqld 5.6.31) starting as process 13393 ...
2025-07-05 07:16:29 13393 [Note] InnoDB: Using atomics to ref count buffer pool pages
ll data
[root@web mysql]# ll data
总用量 110616
-rw-rw----. 1 mysql mysql 56 7月 3 22:35 auto.cnf
-rw-rw----. 1 mysql mysql 12582912 7月 5 07:16 ibdata1
-rw-rw----. 1 mysql mysql 50331648 7月 5 07:16 ib_logfile0
-rw-rw----. 1 mysql mysql 50331648 7月 3 22:32 ib_logfile1
drwx------. 2 mysql mysql 4096 7月 3 22:32 mysql
drwx------ 2 mysql mysql 4096 7月 5 07:16 performance_schema
drwxr-xr-x. 2 mysql mysql 20 7月 3 22:15 test
-rw-r-----. 1 mysql root 4508 7月 4 20:14 web.err
-rw-rw---- 1 mysql mysql 6 7月 4 20:14 web.pid
cp /support-files/mysql.server /etc/init.d/mysql
service mysql start
[root@web mysql]# ls
bin COPYING data docs include lib man my.cnf my-new.cnf mysql-test README scripts share sql-bench support-files
[root@web mysql]# ls support-files/
binary-configure magic my-default.cnf mysqld_multi.server mysql-log-rotate mysql.server
[root@web mysql]# cp support-files/mysql /etc/init.d/mysql
cp: 无法获取"support-files/mysql" 的文件状态(stat): 没有那个文件或目录
[root@web mysql]# cp support-files/mysql.server /etc/int.d/mysql
cp: 无法创建普通文件"/etc/int.d/mysql": 没有那个文件或目录
[root@web mysql]# cp support-files/mysql.server /etc/init.d/mysql
cp:是否覆盖"/etc/init.d/mysql"? n
[root@web mysql]# service mysql start
Starting MySQL SUCCESS!
cd /usr/local/mysql
bin/mysqladmin -u root -password ‘123’
[root@web mysql]# cd /usr/local/mysql
[root@web mysql]# ls
bin COPYING data docs include lib man my.cnf my-new.cnf mysql-test README scripts share sql-bench support-files
[root@web mysql]# cd bin
[root@web bin]# ls
innochecksum mysqlaccess.conf mysql_convert_table_format mysqlhotcopy mysql_tzinfo_to_sql
msql2mysql mysqladmin mysqld mysqlimport mysql_upgrade
myisamchk mysqlbinlog mysqld_multi mysql_plugin mysql_waitpid
myisam_ftdump mysqlbug mysqld_safe mysql_secure_installation mysql_zap
myisamlog mysqlcheck mysqldump mysql_setpermission perror
myisampack mysql_client_test mysqldumpslow mysqlshow replace
my_print_defaults mysql_client_test_embedded mysql_embedded mysqlslap resolveip
mysql mysql_config mysql_find_rows mysqltest resolve_stack_dump
mysqlaccess mysql_config_editor mysql_fix_extensions mysqltest_embedded
[root@web bin]# cd /usr/local/mysql
[root@web mysql]# bin/mysqladmin -u root password '123'
bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
echo ‘export PATH=$PATH:/usr/local/mysql/bin’>>/etc/profile
//Based on your provided PATH entry (PATH:/usr/local/mysql/bin), this configuration aims to resolve the "mysql: command not found" error by adding MySQL’s executable directory to the system’s search path. Below is a detailed explanation and implementation guide:
//🔧 1. Purpose of the PATH Entry
The path /usr/local/mysql/bin contains MySQL’s core executables (e.g., mysql, mysqldump). Adding it to the PATH variable allows you to run these commands directly from any terminal location without specifying the full path
source /etc/profile
[root@web mysql]# echo 'export PATH=$PATH:/usr/local/mysql/bin'>>/etc/profile \
> ^C
[root@web mysql]# cat /etc/profile
# /etc/profile# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.pathmunge () {case ":${PATH}:" in*:"$1":*);;*)if [ "$2" = "after" ] ; thenPATH=$PATH:$1elsePATH=$1:$PATHfiesac
}if [ -x /usr/bin/id ]; thenif [ -z "$EUID" ]; then# ksh workaroundEUID=`/usr/bin/id -u`UID=`/usr/bin/id -ru`fiUSER="`/usr/bin/id -un`"LOGNAME=$USERMAIL="/var/spool/mail/$USER"
fi# Path manipulation
if [ "$EUID" = "0" ]; thenpathmunge /usr/sbinpathmunge /usr/local/sbin
elsepathmunge /usr/local/sbin afterpathmunge /usr/sbin after
fiHOSTNAME=`/usr/bin/hostname 2>/dev/null`
HISTSIZE=1000
if [ "$HISTCONTROL" = "ignorespace" ] ; thenexport HISTCONTROL=ignoreboth
elseexport HISTCONTROL=ignoredups
fiexport PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL# By default, we want umask to get set. This sets it for login shell
# Current threshold for system reserved uid/gids is 200
# You could check uidgid reservation validity in
# /usr/share/doc/setup-*/uidgid file
if [ $UID -gt 199 ] && [ "`/usr/bin/id -gn`" = "`/usr/bin/id -un`" ]; thenumask 002
elseumask 022
fifor i in /etc/profile.d/*.sh /etc/profile.d/sh.local ; doif [ -r "$i" ]; thenif [ "${-#*i}" != "$-" ]; then. "$i"else. "$i" >/dev/nullfifi
doneunset i
unset -f pathmunge
export PATH=$PATH:/usr/local/mysql/bin
[root@web mysql]# cd /usr/local/mysql
[root@web mysql]# ls
bin COPYING data docs include lib man my.cnf my-new.cnf mysql-test README scripts share sql-bench support-files
[root@web mysql]# cd bin
[root@web bin]# ls
innochecksum mysqlaccess.conf mysql_convert_table_format mysqlhotcopy mysql_tzinfo_to_sql
msql2mysql mysqladmin mysqld mysqlimport mysql_upgrade
myisamchk mysqlbinlog mysqld_multi mysql_plugin mysql_waitpid
myisam_ftdump mysqlbug mysqld_safe mysql_secure_installation mysql_zap
myisamlog mysqlcheck mysqldump mysql_setpermission perror
myisampack mysql_client_test mysqldumpslow mysqlshow replace
my_print_defaults mysql_client_test_embedded mysql_embedded mysqlslap resolveip
mysql mysql_config mysql_find_rows mysqltest resolve_stack_dump
mysqlaccess mysql_config_editor mysql_fix_extensions mysqltest_embedded
mysql -uroot -p
[root@web bin]# cd /usr/local/mysql
[root@web mysql]# bin/mysqladmin -u root password '123'
bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
[root@web mysql]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.31 Source distributionCopyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> Ctrl-C -- exit!
Aborted
apache
apr
tar xf apf
cd apr
./configure
make
make install
apr-util
tar xf apr-util
cd apr-util
./configure --with-apr=/usr/local/apr/bin/apr-1-config
make
make install
http
yum remove httpd
tar xf httpd
cd httpd
[root@web ~]# ls
anaconda-ks.cfg apr-1.5.2.tar.bz2 apr-util-1.5.4.tar.bz2 httpd-2.4.37.tar.bz2 mysql-5.6.31 php-7.2.17
apr-1.5.2 apr-util-1.5.4 httpd-2.4.37 initial-setup-ks.cfg mysql-5.6.31.tar.gz php-7.2.17.tar.xz
[root@web ~]# cd httpd-2.4.37/
[root@web httpd-2.4.37]# ls
ABOUT_APACHE ap.d CHANGES configure httpd.dsp LAYOUT Makefile.in NOTICE ROADMAP
acinclude.m4 build CMakeLists.txt configure.in httpd.mak libhttpd.dep Makefile.win NWGNUmakefile server
Apache-apr2.dsw BuildAll.dsp config.layout docs httpd.spec libhttpd.dsp modules os srclib
Apache.dsw BuildBin.dsp config.log emacs-style include libhttpd.mak modules.c README support
apache_probes.d buildconf config.nice httpd INSTALL LICENSE modules.lo README.cmake test
apache.sh buildmark.o config.status httpd.dep InstallBin.dsp Makefile modules.o README.platforms VERSIONING
vim apache.sh
[root@web httpd-2.4.37]# cat apache.sh
./configure \
--enable-modules=all \
--enable-mods-shared=all \
--enable-so \
--enable-rewrite \
--with-pcre \
--enable-ssl \
--with-mpm=prefork \
--with-apr=/usr/local/apr/bin/apr-1-config \
--with-apr-util=/usr/local/apr/bin/apu-1-config
chmod +x apache.sh
./apache.sh
make && make install
Installing configuration files
[PRESERVING EXISTING HTDOCS SUBDIR: /usr/local/apache2/htdocs]
[PRESERVING EXISTING ERROR SUBDIR: /usr/local/apache2/error]
[PRESERVING EXISTING ICONS SUBDIR: /usr/local/apache2/icons]
[PRESERVING EXISTING CGI SUBDIR: /usr/local/apache2/cgi-bin]
Installing header files
Installing build system files
Installing man pages and online manual
make[1]: 离开目录“/root/httpd-2.4.37”
make[2]: 离开目录“/root/httpd-2.4.37/support”Installing configuration files
[PRESERVING EXISTING HTDOCS SUBDIR: /usr/local/apache2/htdocs]
[PRESERVING EXISTING ERROR SUBDIR: /usr/local/apache2/error]
[PRESERVING EXISTING ICONS SUBDIR: /usr/local/apache2/icons]
[PRESERVING EXISTING CGI SUBDIR: /usr/local/apache2/cgi-bin]
Installing header files
Installing build system files
Installing man pages and online manual
make[1]: 离开目录“/root/httpd-2.4.37”
[root@web httpd-2.4.37]# rpm -ql httpd
未安装软件包 httpd
cd /usr/local/apache2/
bin/apachectl
[root@web bin]# cd /usr/local/apache2
[root@web apache2]# bin/apachectl
PHP
tar xf php
cd php
vim php.sh
[root@web ~]# cd php-7.2.17/
[root@web php-7.2.17]# ls
acinclude.m4 ext Makefile php.sh README.WIN32-BUILD-SYSTEM
aclocal.m4 EXTENSIONS Makefile.frag README.EXT_SKEL run-tests.php
appveyor footer Makefile.fragments README.GIT-RULES sapi
build generated_lists Makefile.gcov README.input_filter scripts
buildconf genfiles Makefile.global README.MAILINGLIST_RULES server-tests-config.php
buildconf.bat header Makefile.objects README.md server-tests.php
CODING_STANDARDS include missing README.NEW-OUTPUT-API snapshot
config.guess INSTALL mkinstalldirs README.PARAMETER_PARSING_API stamp-h.in
config.log install-sh modules README.REDIST.BINS tests
config.nice libphp7.la NEWS README.RELEASE_PROCESS travis
config.status libs pear README.SELF-CONTAINED-EXTENSIONS TSRM
config.sub libtool php7.spec README.STREAMS UPGRADING
configure LICENSE php7.spec.in README.SUBMITTING_PATCH UPGRADING.INTERNALS
configure.ac ltmain.sh php.gif README.TESTING vcsclean
CONTRIBUTING.md main php.ini-development README.TESTING2 win32
CREDITS makedist php.ini-production README.UNIX-BUILD-SYSTEM Zend
[root@web php-7.2.17]# cat php.sh
./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysqli \
--with-pdo-mysql \
--with-zlib \
--with-curl \
--enable-zip \
--with-gd \
--with-freetype-dir \
--with-jpeg-dir \
--with-png-dir \
--enable-sockets \
--with-xmlrpc \
--enable-soap \
--enable-opcache \
--enable-mbstring \
--enable-mbregex \
--enable-pcntl \
--enable-shmop \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-calendar \
--enable-bcmath
chmod +x php.sh
./php.sh
yum install libjpeg-devel
yum install libpng-devel
yum install freetype-devel
yum install libxml2-devel
[root@web php-7.2.17]# ll php.sh
-rwxr-xr-x 1 root root 440 7月 4 21:56 php.sh
[root@web php-7.2.17]# yum install libxml2-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 libxml2-devel-2.9.1-6.el7.5.x86_64 已安装并且是最新版本
无须任何处理
[root@web php-7.2.17]# yum install libjpeg-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 libjpeg-turbo-devel-1.2.90-8.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@web php-7.2.17]# yum install libpng-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 2:libpng-devel-1.5.13-8.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@web php-7.2.17]# yum install freetype-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 freetype-devel-2.8-14.el7.x86_64 已安装并且是最新版本
无须任何处理
./php.sh
make && make install
ls /usr/local/apache2/modules/libphp7.so
[root@web extra]# cd /usr/local/apache2/modules/
[root@web modules]# ls
httpd.exp mod_authz_owner.so mod_ext_filter.so mod_proxy_balancer.so mod_session_dbd.so
libphp7.so mod_authz_user.so mod_file_cache.so mod_proxy_connect.so mod_session.so
mod_access_compat.so mod_autoindex.so mod_filter.so mod_proxy_express.so mod_setenvif.so
mod_actions.so mod_buffer.so mod_headers.so mod_proxy_fcgi.so mod_slotmem_plain.so
mod_alias.so mod_cache_disk.so mod_heartbeat.so mod_proxy_fdpass.so mod_slotmem_shm.so
mod_allowmethods.so mod_cache.so mod_heartmonitor.so mod_proxy_ftp.so mod_socache_dbm.so
mod_asis.so mod_cache_socache.so mod_include.so mod_proxy_hcheck.so mod_socache_memcache.so
mod_auth_basic.so mod_cgi.so mod_info.so mod_proxy_html.so mod_socache_shmcb.so
mod_auth_digest.so mod_charset_lite.so mod_lbmethod_bybusyness.so mod_proxy_http.so mod_speling.so
mod_auth_form.so mod_data.so mod_lbmethod_byrequests.so mod_proxy_scgi.so mod_ssl.so
mod_authn_anon.so mod_dav_fs.so mod_lbmethod_bytraffic.so mod_proxy.so mod_status.so
mod_authn_core.so mod_dav_lock.so mod_lbmethod_heartbeat.so mod_proxy_uwsgi.so mod_substitute.so
mod_authn_dbd.so mod_dav.so mod_log_config.so mod_proxy_wstunnel.so mod_unique_id.so
mod_authn_dbm.so mod_dbd.so mod_log_debug.so mod_ratelimit.so mod_unixd.so
mod_authn_file.so mod_deflate.so mod_log_forensic.so mod_reflector.so mod_userdir.so
mod_authn_socache.so mod_dialup.so mod_logio.so mod_remoteip.so mod_usertrack.so
mod_authz_core.so mod_dir.so mod_macro.so mod_reqtimeout.so mod_version.so
mod_authz_dbd.so mod_dumpio.so mod_mime_magic.so mod_request.so mod_vhost_alias.so
mod_authz_dbm.so mod_echo.so mod_mime.so mod_rewrite.so mod_watchdog.so
mod_authz_groupfile.so mod_env.so mod_negotiation.so mod_sed.so mod_xml2enc.so
mod_authz_host.so mod_expires.so mod_proxy_ajp.so mod_session_cookie.so
配置Apache与php
配置文件:/usr/local/apache2/conf/httpd.conf
语言配置文件:/usr/local/apache2/conf/extra/httpd-languages.conf
配置文件
端口
210
ServerName localhost:80
语言
159
LoadModule Negotiation_module
483
Include conf/extra/httpd-languages
php支持
166
LoadModule php7_module modules/libphp7.so
AddHandler php7-script .php
AddType text/html .php
268 主页加上index.php
DirectoryIndex index.php index.html
语言配置文件
19
DefaultLanguage zh-CN
78
LanguagePriority zh-CN
重启
[root@web modules]# vim /usr/local/apache2/conf/extra/httpd-languages.conf
[root@web modules]# cd /usr/local/apache2
[root@web apache2]# bin/apachectl -k restart
[root@web apache2]#
cd /usr/local/apache2/htdocs
rm -f index.html
vim index.php
<?
phpinfo();
?>
测试
[root@web apache2]# cd /usr/local/apache2/htdocs/
[root@web htdocs]# ks
bash: ks: 未找到命令...
[root@web htdocs]# ls
index.html
[root@web htdocs]# rm -f index.html
[root@web htdocs]# vim index.php
[root@web htdocs]# cat index.php
<?phpphpinfo();
?>
[root@web
cd /usr/local/apache2
bin/apachectl -k restart
service apache start
LAMP部署Web
tar xf wordpress
cd wordpress
[root@web ~]# ls
anaconda-ks.cfg apr-util-1.5.4 httpd-2.4.37.tar.bz2 mysql-5.6.31.tar.gz wordpress-4.7.3-zh_CN.tar.gz
apr-1.5.2 apr-util-1.5.4.tar.bz2 initial-setup-ks.cfg php-7.2.17
apr-1.5.2.tar.bz2 httpd-2.4.37 mysql-5.6.31 php-7.2.17.tar.xz
[root@web ~]# tar xf wordpress-4.7.3-zh_CN.tar.gz
[root@web ~]# cd wordpress/
[root@web wordpress]#
mkdir /www/bloglog -p
mv wordpress /www/bloglog
[root@web ~]# mkdir /www/bloglog -p
[root@web ~]# ls
anaconda-ks.cfg apr-util-1.5.4 httpd-2.4.37.tar.bz2 mysql-5.6.31.tar.gz wordpress
apr-1.5.2 apr-util-1.5.4.tar.bz2 initial-setup-ks.cfg php-7.2.17 wordpress-4.7.3-zh_CN.tar.gz
apr-1.5.2.tar.bz2 httpd-2.4.37 mysql-5.6.31 php-7.2.17.tar.xz
[root@web ~]# mv wordpress /www/bloglog/
[root@web ~]#
chown -R daemon.daemon /www/bloglog
[root@web bloglog]# chown -R daemon.daemon /www/bloglog
[root@web bloglog]# ll -d /www/bloglog
drwxr-xr-x 3 daemon daemon 23 7月 5 10:42 /www/bloglog
[root@web bloglog]#
虚拟主机
/usr/local/apache2/conf/httpd.conf
/usr/local/apache2/conf/extra/httpd-vhosts.conf
vim /usr/local/apache2/conf/httpd.conf
include conf/extra/httpd-vhosts.conf
//虚拟主机配置文件
vim /usr/local/apache2/conf/extar/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot “/www/bloglog”
ServerName www.bloglog.com
ErrorLog “logs/blog-error_log”
CustomLog “logs/blog-access_log” common
[root@web extra]# cat /usr/local/apache2/conf/extra/httpd-vhosts.conf
# Virtual Hosts
#
# Required modules: mod_log_config# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#<VirtualHost *:80>DocumentRoot "/www/bloglog"ServerName www.bloglog.comErrorLog "logs/blog-error_log"CustomLog "logs/blog-access_log" common
</VirtualHost>
cd /usr/local/apache2
bin/apachectl -k stop
bin/apachectl
bin/apachectl -k start
[root@web extra]# cd /usr/local/apache2/
[root@web apache2]# bin/apachectl -k stop
[root@web apache2]# bin/apachectl -k start
[root@web apache2]#
mysql -uroot -p
create database blog default charset utf8;
[root@web apache2]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.6.31 Source distributionCopyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> create database blog default charset utf8;
Query OK, 1 row affected (0.00 sec)mysql> Ctrl-C -- exit!
Aborted
Windows
vim /usr/local/apache2/conf/httpd.conf
220
Require all granted
[root@web wordpress]# cat /usr/local/apache2/conf/extra/httpd-vhosts.conf
# Virtual Hosts
#
# Required modules: mod_log_config# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#<VirtualHost *:80>DocumentRoot "/www/bloglog/wordpress"ServerName www.bloglog.comErrorLog "logs/blog-error_log"CustomLog "logs/blog-access_log" common
</VirtualHost>[root@web wordpress]# cd /usr/local/apache2/
[root@web apache2]# bin/apachectl -k stop
[root@web apache2]# bin/apachectl -k start
[root@web apache2]#
[root@web bloglog]# cd wordpress/
[root@web wordpress]# ls
index.php wp-activate.php wp-comments-post.php wp-content wp-links-opml.php wp-mail.php wp-trackback.php
license.txt wp-admin wp-config.php wp-cron.php wp-load.php wp-settings.php xmlrpc.php
readme.html wp-blog-header.php wp-config-sample.php wp-includes wp-login.php wp-signup.php
[root@web wordpress]# cat wp-con
wp-config.php wp-config-sample.php wp-content/
[root@web wordpress]# cat wp-config.php
<?php
/*** WordPress基础配置文件。** 这个文件被安装程序用于自动生成wp-config.php配置文件,* 您可以不使用网站,您需要手动复制这个文件,* 并重命名为“wp-config.php”,然后填入相关信息。** 本文件包含以下配置选项:** * MySQL设置* * 密钥* * 数据库表名前缀* * ABSPATH** @link https://codex.wordpress.org/zh-cn:%E7%BC%96%E8%BE%91_wp-config.php** @package WordPress*/// ** MySQL 设置 - 具体信息来自您正在使用的主机 ** //
/** WordPress数据库的名称 */
define('DB_NAME', 'blog');/** MySQL数据库用户名 */
define('DB_USER', 'root');/** MySQL数据库密码 */
define('DB_PASSWORD', '123');/** MySQL主机 */
define('DB_HOST', 'localhost');/** 创建数据表时默认的文字编码 */
define('DB_CHARSET', 'utf8mb4');/** 数据库整理类型。如不确定请勿更改 */
define('DB_COLLATE', '');/**#@+* 身份认证密钥与盐。** 修改为任意独一无二的字串!* 或者直接访问{@link https://api.wordpress.org/secret-key/1.1/salt/* WordPress.org密钥生成服务}* 任何修改都会导致所有cookies失效,所有用户将必须重新登录。** @since 2.6.0*/
define('AUTH_KEY', ')BpFm:B]4qLk*ha#3-=Ae!k+SfMXq?h#z(_k7<OAK)Oi=`VpVvtBF&3xTu9GJ+1V');
define('SECURE_AUTH_KEY', 'uHjuWe}R4tb&,{.Bb.F0Wt+awpU^U[r1kdxfF/M$%I}M-hkZ *E:uo&`}O7H(Yg,');
define('LOGGED_IN_KEY', 'lU#5 ov7`1ol)o3A6pWh8eu!KEcDAA9-_G#NmN3bT>dhVxnFl[o?tctON:C(IG&D');
define('NONCE_KEY', 'RKx2kt)kUX{_k{%$5TAf_4^/AywzVo/i(@WG1+0OqZ:>08)5w}UuAUGM&uX nhX1');
define('AUTH_SALT', '}y7ibzVG~p8cq-<Q:*NCE4Eauze)HbWwB2MLii8mmF~DxH)yx|%P>J?+1=#=Y.B=');
define('SECURE_AUTH_SALT', 'v$gxOmh_G.+?mzzHbWo)_{od 5|5]e7Njd c1_pl?|2:n$E3n1qM1v.>Y=z;YH90');
define('LOGGED_IN_SALT', 'lBqEJdVj4^vy].!{@[faxGp[tyY9~3A7hFY#dHA6YZlyWnLF 1-{I]}?2a#pt6l9');
define('NONCE_SALT', 'DYQD*^*jYM_c44W49HL`(N1[4xW66Z<,x1eT?g*0gS<V5EU+7X3Trj*Cx5Ik/fyo');/**#@-*//*** WordPress数据表前缀。** 如果您有在同一数据库内安装多个WordPress的需求,请为每个WordPress设置* 不同的数据表前缀。前缀名只能为数字、字母加下划线。*/
$table_prefix = 'wp_';/*** 开发者专用:WordPress调试模式。** 将这个值改为true,WordPress将显示所有用于开发的提示。* 强烈建议插件开发者在开发环境中启用WP_DEBUG。** 要获取其他能用于调试的信息,请访问Codex。** @link https://codex.wordpress.org/Debugging_in_WordPress*/
define('WP_DEBUG', false);/*** zh_CN本地化设置:启用ICP备案号显示** 可在设置→常规中修改。* 如需禁用,请移除或注释掉本行。*/
define('WP_ZH_CN_ICP_NUM', true);/* 好了!请不要再继续编辑。请保存本文件。使用愉快! *//** WordPress目录的绝对路径。 */
if ( !defined('ABSPATH') )define('ABSPATH', dirname(__FILE__) . '/');/** 设置WordPress变量和包含文件。 */
require_once(ABSPATH . 'wp-settings.php');
[root@web wordpress]#
码
root@192.168.235.15's password:┌────────────────────────────────────────────────────────────────────┐│ • MobaXterm 20.0 • ││ (SSH client, X-server and networking tools) ││ ││ ➤ SSH session to root@192.168.235.15 ││ • SSH compression : ✘ ││ • SSH-browser : ✔ ││ • X11-forwarding : ✔ (remote display is forwarded through SSH) ││ • DISPLAY : ✔ (automatically set on remote server) ││ ││ ➤ For more info, ctrl+click on help or visit our website │└────────────────────────────────────────────────────────────────────┘Last login: Fri Jul 4 19:21:47 2025 from 192.168.235.1
[root@web ~]# cd /usr/local/apache2/conf/
[root@web conf]# ls
extra httpd.conf httpd.conf.bak magic mime.types original
[root@web conf]# cd extra
[root@web extra]# ls
httpd-autoindex.conf httpd-default.conf httpd-languages.conf httpd-mpm.conf httpd-ssl.conf httpd-vhosts.conf
httpd-dav.conf httpd-info.conf httpd-manual.conf httpd-multilang-errordoc.conf httpd-userdir.conf proxy-html.conf
[root@web extra]# hostname
web
[root@web extra]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00inet 127.0.0.1/8 scope host lovalid_lft forever preferred_lft foreverinet6 ::1/128 scope hostvalid_lft forever preferred_lft forever
2: ens34: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000link/ether 00:0c:29:1d:53:3b brd ff:ff:ff:ff:ff:ffinet 192.168.235.15/24 brd 192.168.235.255 scope global ens34valid_lft forever preferred_lft foreverinet6 fe80::20c:29ff:fe1d:533b/64 scope linkvalid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000link/ether 52:54:00:2b:f9:1b brd ff:ff:ff:ff:ff:ffinet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000link/ether 52:54:00:2b:f9:1b brd ff:ff:ff:ff:ff:ff
[root@web extra]# yum
已加载插件:fastestmirror, langpacks
您需要给出命令
Usage: yum [options] COMMANDList of Commands:check 检查 RPM 数据库问题
check-update 检查是否有可用的软件包更新
clean 删除缓存数据
deplist 列出软件包的依赖关系
distribution-synchronization 已同步软件包到最新可用版本
downgrade 降级软件包
erase 从系统中移除一个或多个软件包
fs Acts on the filesystem data of the host, mainly for removing docs/lanuages for minimal hosts.
fssnapshot Creates filesystem snapshots, or lists/deletes current snapshots.
groups 显示或使用、组信息
help 显示用法提示
history 显示或使用事务历史
info 显示关于软件包或组的详细信息
install 向系统中安装一个或多个软件包
langavailable Check available languages
langinfo List languages information
langinstall Install appropriate language packs for a language
langlist List installed languages
langremove Remove installed language packs for a language
list 列出一个或一组软件包
load-transaction 从文件名中加载一个已存事务
makecache 创建元数据缓存
provides 查找提供指定内容的软件包
reinstall 覆盖安装软件包
repo-pkgs 将一个源当作一个软件包组,这样我们就可以一次性安装/移除全部软件包。
repolist 显示已配置的源
search 在软件包详细信息中搜索指定字符串
shell 运行交互式的 yum shell
swap Simple way to swap packages, instead of using shell
update 更新系统中的一个或多个软件包
update-minimal Works like upgrade, but goes to the 'newest' package match which fixes a problem that affects your system
updateinfo Acts on repository update information
upgrade 更新软件包同时考虑软件包取代关系
version 显示机器和/或可用的源版本。Options:-h, --help 显示此帮助消息并退出-t, --tolerant 忽略错误-C, --cacheonly 完全从系统缓存运行,不升级缓存-c [config file], --config=[config file]配置文件路径-R [minutes], --randomwait=[minutes]命令最长等待时间-d [debug level], --debuglevel=[debug level]调试输出级别--showduplicates 在 list/search 命令下,显示源里重复的条目-e [error level], --errorlevel=[error level]错误输出级别--rpmverbosity=[debug level name]RPM 调试输出级别-q, --quiet 静默执行-v, --verbose 详尽的操作过程-y, --assumeyes 回答全部问题为是--assumeno 回答全部问题为否--version 显示 Yum 版本然后退出--installroot=[path] 设置安装根目录--enablerepo=[repo] 启用一个或多个软件源(支持通配符)--disablerepo=[repo] 禁用一个或多个软件源(支持通配符)-x [package], --exclude=[package]采用全名或通配符排除软件包--disableexcludes=[repo]禁止从主配置,从源或者从任何位置排除--disableincludes=[repo]disable includepkgs for a repo or for everything--obsoletes 更新时处理软件包取代关系--noplugins 禁用 Yum 插件--nogpgcheck 禁用 GPG 签名检查--disableplugin=[plugin]禁用指定名称的插件--enableplugin=[plugin]启用指定名称的插件--skip-broken 忽略存在依赖关系问题的软件包--color=COLOR 配置是否使用颜色--releasever=RELEASEVER在 yum 配置和 repo 文件里设置 $releasever 的值--downloadonly 仅下载而不更新--downloaddir=DLDIR 指定一个其他文件夹用于保存软件包--setopt=SETOPTS 设置任意配置和源选项--bugfix Include bugfix relevant packages, in updates--security Include security relevant packages, in updates--advisory=ADVS, --advisories=ADVSInclude packages needed to fix the given advisory, inupdates--bzs=BZS Include packages needed to fix the given BZ, inupdates--cves=CVES Include packages needed to fix the given CVE, inupdates--sec-severity=SEVS, --secseverity=SEVSInclude security relevant packages matching theseverity, in updates插件选项:
[root@web extra]# yum repolist
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
源标识 源名称 状态
!local local yum 4,070
!soft soft yum 1
repolist: 4,071
[root@web extra]# system status NetworkManager
bash: system: 未找到命令...
[root@web extra]# systemctl status NetworkManager
● NetworkManager.service - Network ManagerLoaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:NetworkManager(8)
[root@web extra]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:firewalld(1)
[root@web extra]# setenforce 0
setenforce: SELinux is disabled
[root@web extra]# yum install cmake
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
local | 3.6 kB 00:00:00
soft | 2.9 kB 00:00:00
软件包 cmake-2.8.12.2-2.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@web extra]# yum install ncurses-term.noarch
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
正在解决依赖关系
--> 正在检查事务
---> 软件包 ncurses-term.noarch.0.5.9-14.20130511.el7_4 将被 安装
--> 解决依赖关系完成依赖关系解决==========================================================================================================================================Package 架构 版本 源 大小
==========================================================================================================================================
正在安装:ncurses-term noarch 5.9-14.20130511.el7_4 local 543 k事务概要
==========================================================================================================================================
安装 1 软件包总下载量:543 k
安装大小:1.5 M
Is this ok [y/d/N]: n
Is this ok [y/d/N]: yum install ncurses-devel
Is this ok [y/d/N]: n
Exiting on user command
您的事务已保存,请执行:yum load-transaction /tmp/yum_save_tx.2025-07-05.06-57.pRswL_.yumtx 重新执行该事务
[root@web extra]# yum install ncurses-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 ncurses-devel-5.9-14.20130511.el7_4.x86_64 已安装并且是最新版本
无须任何处理
[root@web extra]# yum install openssh-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
没有可用软件包 openssh-devel。
错误:无须任何处理
[root@web extra]# yum install pcre-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 pcre-devel-8.32-17.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@web extra]# yum install libcurl-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 libcurl-devel-7.29.0-59.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@web extra]# useradd mysql -r -s /sbin/nologin mysql
用法:useradd [选项] 登录useradd -Duseradd -D [选项]选项:-b, --base-dir BASE_DIR 新账户的主目录的基目录-c, --comment COMMENT 新账户的 GECOS 字段-d, --home-dir HOME_DIR 新账户的主目录-D, --defaults 显示或更改默认的 useradd 配置-e, --expiredate EXPIRE_DATE 新账户的过期日期-f, --inactive INACTIVE 新账户的密码不活动期-g, --gid GROUP 新账户主组的名称或 ID-G, --groups GROUPS 新账户的附加组列表-h, --help 显示此帮助信息并推出-k, --skel SKEL_DIR 使用此目录作为骨架目录-K, --key KEY=VALUE 不使用 /etc/login.defs 中的默认值-l, --no-log-init 不要将此用户添加到最近登录和登录失败数据库-m, --create-home 创建用户的主目录-M, --no-create-home 不创建用户的主目录-N, --no-user-group 不创建同名的组-o, --non-unique 允许使用重复的 UID 创建用户-p, --password PASSWORD 加密后的新账户密码-r, --system 创建一个系统账户-R, --root CHROOT_DIR chroot 到的目录-P, --prefix PREFIX_DIR prefix directory where are located the /etc/* files-s, --shell SHELL 新账户的登录 shell-u, --uid UID 新账户的用户 ID-U, --user-group 创建与用户同名的组-Z, --selinux-user SEUSER 为 SELinux 用户映射使用指定 SEUSER[root@web extra]# useradd -s -r /sbin/nologin mysql
useradd:无效的 shell“-r”
[root@web extra]# useradd -r -s /sbin/nologin mysql
useradd:用户“mysql”已存在
[root@web extra]# ls
httpd-autoindex.conf httpd-default.conf httpd-languages.conf httpd-mpm.conf httpd-ssl.conf httpd-vhosts.conf
httpd-dav.conf httpd-info.conf httpd-manual.conf httpd-multilang-errordoc.conf httpd-userdir.conf proxy-html.conf
[root@web extra]# cd ~
[root@web ~]# la
bash: la: 未找到命令...
[root@web ~]# ls
anaconda-ks.cfg apr-1.5.2.tar.bz2 apr-util-1.5.4.tar.bz2 httpd-2.4.37.tar.bz2 mysql-5.6.31 php-7.2.17
apr-1.5.2 apr-util-1.5.4 httpd-2.4.37 initial-setup-ks.cfg mysql-5.6.31.tar.gz php-7.2.17.tar.xz
[root@web ~]# cd mysql-5.6.31/
[root@web mysql-5.6.31]# cat cmake.sh
cmake . \
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql/ \
-DMYSQL_DATADIR=/usr/local/mysql/data \
-DENABLED_LOCAL_INFILE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DMYSQL_TCP_PORT=3306 \
-DDEFAULT_CHARSET=utf8mb4 \
-DDEFAULT_COLLATION=utf8mb4_general_ci \
-DWITH_EXTRA_CHARSETS=all \
-DMYSQL_USER=mysql
[root@web mysql-5.6.31]# ll cmake.sh
-rwxr-xr-x. 1 root root 295 7月 3 22:04 cmake.sh
[root@web mysql-5.6.31]# ./cmake.sh \
> ^C
[root@web mysql-5.6.31]# make && make install \
> ^C
[root@web mysql-5.6.31]# find /etc -name my.cnf
[root@web mysql-5.6.31]# chown -R mysql.mysql /usr/local/mysql\
> ^C
[root@web mysql-5.6.31]# ll /usr/local/mysql
总用量 52
drwxr-xr-x. 2 mysql mysql 4096 7月 3 22:15 bin
-rw-r--r--. 1 mysql mysql 17987 5月 17 2016 COPYING
drwxr-xr-x. 5 mysql mysql 156 7月 4 20:14 data
drwxr-xr-x. 2 mysql mysql 55 7月 3 22:15 docs
drwxr-xr-x. 3 mysql mysql 4096 7月 3 22:15 include
drwxr-xr-x. 3 mysql mysql 4096 7月 3 22:15 lib
drwxr-xr-x. 4 mysql mysql 30 7月 3 22:15 man
-rw-r--r--. 1 root root 943 7月 3 22:32 my.cnf
drwxr-xr-x. 10 mysql mysql 4096 7月 3 22:15 mysql-test
-rw-r--r--. 1 mysql mysql 2496 5月 17 2016 README
drwxr-xr-x. 2 mysql mysql 30 7月 3 22:15 scripts
drwxr-xr-x. 28 mysql mysql 4096 7月 3 22:15 share
drwxr-xr-x. 4 mysql mysql 4096 7月 3 22:15 sql-bench
drwxr-xr-x. 2 mysql mysql 136 7月 3 22:15 support-files
[root@web mysql-5.6.31]# cd /usr/local/mysql
[root@web mysql]# ls
bin COPYING data docs include lib man my.cnf mysql-test README scripts share sql-bench support-files
[root@web mysql]# cd /usr/local/mysql
[root@web mysql]# cd scripts/
[root@web scripts]# ls
mysql_install_db
[root@web scripts]# cd ~
[root@web ~]# ls
anaconda-ks.cfg apr-1.5.2.tar.bz2 apr-util-1.5.4.tar.bz2 httpd-2.4.37.tar.bz2 mysql-5.6.31 php-7.2.17
apr-1.5.2 apr-util-1.5.4 httpd-2.4.37 initial-setup-ks.cfg mysql-5.6.31.tar.gz php-7.2.17.tar.xz
[root@web ~]# cd /usr/local/mysql
[root@web mysql]# ./scripts/mysql_install_db --user=mysql
Installing MySQL system tables...2025-07-05 07:16:29 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2025-07-05 07:16:29 0 [Note] ./bin/mysqld (mysqld 5.6.31) starting as process 13393 ...
2025-07-05 07:16:29 13393 [Note] InnoDB: Using atomics to ref count buffer pool pages
2025-07-05 07:16:29 13393 [Note] InnoDB: The InnoDB memory heap is disabled
2025-07-05 07:16:29 13393 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2025-07-05 07:16:29 13393 [Note] InnoDB: Memory barrier is not used
2025-07-05 07:16:29 13393 [Note] InnoDB: Compressed tables use zlib 1.2.3
2025-07-05 07:16:29 13393 [Note] InnoDB: Using CPU crc32 instructions
2025-07-05 07:16:29 13393 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2025-07-05 07:16:29 13393 [Note] InnoDB: Completed initialization of buffer pool
2025-07-05 07:16:29 13393 [Note] InnoDB: Highest supported file format is Barracuda.
2025-07-05 07:16:29 13393 [Note] InnoDB: The log sequence numbers 1625987 and 1625987 in ibdata files do not match the log sequence number 1626007 in the ib_logfiles!
2025-07-05 07:16:29 13393 [Note] InnoDB: Database was not shutdown normally!
2025-07-05 07:16:29 13393 [Note] InnoDB: Starting crash recovery.
2025-07-05 07:16:29 13393 [Note] InnoDB: Reading tablespace information from the .ibd files...
2025-07-05 07:16:29 13393 [Note] InnoDB: Restoring possible half-written data pages
2025-07-05 07:16:29 13393 [Note] InnoDB: from the doublewrite buffer...
2025-07-05 07:16:29 13393 [Note] InnoDB: 128 rollback segment(s) are active.
2025-07-05 07:16:29 13393 [Note] InnoDB: Waiting for purge to start
2025-07-05 07:16:29 13393 [Note] InnoDB: 5.6.31 started; log sequence number 1626007
2025-07-05 07:16:29 13393 [Note] Binlog end
2025-07-05 07:16:29 13393 [Note] InnoDB: FTS optimize thread exiting.
2025-07-05 07:16:29 13393 [Note] InnoDB: Starting shutdown...
2025-07-05 07:16:30 13393 [Note] InnoDB: Shutdown completed; log sequence number 1626017
OKFilling help tables...2025-07-05 07:16:30 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2025-07-05 07:16:30 0 [Note] ./bin/mysqld (mysqld 5.6.31) starting as process 13423 ...
2025-07-05 07:16:30 13423 [Note] InnoDB: Using atomics to ref count buffer pool pages
2025-07-05 07:16:30 13423 [Note] InnoDB: The InnoDB memory heap is disabled
2025-07-05 07:16:30 13423 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2025-07-05 07:16:30 13423 [Note] InnoDB: Memory barrier is not used
2025-07-05 07:16:30 13423 [Note] InnoDB: Compressed tables use zlib 1.2.3
2025-07-05 07:16:30 13423 [Note] InnoDB: Using CPU crc32 instructions
2025-07-05 07:16:30 13423 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2025-07-05 07:16:30 13423 [Note] InnoDB: Completed initialization of buffer pool
2025-07-05 07:16:30 13423 [Note] InnoDB: Highest supported file format is Barracuda.
2025-07-05 07:16:30 13423 [Note] InnoDB: 128 rollback segment(s) are active.
2025-07-05 07:16:30 13423 [Note] InnoDB: Waiting for purge to start
2025-07-05 07:16:31 13423 [Note] InnoDB: 5.6.31 started; log sequence number 1626017
2025-07-05 07:16:31 13423 [Note] Binlog end
2025-07-05 07:16:31 13423 [Note] InnoDB: FTS optimize thread exiting.
2025-07-05 07:16:31 13423 [Note] InnoDB: Starting shutdown...
2025-07-05 07:16:32 13423 [Note] InnoDB: Shutdown completed; log sequence number 1626027
OKTo start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:./bin/mysqladmin -u root password 'new-password'./bin/mysqladmin -u root -h web password 'new-password'Alternatively you can run:./bin/mysql_secure_installationwhich will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.See the manual for more instructions.You can start the MySQL daemon with:cd . ; ./bin/mysqld_safe &You can test the MySQL daemon with mysql-test-run.plcd mysql-test ; perl mysql-test-run.plPlease report any problems at http://bugs.mysql.com/The latest information about MySQL is available on the web athttp://www.mysql.comSupport MySQL by buying support/licenses at http://shop.mysql.comWARNING: Found existing config file ./my.cnf on the system.
Because this file might be in use, it was not replaced,
but was used in bootstrap (unless you used --defaults-file)
and when you later start the server.
The new default config file was created as ./my-new.cnf,
please compare it with your file and take the changes you need.[root@web mysql]# ll data
总用量 110616
-rw-rw----. 1 mysql mysql 56 7月 3 22:35 auto.cnf
-rw-rw----. 1 mysql mysql 12582912 7月 5 07:16 ibdata1
-rw-rw----. 1 mysql mysql 50331648 7月 5 07:16 ib_logfile0
-rw-rw----. 1 mysql mysql 50331648 7月 3 22:32 ib_logfile1
drwx------. 2 mysql mysql 4096 7月 3 22:32 mysql
drwx------ 2 mysql mysql 4096 7月 5 07:16 performance_schema
drwxr-xr-x. 2 mysql mysql 20 7月 3 22:15 test
-rw-r-----. 1 mysql root 4508 7月 4 20:14 web.err
-rw-rw---- 1 mysql mysql 6 7月 4 20:14 web.pid
[root@web mysql]# ls
bin COPYING data docs include lib man my.cnf my-new.cnf mysql-test README scripts share sql-bench support-files
[root@web mysql]# ls support-files/
binary-configure magic my-default.cnf mysqld_multi.server mysql-log-rotate mysql.server
[root@web mysql]# cp support-files/mysql /etc/init.d/mysql
cp: 无法获取"support-files/mysql" 的文件状态(stat): 没有那个文件或目录
[root@web mysql]# cp support-files/mysql.server /etc/int.d/mysql
cp: 无法创建普通文件"/etc/int.d/mysql": 没有那个文件或目录
[root@web mysql]# cp support-files/mysql.server /etc/init.d/mysql
cp:是否覆盖"/etc/init.d/mysql"? n
[root@web mysql]# service mysql start
Starting MySQL SUCCESS!
[root@web mysql]# echo 'export PATH=$PATH:/usr/local/mysql/bin'>>/etc/profile \
> ^C
[root@web mysql]# cat /etc/profile
# /etc/profile# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.pathmunge () {case ":${PATH}:" in*:"$1":*);;*)if [ "$2" = "after" ] ; thenPATH=$PATH:$1elsePATH=$1:$PATHfiesac
}if [ -x /usr/bin/id ]; thenif [ -z "$EUID" ]; then# ksh workaroundEUID=`/usr/bin/id -u`UID=`/usr/bin/id -ru`fiUSER="`/usr/bin/id -un`"LOGNAME=$USERMAIL="/var/spool/mail/$USER"
fi# Path manipulation
if [ "$EUID" = "0" ]; thenpathmunge /usr/sbinpathmunge /usr/local/sbin
elsepathmunge /usr/local/sbin afterpathmunge /usr/sbin after
fiHOSTNAME=`/usr/bin/hostname 2>/dev/null`
HISTSIZE=1000
if [ "$HISTCONTROL" = "ignorespace" ] ; thenexport HISTCONTROL=ignoreboth
elseexport HISTCONTROL=ignoredups
fiexport PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL# By default, we want umask to get set. This sets it for login shell
# Current threshold for system reserved uid/gids is 200
# You could check uidgid reservation validity in
# /usr/share/doc/setup-*/uidgid file
if [ $UID -gt 199 ] && [ "`/usr/bin/id -gn`" = "`/usr/bin/id -un`" ]; thenumask 002
elseumask 022
fifor i in /etc/profile.d/*.sh /etc/profile.d/sh.local ; doif [ -r "$i" ]; thenif [ "${-#*i}" != "$-" ]; then. "$i"else. "$i" >/dev/nullfifi
doneunset i
unset -f pathmunge
export PATH=$PATH:/usr/local/mysql/bin
[root@web mysql]# cd /usr/local/mysql
[root@web mysql]# ls
bin COPYING data docs include lib man my.cnf my-new.cnf mysql-test README scripts share sql-bench support-files
[root@web mysql]# cd bin
[root@web bin]# ls
innochecksum mysqlaccess.conf mysql_convert_table_format mysqlhotcopy mysql_tzinfo_to_sql
msql2mysql mysqladmin mysqld mysqlimport mysql_upgrade
myisamchk mysqlbinlog mysqld_multi mysql_plugin mysql_waitpid
myisam_ftdump mysqlbug mysqld_safe mysql_secure_installation mysql_zap
myisamlog mysqlcheck mysqldump mysql_setpermission perror
myisampack mysql_client_test mysqldumpslow mysqlshow replace
my_print_defaults mysql_client_test_embedded mysql_embedded mysqlslap resolveip
mysql mysql_config mysql_find_rows mysqltest resolve_stack_dump
mysqlaccess mysql_config_editor mysql_fix_extensions mysqltest_embedded
[root@web bin]# cd /usr/local/mysql
[root@web mysql]# bin/mysqladmin -u root password '123'
bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
[root@web mysql]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.31 Source distributionCopyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> Ctrl-C -- exit!
Aborted
[root@web mysql]# cd /
[root@web /]# ls
bin boot dev etc home lib lib64 media mnt opt proc root run sbin soft soft1 srv sys tmp usr var
[root@web /]# cd ~
[root@web ~]# ls
anaconda-ks.cfg apr-1.5.2.tar.bz2 apr-util-1.5.4.tar.bz2 httpd-2.4.37.tar.bz2 mysql-5.6.31 php-7.2.17
apr-1.5.2 apr-util-1.5.4 httpd-2.4.37 initial-setup-ks.cfg mysql-5.6.31.tar.gz php-7.2.17.tar.xz
[root@web ~]# cd apr-1.5.2/
[root@web apr-1.5.2]# ./configure && make && make install \
> ^C
[root@web apr-1.5.2]# cd ~
[root@web ~]# cd apr-util-1.5.4/
[root@web apr-util-1.5.4]# ./configure --with-apr=/usr/local/apr/bin/apr-1-config \
> ^C
[root@web apr-util-1.5.4]# cd /usr/local/mysql
[root@web mysql]# cd /usr/local/bin
[root@web bin]# ls
pear peardev pecl phar phar.phar php php-cgi php-config phpdbg phpize
[root@web bin]# cd /usr/local/mysql
[root@web mysql]# ls
bin COPYING data docs include lib man my.cnf my-new.cnf mysql-test README scripts share sql-bench support-files
[root@web mysql]# ls bin
innochecksum mysqlaccess.conf mysql_convert_table_format mysqlhotcopy mysql_tzinfo_to_sql
msql2mysql mysqladmin mysqld mysqlimport mysql_upgrade
myisamchk mysqlbinlog mysqld_multi mysql_plugin mysql_waitpid
myisam_ftdump mysqlbug mysqld_safe mysql_secure_installation mysql_zap
myisamlog mysqlcheck mysqldump mysql_setpermission perror
myisampack mysql_client_test mysqldumpslow mysqlshow replace
my_print_defaults mysql_client_test_embedded mysql_embedded mysqlslap resolveip
mysql mysql_config mysql_find_rows mysqltest resolve_stack_dump
mysqlaccess mysql_config_editor mysql_fix_extensions mysqltest_embedded
[root@web mysql]# cd /usr/local/apr/
[root@web apr]# ls
bin build-1 include lib
[root@web apr]# cd bin
[root@web bin]# ls
apr-1-config apu-1-config
[root@web bin]# make && make install \
> ^C
[root@web bin]# yum remove httpd
已加载插件:fastestmirror, langpacks
参数 httpd 没有匹配
不删除任何软件包
[root@web bin]# cd ~
[root@web ~]# ls
anaconda-ks.cfg apr-1.5.2.tar.bz2 apr-util-1.5.4.tar.bz2 httpd-2.4.37.tar.bz2 mysql-5.6.31 php-7.2.17
apr-1.5.2 apr-util-1.5.4 httpd-2.4.37 initial-setup-ks.cfg mysql-5.6.31.tar.gz php-7.2.17.tar.xz
[root@web ~]# cd httpd-2.4.37/
[root@web httpd-2.4.37]# ls
ABOUT_APACHE ap.d CHANGES configure httpd.dsp LAYOUT Makefile.in NOTICE ROADMAP
acinclude.m4 build CMakeLists.txt configure.in httpd.mak libhttpd.dep Makefile.win NWGNUmakefile server
Apache-apr2.dsw BuildAll.dsp config.layout docs httpd.spec libhttpd.dsp modules os srclib
Apache.dsw BuildBin.dsp config.log emacs-style include libhttpd.mak modules.c README support
apache_probes.d buildconf config.nice httpd INSTALL LICENSE modules.lo README.cmake test
apache.sh buildmark.o config.status httpd.dep InstallBin.dsp Makefile modules.o README.platforms VERSIONING
[root@web httpd-2.4.37]# ls
ABOUT_APACHE ap.d CHANGES configure httpd.dsp LAYOUT Makefile.in NOTICE ROADMAP
acinclude.m4 build CMakeLists.txt configure.in httpd.mak libhttpd.dep Makefile.win NWGNUmakefile server
Apache-apr2.dsw BuildAll.dsp config.layout docs httpd.spec libhttpd.dsp modules os srclib
Apache.dsw BuildBin.dsp config.log emacs-style include libhttpd.mak modules.c README support
apache_probes.d buildconf config.nice httpd INSTALL LICENSE modules.lo README.cmake test
apache.sh buildmark.o config.status httpd.dep InstallBin.dsp Makefile modules.o README.platforms VERSIONING
[root@web httpd-2.4.37]# cat apache.sh
./configure \
--enable-modules=all \
--enable-mods-shared=all \
--enable-so \
--enable-rewrite \
--with-pcre \
--enable-ssl \
--with-mpm=prefork \
--with-apr=/usr/local/apr/bin/apr-1-config \
--with-apr-util=/usr/local/apr/bin/apu-1-config
[root@web httpd-2.4.37]# ll apache.sh
-rwxr-xr-x 1 root dip 240 7月 4 20:56 apache.sh
[root@web httpd-2.4.37]# rpm -q httpd
未安装软件包 httpd
[root@web httpd-2.4.37]# rpm -ql|grep httpd
rpm:未给出要查询的参数
[root@web httpd-2.4.37]# rpm -q http
未安装软件包 http
[root@web httpd-2.4.37]# ./apache.sh
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
configure:
configure: Configuring Apache Portable Runtime library...
configure:
checking for APR... yessetting CC to "gcc"setting CPP to "gcc -E"setting CFLAGS to " -g -O2 -pthread"setting CPPFLAGS to " -DLINUX -D_REENTRANT -D_GNU_SOURCE"setting LDFLAGS to " "
configure:
configure: Configuring Apache Portable Runtime Utility library...
configure:
checking for APR-util... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for gcc option to accept ISO C99... -std=gnu99
checking for pcre-config... /usr/bin/pcre-config
configure: Using external PCRE library from /usr/bin/pcre-configsetting PCRE_INCLUDES to ""setting PCRE_LIBS to "-lpcre"
configure:
configure: Configuring Apache httpd...
configure:setting INCLUDES to "-I."adding "-I$(top_srcdir)/os/$(OS_DIR)" to INCLUDESadding "-I$(top_srcdir)/include" to INCLUDESadding "-I/usr/local/apr/include/apr-1" to INCLUDES
configure:
configure: Applying OS-specific hints for httpd...
configure:forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to "1"forcing AP_NONBLOCK_WHEN_MULTI_LISTEN to "1"
checking for rm... /usr/bin/rm
checking for pkg-config... /usr/bin/pkg-config
checking for rsync... /usr/bin/rsync
checking for gawk... gawk
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for lynx... no
checking for links... no
checking for elinks... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking for APR version 1.3.0 or later... yes
checking for APR-util version 1.3.0 or later... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for strings.h... (cached) yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking sys/processor.h usability... no
checking sys/processor.h presence... no
checking for sys/processor.h... no
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking sys/sdt.h usability... no
checking sys/sdt.h presence... no
checking for sys/sdt.h... no
checking sys/loadavg.h usability... no
checking sys/loadavg.h presence... no
checking for sys/loadavg.h... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for an ANSI C-conforming const... yes
checking for library containing sqrt... -lm
checking for library containing crypt... -lcrypt
checking for getpwnam... yes
checking for getgrnam... yes
checking for initgroups... yes
checking for bindprocessor... no
checking for prctl... yes
checking for timegm... yes
checking for getpgid... yes
checking for fopen64... yes
checking for getloadavg... yes
checking for void pointer length... no
checking for gettid()... yes
checking for tm_gmtoff in struct tm... yes
checking whether to enable mod_authn_file... shared
checking whether to enable mod_authn_dbm... shared (all)
checking whether to enable mod_authn_anon... shared (all)
checking whether to enable mod_authn_dbd... shared (all)
checking whether to enable mod_authn_socache... shared (all)
checking whether to enable mod_authn_core... shared
checking whether to enable mod_authz_host... shared
checking whether to enable mod_authz_groupfile... shared
checking whether to enable mod_authz_user... shared
checking whether to enable mod_authz_dbm... shared (all)
checking whether to enable mod_authz_owner... shared (all)
checking whether to enable mod_authz_dbd... shared (all)
checking whether to enable mod_authz_core... shared
checking whether to enable mod_authnz_ldap... checking dependencies
checking for ldap support in apr/apr-util... no
configure: WARNING: apr/apr-util is compiled without ldap support
checking whether to enable mod_authnz_ldap... no (disabled)
checking whether to enable mod_authnz_fcgi... no
checking whether to enable mod_access_compat... shared
checking whether to enable mod_auth_basic... shared
checking whether to enable mod_auth_form... shared (all)
checking whether to enable mod_auth_digest... checking dependencies
checking whether to enable mod_auth_digest... shared (all)
checking whether to enable mod_allowmethods... shared (all)adding "-I$(top_srcdir)/modules/aaa" to INCLUDES
checking whether to enable mod_isapi... no
checking whether to enable mod_file_cache... shared (all)
checking whether to enable mod_cache... shared (all)
checking whether to enable mod_cache_disk... checking dependencies
checking whether to enable mod_cache_disk... shared (all)
checking whether to enable mod_cache_socache... shared (all)
checking whether to enable mod_socache_shmcb... shared (all)
checking whether to enable mod_socache_dbm... shared (all)
checking whether to enable mod_socache_memcache... shared (all)
checking whether to enable mod_socache_dc... noadding "-I$(top_srcdir)/modules/cache" to INCLUDESsetting HTTPD_LDFLAGS to "-export-dynamic"
checking whether to enable mod_so... staticsetting AP_LIBS to "$(MOD_SO_LDADD)"
checking whether to enable mod_watchdog... checking dependencies
checking whether to enable mod_watchdog... shared (all)
checking whether to enable mod_macro... shared (all)adding "-I$(top_srcdir)/modules/core" to INCLUDES
checking whether to enable mod_dbd... shared (all)adding "-I$(top_srcdir)/modules/database" to INCLUDES
checking whether to enable mod_bucketeer... no
checking whether to enable mod_dumpio... shared (all)
checking whether to enable mod_echo... shared (all)
checking whether to enable mod_example_hooks... no
checking whether to enable mod_case_filter... no
checking whether to enable mod_case_filter_in... no
checking whether to enable mod_example_ipc... no
checking whether to enable mod_buffer... shared (all)
checking whether to enable mod_data... shared (all)
checking whether to enable mod_ratelimit... shared (all)
checking whether to enable mod_reqtimeout... shared
checking whether to enable mod_ext_filter... shared (all)
checking whether to enable mod_request... shared (all)
checking whether to enable mod_include... shared (all)
checking whether to enable mod_filter... shared
checking whether to enable mod_reflector... shared (all)
checking whether to enable mod_substitute... shared (all)
checking whether to enable mod_sed... checking dependenciessetting MOD_SED_LDADD to "-export-symbols-regex sed_module"
checking whether to enable mod_sed... shared (all)
checking whether to enable mod_charset_lite... shared (all)
checking whether to enable mod_deflate... checking dependencies
checking for zlib location... /usrsetting LIBS to "-lz"
checking for zlib library... foundsetting MOD_DEFLATE_LDADD to " -lz"nulling LIBS
checking whether to enable mod_deflate... shared (all)
checking whether to enable mod_xml2enc... checking dependencies
checking for libxml2... checking for libxml2... yessetting MOD_CFLAGS to "-I/usr/include/libxml2"setting MOD_XML2ENC_LDADD to "-lxml2"
checking whether to enable mod_xml2enc... shared (all)
checking whether to enable mod_proxy_html... checking dependencies
checking for libxml2... (cached) yessetting MOD_PROXY_HTML_LDADD to "-lxml2"
checking whether to enable mod_proxy_html... shared (all)
checking whether to enable mod_brotli... checking dependencies
checking for Brotli library >= 0.6.0 via pkg-config... no
checking whether to enable mod_brotli... no (disabled)adding "-I$(top_srcdir)/modules/filters" to INCLUDES
checking whether to enable mod_http... staticadding "$(MOD_HTTP_LDADD)" to AP_LIBS
checking whether to enable mod_mime... shared
checking whether to enable mod_ldap... checking dependencies
checking for ldap support in apr/apr-util... (cached) no
configure: WARNING: apr/apr-util is compiled without ldap support
checking whether to enable mod_ldap... no (disabled)adding "-I$(top_srcdir)/modules/ldap" to INCLUDES
checking whether to enable mod_log_config... shared
checking whether to enable mod_log_debug... shared (all)
checking whether to enable mod_log_forensic... shared (all)adding "-I$(top_builddir)/server" to INCLUDES
checking whether to enable mod_logio... shared (all)adding "-I$(top_srcdir)/modules/loggers" to INCLUDES
checking whether to enable mod_lua... checking dependencies
checking for pow in -lm... yes
checking for sqrt in -lm... yes
checking for lua.h in ./include/lua-5.3... no
checking for lua.h in ./include/lua5.3... no
checking for lua.h in ./include/lua53... no
checking for lua.h in ./include... no
checking for lua.h in ./include/lua-5.2... no
checking for lua.h in ./include/lua5.2... no
checking for lua.h in ./include/lua52... no
checking for lua.h in ./include/lua-5.1... no
checking for lua.h in ./include/lua5.1... no
checking for lua.h in ./include/lua51... no
checking for lua.h in /usr/local/include/lua-5.3... no
checking for lua.h in /usr/local/include/lua5.3... no
checking for lua.h in /usr/local/include/lua53... no
checking for lua.h in /usr/local/include... no
checking for lua.h in /usr/local/include/lua-5.2... no
checking for lua.h in /usr/local/include/lua5.2... no
checking for lua.h in /usr/local/include/lua52... no
checking for lua.h in /usr/local/include/lua-5.1... no
checking for lua.h in /usr/local/include/lua5.1... no
checking for lua.h in /usr/local/include/lua51... no
checking for lua.h in /usr/include/lua-5.3... no
checking for lua.h in /usr/include/lua5.3... no
checking for lua.h in /usr/include/lua53... no
checking for lua.h in /usr/include... no
checking for lua.h in /usr/include/lua-5.2... no
checking for lua.h in /usr/include/lua5.2... no
checking for lua.h in /usr/include/lua52... no
checking for lua.h in /usr/include/lua-5.1... no
checking for lua.h in /usr/include/lua5.1... no
checking for lua.h in /usr/include/lua51... no
configure: WARNING: *** Lua 5.3 5.2 or 5.1 library not found.
configure: WARNING: Lua 5.3 5.2 or 5.1 library is required
checking whether to enable mod_lua... no (disabled)adding "-I$(top_srcdir)/modules/lua" to INCLUDES
checking whether to enable mod_env... shared
checking whether to enable mod_mime_magic... shared (all)
checking whether to enable mod_cern_meta... no
checking whether to enable mod_expires... shared (all)
checking whether to enable mod_headers... shared
checking whether to enable mod_ident... no
checking whether to enable mod_usertrack... checking dependencies
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for times... yes
checking whether to enable mod_usertrack... shared (all)
checking whether to enable mod_unique_id... shared (all)
checking whether to enable mod_setenvif... shared
checking whether to enable mod_version... shared
checking whether to enable mod_remoteip... shared (all)
checking whether to enable mod_proxy... shared (all)
checking whether to enable mod_proxy_connect... checking dependencies
checking whether to enable mod_proxy_connect... shared (most)
checking whether to enable mod_proxy_ftp... checking dependencies
checking whether to enable mod_proxy_ftp... shared (most)
checking whether to enable mod_proxy_http... checking dependencies
checking whether to enable mod_proxy_http... shared (most)
checking whether to enable mod_proxy_fcgi... checking dependencies
checking whether to enable mod_proxy_fcgi... shared (most)
checking whether to enable mod_proxy_scgi... checking dependencies
checking whether to enable mod_proxy_scgi... shared (most)
checking whether to enable mod_proxy_uwsgi... checking dependencies
checking whether to enable mod_proxy_uwsgi... shared (most)
checking whether to enable mod_proxy_fdpass... checking dependencies
checking whether CMSG_DATA is declared... yes
checking whether to enable mod_proxy_fdpass... shared (most)
checking whether to enable mod_proxy_wstunnel... checking dependencies
checking whether to enable mod_proxy_wstunnel... shared (most)
checking whether to enable mod_proxy_ajp... checking dependencies
checking whether to enable mod_proxy_ajp... shared (most)
checking whether to enable mod_proxy_balancer... checking dependencies
checking whether to enable mod_proxy_balancer... shared (most)
checking whether to enable mod_proxy_express... checking dependencies
checking whether to enable mod_proxy_express... shared (most)
checking whether to enable mod_proxy_hcheck... checking dependencies
checking whether to enable mod_proxy_hcheck... shared (most)adding "-I$(top_srcdir)/modules/proxy" to INCLUDESadding "-I$(top_srcdir)/modules/http2" to INCLUDES
checking whether to enable mod_session... shared (all)
checking whether to enable mod_session_cookie... checking dependencies
checking whether to enable mod_session_cookie... shared (all)
configure: WARNING: Your APR does not include SSL/EVP support. To enable it: configure --with-crypto
checking whether to enable mod_session_crypto... no
checking whether to enable mod_session_dbd... checking dependencies
checking whether to enable mod_session_dbd... shared (all)adding "-I$(top_srcdir)/modules/session" to INCLUDES
checking whether to enable mod_slotmem_shm... shared (all)
checking whether to enable mod_slotmem_plain... shared (all)
checking whether to enable mod_ssl... checking dependencies
checking for OpenSSL... checking for user-provided OpenSSL base directory... nonesetting MOD_CFLAGS to " "setting ab_CFLAGS to " "setting MOD_LDFLAGS to " "
checking for OpenSSL version >= 0.9.8a... OKadding "-lssl" to MOD_LDFLAGSadding "-lcrypto" to MOD_LDFLAGSadding "-lrt" to MOD_LDFLAGSadding "-lcrypt" to MOD_LDFLAGSadding "-lpthread" to MOD_LDFLAGSadding "-ldl" to MOD_LDFLAGSsetting LIBS to "-lssl -lcrypto -lrt -lcrypt -lpthread -ldl"forcing ab_LIBS to " -lssl -lcrypto -lrt -lcrypt -lpthread -ldl"
checking openssl/engine.h usability... yes
checking openssl/engine.h presence... yes
checking for openssl/engine.h... yes
checking for SSL_CTX_new... yes
checking for ENGINE_init... yes
checking for ENGINE_load_builtin_engines... yes
checking for RAND_egd... yes
yessetting MOD_SSL_LDADD to "-export-symbols-regex ssl_module"
checking whether to enable mod_ssl... sharedadding "-I$(top_srcdir)/modules/ssl" to INCLUDES
checking whether to enable mod_optional_hook_export... no
checking whether to enable mod_optional_hook_import... no
checking whether to enable mod_optional_fn_import... no
checking whether to enable mod_optional_fn_export... no
checking whether to enable mod_dialup... shared (all)adding "-I$(top_srcdir)/modules/test" to INCLUDES
checking for target platform... unix
checking for rlim_t... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/sem.h... (cached) yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking for setsid... yes
checking for killpg... yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking for unistd.h... (cached) yes
checking for syslog... yes
checking for sys/times.h... (cached) yes
checking for times... (cached) yesadding "-I$(top_srcdir)/server" to INCLUDES
checking whether APR supports thread-safe pollsets... checking for kqueue... no
checking for port_create... no
checking for epoll_create... yes
yes
checking if event MPM supports this platform... yes
checking if mpmt_os2 MPM supports this platform... no
checking if prefork MPM supports this platform... yes
checking if WinNT MPM supports this platform... no
checking if worker MPM supports this platform... yes
checking whether to enable mod_http2... checking dependencies
checking for OpenSSL... (cached) yessetting MOD_LDFLAGS to " -lssl -lcrypto -lrt -lcrypt -lpthread -ldl"setting MOD_CFLAGS to " "setting MOD_CPPFLAGS to "-DH2_OPENSSL"
checking for nghttp2... checking for user-provided nghttp2 base directory... none
checking for pkg-config along ... checking for nghttp2 version >= 1.2.1... FAILED
configure: WARNING: nghttp2 version is too old
no
checking whether to enable mod_http2... no (disabled)
checking whether to enable mod_proxy_http2... noadding "-I$(top_srcdir)/modules/md" to INCLUDES
checking whether to enable mod_md... checking dependencies
checking for OpenSSL... (cached) yessetting MOD_LDFLAGS to " -lssl -lcrypto -lrt -lcrypt -lpthread -ldl"setting MOD_CFLAGS to " "
checking for jansson... checking for user-provided jansson base directory... none
checking for pkg-config along ... FAILED
no
configure: WARNING: libjansson not found
checking for curl... checking for user-provided curl base directory... none
checking for pkg-config along ... checking curl/curl.h usability... yes
checking curl/curl.h presence... yes
checking for curl/curl.h... yes
checking for curl version >= 7.50... FAILED
no
configure: WARNING: libcurl not found
checking for arc4random_buf... no
checking whether to enable mod_md... no (disabled)
checking whether to enable mod_lbmethod_byrequests... checking dependencies
checking whether to enable mod_lbmethod_byrequests... shared
checking whether to enable mod_lbmethod_bytraffic... checking dependencies
checking whether to enable mod_lbmethod_bytraffic... shared
checking whether to enable mod_lbmethod_bybusyness... checking dependencies
checking whether to enable mod_lbmethod_bybusyness... shared
checking whether to enable mod_lbmethod_heartbeat... checking dependencies
checking whether to enable mod_lbmethod_heartbeat... shared
checking which MPM to use by default... prefork
checking whether to enable mod_unixd... shared
checking whether to enable mod_privileges... noadding "-I$(top_srcdir)/modules/arch/unix" to INCLUDES
checking whether to enable mod_heartbeat... checking dependencies
checking whether to enable mod_heartbeat... shared (all)
checking whether to enable mod_heartmonitor... shared (all)
checking whether to enable mod_dav... shared (all)adding "-I$(top_srcdir)/modules/dav/main" to INCLUDES
checking whether to enable mod_status... shared
checking whether to enable mod_autoindex... shared
checking whether to enable mod_asis... shared (all)
checking whether to enable mod_info... shared (all)
checking whether to enable mod_suexec... no
checking whether to enable mod_cgi... shared (all)
checking whether to enable mod_cgid... noadding "-I$(top_srcdir)/modules/generators" to INCLUDES
checking whether to enable mod_dav_fs... checking dependencies
checking whether to enable mod_dav_fs... shared
checking whether to enable mod_dav_lock... checking dependencies
checking whether to enable mod_dav_lock... shared (all)
checking for extra modules... none
checking whether to enable mod_vhost_alias... shared (all)
checking whether to enable mod_negotiation... shared (all)
checking whether to enable mod_dir... shared
checking whether to enable mod_imagemap... no
checking whether to enable mod_actions... shared (all)
checking whether to enable mod_speling... shared (all)
checking whether to enable mod_userdir... shared (all)
checking whether to enable mod_alias... shared
checking whether to enable mod_rewrite... sharedadding "-I$(top_srcdir)/modules/mappers" to INCLUDES
configure:
configure: Restore user-defined environment settings...
configure:restoring CPPFLAGS to ""setting EXTRA_CPPFLAGS to " -DLINUX -D_REENTRANT -D_GNU_SOURCE"restoring CFLAGS to ""setting EXTRA_CFLAGS to " -g -O2 -pthread"restoring CXXFLAGS to ""setting EXTRA_CXXFLAGS to ""restoring LDFLAGS to ""setting EXTRA_LDFLAGS to " "restoring LIBS to ""setting EXTRA_LIBS to ""restoring INCLUDES to ""setting EXTRA_INCLUDES to "-I. -I$(top_srcdir)/os/$(OS_DIR) -I$(top_srcdir)/include -I/usr/local/apr/include/apr-1 -I$(top_srcdir)/modules/aaa -I$(top_srcdir)/modules/cache -I$(top_srcdir)/modules/core -I$(top_srcdir)/modules/database -I$(top_srcdir)/modules/filters -I$(top_srcdir)/modules/ldap -I$(top_builddir)/server -I$(top_srcdir)/modules/loggers -I$(top_srcdir)/modules/lua -I$(top_srcdir)/modules/proxy -I$(top_srcdir)/modules/http2 -I$(top_srcdir)/modules/session -I$(top_srcdir)/modules/ssl -I$(top_srcdir)/modules/test -I$(top_srcdir)/server -I$(top_srcdir)/modules/md -I$(top_srcdir)/modules/arch/unix -I$(top_srcdir)/modules/dav/main -I$(top_srcdir)/modules/generators -I$(top_srcdir)/modules/mappers"
configure:
configure: Construct makefiles and header files...
configure:
configure: creating config_vars.mk
configure: creating ./config.status
creating modules/aaa/Makefile
creating modules/arch/win32/Makefile
creating modules/cache/Makefile
creating modules/core/Makefile
creating modules/database/Makefile
creating modules/debugging/Makefile
creating modules/echo/Makefile
creating modules/examples/Makefile
creating modules/experimental/Makefile
creating modules/filters/Makefile
creating modules/http/Makefile
creating modules/ldap/Makefile
creating modules/loggers/Makefile
creating modules/lua/Makefile
creating modules/metadata/Makefile
creating modules/proxy/Makefile
creating modules/session/Makefile
creating modules/slotmem/Makefile
creating modules/ssl/Makefile
creating modules/test/Makefile
creating os/unix/Makefile
creating modules/http2/Makefile
creating modules/md/Makefile
creating modules/proxy/balancers/Makefile
creating server/mpm/Makefile
creating server/mpm/prefork/Makefile
creating modules/arch/unix/Makefile
creating modules/cluster/Makefile
creating modules/dav/main/Makefile
creating modules/generators/Makefile
creating modules/dav/fs/Makefile
creating modules/dav/lock/Makefile
creating modules/mappers/Makefile
creating Makefile
creating modules/Makefile
creating srclib/Makefile
creating os/Makefile
creating server/Makefile
creating support/Makefile
creating test/Makefile
config.status: creating docs/conf/httpd.conf
config.status: creating docs/conf/extra/httpd-autoindex.conf
config.status: creating docs/conf/extra/httpd-dav.conf
config.status: creating docs/conf/extra/httpd-default.conf
config.status: creating docs/conf/extra/httpd-info.conf
config.status: creating docs/conf/extra/httpd-languages.conf
config.status: creating docs/conf/extra/httpd-manual.conf
config.status: creating docs/conf/extra/httpd-mpm.conf
config.status: creating docs/conf/extra/httpd-multilang-errordoc.conf
config.status: creating docs/conf/extra/httpd-ssl.conf
config.status: creating docs/conf/extra/httpd-userdir.conf
config.status: creating docs/conf/extra/httpd-vhosts.conf
config.status: creating docs/conf/extra/proxy-html.conf
config.status: creating include/ap_config_layout.h
config.status: creating support/apxs
config.status: creating support/apachectl
config.status: creating support/dbmmanage
config.status: creating support/envvars-std
config.status: creating support/log_server_status
config.status: creating support/logresolve.pl
config.status: creating support/phf_abuse_log.cgi
config.status: creating support/split-logfile
config.status: creating build/rules.mk
config.status: creating build/pkg/pkginfo
config.status: creating build/config_vars.sh
config.status: creating include/ap_config_auto.h
config.status: executing default commands
configure: summary of build options:Server Version: 2.4.37Install prefix: /usr/local/apache2C compiler: gcc -std=gnu99CFLAGS: -g -O2 -pthreadCPPFLAGS: -DLINUX -D_REENTRANT -D_GNU_SOURCELDFLAGS:LIBS:C preprocessor: gcc -E[root@web httpd-2.4.37]# make && make install
Making all in srclib
make[1]: 进入目录“/root/httpd-2.4.37/srclib”
make[1]: 离开目录“/root/httpd-2.4.37/srclib”
Making all in os
make[1]: 进入目录“/root/httpd-2.4.37/os”
Making all in unix
make[2]: 进入目录“/root/httpd-2.4.37/os/unix”
make[3]: 进入目录“/root/httpd-2.4.37/os/unix”
make[3]: 对“local-all”无需做任何事。
make[3]: 离开目录“/root/httpd-2.4.37/os/unix”
make[2]: 离开目录“/root/httpd-2.4.37/os/unix”
make[1]: 离开目录“/root/httpd-2.4.37/os”
Making all in server
make[1]: 进入目录“/root/httpd-2.4.37/server”
Making all in mpm
make[2]: 进入目录“/root/httpd-2.4.37/server/mpm”
Making all in prefork
make[3]: 进入目录“/root/httpd-2.4.37/server/mpm/prefork”
make[4]: 进入目录“/root/httpd-2.4.37/server/mpm/prefork”
make[4]: 对“local-all”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/server/mpm/prefork”
make[3]: 离开目录“/root/httpd-2.4.37/server/mpm/prefork”
make[2]: 离开目录“/root/httpd-2.4.37/server/mpm”
make[2]: 进入目录“/root/httpd-2.4.37/server”
Found newer headers. Will rebuild exports.c.
rm -f exports.c export_files
( for dir in /root/httpd-2.4.37/include /root/httpd-2.4.37/os/unix; do \ls $dir/*.h ; \done; \echo "/root/httpd-2.4.37/server/mpm_fdqueue.h"; \for dir in /usr/local/apr/include/apr-1 /usr/local/apr/include/apr-1; do \ls $dir/ap[ru].h $dir/ap[ru]_*.h 2>/dev/null; \done; \
) | sed -e s,//,/,g | sort -u > export_files
gawk -f /root/httpd-2.4.37/build/make_exports.awk `cat export_files` > exports.c
/usr/local/apr/build-1/libtool --silent --mode=compile gcc -std=gnu99 -g -O2 -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/root/httpd-2.4.37/os/unix -I/root/httpd-2.4.37/include -I/usr/local/apr/include/apr-1 -I/root/httpd-2.4.37/modules/aaa -I/root/httpd-2.4.37/modules/cache -I/root/httpd-2.4.37/modules/core -I/root/httpd-2.4.37/modules/database -I/root/httpd-2.4.37/modules/filters -I/root/httpd-2.4.37/modules/ldap -I/root/httpd-2.4.37/server -I/root/httpd-2.4.37/modules/loggers -I/root/httpd-2.4.37/modules/lua -I/root/httpd-2.4.37/modules/proxy -I/root/httpd-2.4.37/modules/http2 -I/root/httpd-2.4.37/modules/session -I/root/httpd-2.4.37/modules/ssl -I/root/httpd-2.4.37/modules/test -I/root/httpd-2.4.37/server -I/root/httpd-2.4.37/modules/md -I/root/httpd-2.4.37/modules/arch/unix -I/root/httpd-2.4.37/modules/dav/main -I/root/httpd-2.4.37/modules/generators -I/root/httpd-2.4.37/modules/mappers -prefer-non-pic -static -c exports.c && touch exports.lo
/usr/local/apr/build-1/libtool --silent --mode=link gcc -std=gnu99 -g -O2 -pthread -o libmain.la -static config.lo log.lo main.lo vhost.lo util.lo util_fcgi.lo util_script.lo util_md5.lo util_cfgtree.lo util_ebcdic.lo util_time.lo connection.lo listen.lo util_mutex.lo mpm_common.lo mpm_unix.lo mpm_fdqueue.lo util_charset.lo util_cookies.lo util_debug.lo util_xml.lo util_filter.lo util_pcre.lo util_regex.lo exports.lo scoreboard.lo error_bucket.lo protocol.lo core.lo request.lo provider.lo eoc_bucket.lo eor_bucket.lo core_filters.lo util_expr_parse.lo util_expr_scan.lo util_expr_eval.lo
gawk -f /root/httpd-2.4.37/build/make_var_export.awk `cat export_files` > export_vars.h
gcc -E -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/root/httpd-2.4.37/os/unix -I/root/httpd-2.4.37/include -I/usr/local/apr/include/apr-1 -I/root/httpd-2.4.37/modules/aaa -I/root/httpd-2.4.37/modules/cache -I/root/httpd-2.4.37/modules/core -I/root/httpd-2.4.37/modules/database -I/root/httpd-2.4.37/modules/filters -I/root/httpd-2.4.37/modules/ldap -I/root/httpd-2.4.37/server -I/root/httpd-2.4.37/modules/loggers -I/root/httpd-2.4.37/modules/lua -I/root/httpd-2.4.37/modules/proxy -I/root/httpd-2.4.37/modules/http2 -I/root/httpd-2.4.37/modules/session -I/root/httpd-2.4.37/modules/ssl -I/root/httpd-2.4.37/modules/test -I/root/httpd-2.4.37/server -I/root/httpd-2.4.37/modules/md -I/root/httpd-2.4.37/modules/arch/unix -I/root/httpd-2.4.37/modules/dav/main -I/root/httpd-2.4.37/modules/generators -I/root/httpd-2.4.37/modules/mappers exports.c | grep "ap_hack_" | grep -v apr_ | sed -e 's/^.*[)]\(.*\);$/\1/' >> httpd.exp
gcc -E -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/root/httpd-2.4.37/os/unix -I/root/httpd-2.4.37/include -I/usr/local/apr/include/apr-1 -I/root/httpd-2.4.37/modules/aaa -I/root/httpd-2.4.37/modules/cache -I/root/httpd-2.4.37/modules/core -I/root/httpd-2.4.37/modules/database -I/root/httpd-2.4.37/modules/filters -I/root/httpd-2.4.37/modules/ldap -I/root/httpd-2.4.37/server -I/root/httpd-2.4.37/modules/loggers -I/root/httpd-2.4.37/modules/lua -I/root/httpd-2.4.37/modules/proxy -I/root/httpd-2.4.37/modules/http2 -I/root/httpd-2.4.37/modules/session -I/root/httpd-2.4.37/modules/ssl -I/root/httpd-2.4.37/modules/test -I/root/httpd-2.4.37/server -I/root/httpd-2.4.37/modules/md -I/root/httpd-2.4.37/modules/arch/unix -I/root/httpd-2.4.37/modules/dav/main -I/root/httpd-2.4.37/modules/generators -I/root/httpd-2.4.37/modules/mappers export_vars.h | grep -v apr_ | sed -e 's/^\#[^!]*//' | sed -e '/^$/d' >> httpd.exp
make[2]: 离开目录“/root/httpd-2.4.37/server”
make[1]: 离开目录“/root/httpd-2.4.37/server”
Making all in modules
make[1]: 进入目录“/root/httpd-2.4.37/modules”
Making all in aaa
make[2]: 进入目录“/root/httpd-2.4.37/modules/aaa”
make[2]: 离开目录“/root/httpd-2.4.37/modules/aaa”
Making all in cache
make[2]: 进入目录“/root/httpd-2.4.37/modules/cache”
make[2]: 离开目录“/root/httpd-2.4.37/modules/cache”
Making all in core
make[2]: 进入目录“/root/httpd-2.4.37/modules/core”
make[3]: 进入目录“/root/httpd-2.4.37/modules/core”
make[3]: 对“local-all”无需做任何事。
make[3]: 离开目录“/root/httpd-2.4.37/modules/core”
make[2]: 离开目录“/root/httpd-2.4.37/modules/core”
Making all in database
make[2]: 进入目录“/root/httpd-2.4.37/modules/database”
make[2]: 离开目录“/root/httpd-2.4.37/modules/database”
Making all in debugging
make[2]: 进入目录“/root/httpd-2.4.37/modules/debugging”
make[2]: 离开目录“/root/httpd-2.4.37/modules/debugging”
Making all in echo
make[2]: 进入目录“/root/httpd-2.4.37/modules/echo”
make[2]: 离开目录“/root/httpd-2.4.37/modules/echo”
Making all in filters
make[2]: 进入目录“/root/httpd-2.4.37/modules/filters”
make[2]: 离开目录“/root/httpd-2.4.37/modules/filters”
Making all in http
make[2]: 进入目录“/root/httpd-2.4.37/modules/http”
make[3]: 进入目录“/root/httpd-2.4.37/modules/http”
make[3]: 对“local-all”无需做任何事。
make[3]: 离开目录“/root/httpd-2.4.37/modules/http”
make[2]: 离开目录“/root/httpd-2.4.37/modules/http”
Making all in loggers
make[2]: 进入目录“/root/httpd-2.4.37/modules/loggers”
make[2]: 离开目录“/root/httpd-2.4.37/modules/loggers”
Making all in metadata
make[2]: 进入目录“/root/httpd-2.4.37/modules/metadata”
make[2]: 离开目录“/root/httpd-2.4.37/modules/metadata”
Making all in proxy
make[2]: 进入目录“/root/httpd-2.4.37/modules/proxy”
make[2]: 离开目录“/root/httpd-2.4.37/modules/proxy”
Making all in session
make[2]: 进入目录“/root/httpd-2.4.37/modules/session”
make[2]: 离开目录“/root/httpd-2.4.37/modules/session”
Making all in slotmem
make[2]: 进入目录“/root/httpd-2.4.37/modules/slotmem”
make[2]: 离开目录“/root/httpd-2.4.37/modules/slotmem”
Making all in ssl
make[2]: 进入目录“/root/httpd-2.4.37/modules/ssl”
make[2]: 离开目录“/root/httpd-2.4.37/modules/ssl”
Making all in test
make[2]: 进入目录“/root/httpd-2.4.37/modules/test”
make[2]: 离开目录“/root/httpd-2.4.37/modules/test”
Making all in proxy/balancers
make[2]: 进入目录“/root/httpd-2.4.37/modules/proxy/balancers”
make[2]: 离开目录“/root/httpd-2.4.37/modules/proxy/balancers”
Making all in arch/unix
make[2]: 进入目录“/root/httpd-2.4.37/modules/arch/unix”
make[2]: 离开目录“/root/httpd-2.4.37/modules/arch/unix”
Making all in cluster
make[2]: 进入目录“/root/httpd-2.4.37/modules/cluster”
make[2]: 离开目录“/root/httpd-2.4.37/modules/cluster”
Making all in dav/main
make[2]: 进入目录“/root/httpd-2.4.37/modules/dav/main”
make[2]: 离开目录“/root/httpd-2.4.37/modules/dav/main”
Making all in generators
make[2]: 进入目录“/root/httpd-2.4.37/modules/generators”
make[2]: 离开目录“/root/httpd-2.4.37/modules/generators”
Making all in dav/fs
make[2]: 进入目录“/root/httpd-2.4.37/modules/dav/fs”
make[2]: 离开目录“/root/httpd-2.4.37/modules/dav/fs”
Making all in dav/lock
make[2]: 进入目录“/root/httpd-2.4.37/modules/dav/lock”
make[2]: 离开目录“/root/httpd-2.4.37/modules/dav/lock”
Making all in mappers
make[2]: 进入目录“/root/httpd-2.4.37/modules/mappers”
make[2]: 离开目录“/root/httpd-2.4.37/modules/mappers”
make[1]: 离开目录“/root/httpd-2.4.37/modules”
Making all in support
make[1]: 进入目录“/root/httpd-2.4.37/support”
make[2]: 进入目录“/root/httpd-2.4.37/support”
make[2]: 对“local-all”无需做任何事。
make[2]: 离开目录“/root/httpd-2.4.37/support”
make[1]: 离开目录“/root/httpd-2.4.37/support”
make[1]: 进入目录“/root/httpd-2.4.37”
/usr/local/apr/build-1/libtool --silent --mode=compile gcc -std=gnu99 -g -O2 -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/root/httpd-2.4.37/os/unix -I/root/httpd-2.4.37/include -I/usr/local/apr/include/apr-1 -I/root/httpd-2.4.37/modules/aaa -I/root/httpd-2.4.37/modules/cache -I/root/httpd-2.4.37/modules/core -I/root/httpd-2.4.37/modules/database -I/root/httpd-2.4.37/modules/filters -I/root/httpd-2.4.37/modules/ldap -I/root/httpd-2.4.37/server -I/root/httpd-2.4.37/modules/loggers -I/root/httpd-2.4.37/modules/lua -I/root/httpd-2.4.37/modules/proxy -I/root/httpd-2.4.37/modules/http2 -I/root/httpd-2.4.37/modules/session -I/root/httpd-2.4.37/modules/ssl -I/root/httpd-2.4.37/modules/test -I/root/httpd-2.4.37/server -I/root/httpd-2.4.37/modules/md -I/root/httpd-2.4.37/modules/arch/unix -I/root/httpd-2.4.37/modules/dav/main -I/root/httpd-2.4.37/modules/generators -I/root/httpd-2.4.37/modules/mappers -prefer-non-pic -static -c modules.c && touch modules.lo
gcc -std=gnu99 -g -O2 -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/root/httpd-2.4.37/os/unix -I/root/httpd-2.4.37/include -I/usr/local/apr/include/apr-1 -I/root/httpd-2.4.37/modules/aaa -I/root/httpd-2.4.37/modules/cache -I/root/httpd-2.4.37/modules/core -I/root/httpd-2.4.37/modules/database -I/root/httpd-2.4.37/modules/filters -I/root/httpd-2.4.37/modules/ldap -I/root/httpd-2.4.37/server -I/root/httpd-2.4.37/modules/loggers -I/root/httpd-2.4.37/modules/lua -I/root/httpd-2.4.37/modules/proxy -I/root/httpd-2.4.37/modules/http2 -I/root/httpd-2.4.37/modules/session -I/root/httpd-2.4.37/modules/ssl -I/root/httpd-2.4.37/modules/test -I/root/httpd-2.4.37/server -I/root/httpd-2.4.37/modules/md -I/root/httpd-2.4.37/modules/arch/unix -I/root/httpd-2.4.37/modules/dav/main -I/root/httpd-2.4.37/modules/generators -I/root/httpd-2.4.37/modules/mappers -c /root/httpd-2.4.37/server/buildmark.c
/usr/local/apr/build-1/libtool --silent --mode=link gcc -std=gnu99 -g -O2 -pthread -o httpd modules.lo buildmark.o -export-dynamic server/libmain.la modules/core/libmod_so.la modules/http/libmod_http.la server/mpm/prefork/libprefork.la os/unix/libos.la -lpcre /usr/local/apr/lib/libaprutil-1.la -lexpat /usr/local/apr/lib/libapr-1.la -lrt -lcrypt -lpthread -ldlmake[2]: 进入目录“/root/httpd-2.4.37/os”
make[3]: 进入目录“/root/httpd-2.4.37/os/unix”
make[3]: 离开目录“/root/httpd-2.4.37/os/unix”
make[2]: 离开目录“/root/httpd-2.4.37/os”
make[2]: 进入目录“/root/httpd-2.4.37/server”
make[3]: 进入目录“/root/httpd-2.4.37/server/mpm”
make[4]: 进入目录“/root/httpd-2.4.37/server/mpm/prefork”
make[4]: 离开目录“/root/httpd-2.4.37/server/mpm/prefork”
make[3]: 离开目录“/root/httpd-2.4.37/server/mpm”
make[2]: 离开目录“/root/httpd-2.4.37/server”
make[2]: 进入目录“/root/httpd-2.4.37/modules”
make[3]: 进入目录“/root/httpd-2.4.37/modules/aaa”
Building shared: mod_authn_file.la mod_authn_dbm.la mod_authn_anon.la mod_authn_dbd.la mod_authn_socache.la mod_authn_core.la mod_authz_host.la mod_authz_groupfile.la mod_authz_user.la mod_authz_dbm.la mod_authz_owner.la mod_authz_dbd.la mod_authz_core.la mod_access_compat.la mod_auth_basic.la mod_auth_form.la mod_auth_digest.la mod_allowmethods.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/aaa”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/aaa”
make[3]: 离开目录“/root/httpd-2.4.37/modules/aaa”
make[3]: 进入目录“/root/httpd-2.4.37/modules/cache”
Building shared: mod_file_cache.la mod_cache.la mod_cache_disk.la mod_cache_socache.la mod_socache_shmcb.la mod_socache_dbm.la mod_socache_memcache.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/cache”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/cache”
make[3]: 离开目录“/root/httpd-2.4.37/modules/cache”
make[3]: 进入目录“/root/httpd-2.4.37/modules/core”
Building shared: mod_watchdog.la mod_macro.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/core”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/core”
make[3]: 离开目录“/root/httpd-2.4.37/modules/core”
make[3]: 进入目录“/root/httpd-2.4.37/modules/database”
Building shared: mod_dbd.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/database”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/database”
make[3]: 离开目录“/root/httpd-2.4.37/modules/database”
make[3]: 进入目录“/root/httpd-2.4.37/modules/debugging”
Building shared: mod_dumpio.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/debugging”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/debugging”
make[3]: 离开目录“/root/httpd-2.4.37/modules/debugging”
make[3]: 进入目录“/root/httpd-2.4.37/modules/echo”
Building shared: mod_echo.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/echo”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/echo”
make[3]: 离开目录“/root/httpd-2.4.37/modules/echo”
make[3]: 进入目录“/root/httpd-2.4.37/modules/filters”
Building shared: mod_buffer.la mod_data.la mod_ratelimit.la mod_reqtimeout.la mod_ext_filter.la mod_request.la mod_include.la mod_filter.la mod_reflector.la mod_substitute.la mod_sed.la mod_charset_lite.la mod_deflate.la mod_xml2enc.la mod_proxy_html.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/filters”
/usr/local/apr/build-1/libtool --silent --mode=compile gcc -std=gnu99 -I/usr/include/libxml2 -g -O2 -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/root/httpd-2.4.37/os/unix -I/root/httpd-2.4.37/include -I/usr/local/apr/include/apr-1 -I/root/httpd-2.4.37/modules/aaa -I/root/httpd-2.4.37/modules/cache -I/root/httpd-2.4.37/modules/core -I/root/httpd-2.4.37/modules/database -I/root/httpd-2.4.37/modules/filters -I/root/httpd-2.4.37/modules/ldap -I/root/httpd-2.4.37/server -I/root/httpd-2.4.37/modules/loggers -I/root/httpd-2.4.37/modules/lua -I/root/httpd-2.4.37/modules/proxy -I/root/httpd-2.4.37/modules/http2 -I/root/httpd-2.4.37/modules/session -I/root/httpd-2.4.37/modules/ssl -I/root/httpd-2.4.37/modules/test -I/root/httpd-2.4.37/server -I/root/httpd-2.4.37/modules/md -I/root/httpd-2.4.37/modules/arch/unix -I/root/httpd-2.4.37/modules/dav/main -I/root/httpd-2.4.37/modules/generators -I/root/httpd-2.4.37/modules/mappers -prefer-pic -c mod_xml2enc.c && touch mod_xml2enc.slo
/usr/local/apr/build-1/libtool --silent --mode=link gcc -std=gnu99 -I/usr/include/libxml2 -g -O2 -pthread -o mod_xml2enc.la -rpath /usr/local/apache2/modules -module -avoid-version mod_xml2enc.lo -lxml2
/usr/local/apr/build-1/libtool --silent --mode=compile gcc -std=gnu99 -I/usr/include/libxml2 -g -O2 -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/root/httpd-2.4.37/os/unix -I/root/httpd-2.4.37/include -I/usr/local/apr/include/apr-1 -I/root/httpd-2.4.37/modules/aaa -I/root/httpd-2.4.37/modules/cache -I/root/httpd-2.4.37/modules/core -I/root/httpd-2.4.37/modules/database -I/root/httpd-2.4.37/modules/filters -I/root/httpd-2.4.37/modules/ldap -I/root/httpd-2.4.37/server -I/root/httpd-2.4.37/modules/loggers -I/root/httpd-2.4.37/modules/lua -I/root/httpd-2.4.37/modules/proxy -I/root/httpd-2.4.37/modules/http2 -I/root/httpd-2.4.37/modules/session -I/root/httpd-2.4.37/modules/ssl -I/root/httpd-2.4.37/modules/test -I/root/httpd-2.4.37/server -I/root/httpd-2.4.37/modules/md -I/root/httpd-2.4.37/modules/arch/unix -I/root/httpd-2.4.37/modules/dav/main -I/root/httpd-2.4.37/modules/generators -I/root/httpd-2.4.37/modules/mappers -prefer-pic -c mod_proxy_html.c && touch mod_proxy_html.slo
/usr/local/apr/build-1/libtool --silent --mode=link gcc -std=gnu99 -I/usr/include/libxml2 -g -O2 -pthread -o mod_proxy_html.la -rpath /usr/local/apache2/modules -module -avoid-version mod_proxy_html.lo -lxml2
make[4]: 离开目录“/root/httpd-2.4.37/modules/filters”
make[3]: 离开目录“/root/httpd-2.4.37/modules/filters”
make[3]: 进入目录“/root/httpd-2.4.37/modules/http”
Building shared: mod_mime.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/http”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/http”
make[3]: 离开目录“/root/httpd-2.4.37/modules/http”
make[3]: 进入目录“/root/httpd-2.4.37/modules/loggers”
Building shared: mod_log_config.la mod_log_debug.la mod_log_forensic.la mod_logio.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/loggers”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/loggers”
make[3]: 离开目录“/root/httpd-2.4.37/modules/loggers”
make[3]: 进入目录“/root/httpd-2.4.37/modules/metadata”
Building shared: mod_env.la mod_mime_magic.la mod_expires.la mod_headers.la mod_usertrack.la mod_unique_id.la mod_setenvif.la mod_version.la mod_remoteip.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/metadata”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/metadata”
make[3]: 离开目录“/root/httpd-2.4.37/modules/metadata”
make[3]: 进入目录“/root/httpd-2.4.37/modules/proxy”
Building shared: mod_proxy.la mod_proxy_connect.la mod_proxy_ftp.la mod_proxy_http.la mod_proxy_fcgi.la mod_proxy_scgi.la mod_proxy_uwsgi.la mod_proxy_fdpass.la mod_proxy_wstunnel.la mod_proxy_ajp.la mod_proxy_balancer.la mod_proxy_express.la mod_proxy_hcheck.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/proxy”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/proxy”
make[3]: 离开目录“/root/httpd-2.4.37/modules/proxy”
make[3]: 进入目录“/root/httpd-2.4.37/modules/session”
Building shared: mod_session.la mod_session_cookie.la mod_session_dbd.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/session”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/session”
make[3]: 离开目录“/root/httpd-2.4.37/modules/session”
make[3]: 进入目录“/root/httpd-2.4.37/modules/slotmem”
Building shared: mod_slotmem_shm.la mod_slotmem_plain.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/slotmem”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/slotmem”
make[3]: 离开目录“/root/httpd-2.4.37/modules/slotmem”
make[3]: 进入目录“/root/httpd-2.4.37/modules/ssl”
Building shared: mod_ssl.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/ssl”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/ssl”
make[3]: 离开目录“/root/httpd-2.4.37/modules/ssl”
make[3]: 进入目录“/root/httpd-2.4.37/modules/test”
Building shared: mod_dialup.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/test”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/test”
make[3]: 离开目录“/root/httpd-2.4.37/modules/test”
make[3]: 进入目录“/root/httpd-2.4.37/modules/proxy/balancers”
Building shared: mod_lbmethod_byrequests.la mod_lbmethod_bytraffic.la mod_lbmethod_bybusyness.la mod_lbmethod_heartbeat.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/proxy/balancers”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/proxy/balancers”
make[3]: 离开目录“/root/httpd-2.4.37/modules/proxy/balancers”
make[3]: 进入目录“/root/httpd-2.4.37/modules/arch/unix”
Building shared: mod_unixd.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/arch/unix”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/arch/unix”
make[3]: 离开目录“/root/httpd-2.4.37/modules/arch/unix”
make[3]: 进入目录“/root/httpd-2.4.37/modules/cluster”
Building shared: mod_heartbeat.la mod_heartmonitor.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/cluster”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/cluster”
make[3]: 离开目录“/root/httpd-2.4.37/modules/cluster”
make[3]: 进入目录“/root/httpd-2.4.37/modules/dav/main”
Building shared: mod_dav.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/dav/main”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/dav/main”
make[3]: 离开目录“/root/httpd-2.4.37/modules/dav/main”
make[3]: 进入目录“/root/httpd-2.4.37/modules/generators”
Building shared: mod_status.la mod_autoindex.la mod_asis.la mod_info.la mod_cgi.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/generators”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/generators”
make[3]: 离开目录“/root/httpd-2.4.37/modules/generators”
make[3]: 进入目录“/root/httpd-2.4.37/modules/dav/fs”
Building shared: mod_dav_fs.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/dav/fs”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/dav/fs”
make[3]: 离开目录“/root/httpd-2.4.37/modules/dav/fs”
make[3]: 进入目录“/root/httpd-2.4.37/modules/dav/lock”
Building shared: mod_dav_lock.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/dav/lock”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/dav/lock”
make[3]: 离开目录“/root/httpd-2.4.37/modules/dav/lock”
make[3]: 进入目录“/root/httpd-2.4.37/modules/mappers”
Building shared: mod_vhost_alias.la mod_negotiation.la mod_dir.la mod_actions.la mod_speling.la mod_userdir.la mod_alias.la mod_rewrite.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/mappers”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/mappers”
make[3]: 离开目录“/root/httpd-2.4.37/modules/mappers”
make[2]: 离开目录“/root/httpd-2.4.37/modules”
make[2]: 进入目录“/root/httpd-2.4.37/support”
make[2]: 离开目录“/root/httpd-2.4.37/support”make[1]: 离开目录“/root/httpd-2.4.37”
Making install in srclib
make[1]: 进入目录“/root/httpd-2.4.37/srclib”
make[2]: 进入目录“/root/httpd-2.4.37/srclib”
make[2]: 离开目录“/root/httpd-2.4.37/srclib”
make[1]: 离开目录“/root/httpd-2.4.37/srclib”
Making install in os
make[1]: 进入目录“/root/httpd-2.4.37/os”
Making install in unix
make[2]: 进入目录“/root/httpd-2.4.37/os/unix”
make[3]: 进入目录“/root/httpd-2.4.37/os/unix”
make[3]: 离开目录“/root/httpd-2.4.37/os/unix”
make[2]: 离开目录“/root/httpd-2.4.37/os/unix”
make[2]: 进入目录“/root/httpd-2.4.37/os”
make[2]: 离开目录“/root/httpd-2.4.37/os”
make[1]: 离开目录“/root/httpd-2.4.37/os”
Making install in server
make[1]: 进入目录“/root/httpd-2.4.37/server”
Making install in mpm
make[2]: 进入目录“/root/httpd-2.4.37/server/mpm”
Making install in prefork
make[3]: 进入目录“/root/httpd-2.4.37/server/mpm/prefork”
make[4]: 进入目录“/root/httpd-2.4.37/server/mpm/prefork”
make[4]: 离开目录“/root/httpd-2.4.37/server/mpm/prefork”
make[3]: 离开目录“/root/httpd-2.4.37/server/mpm/prefork”
make[3]: 进入目录“/root/httpd-2.4.37/server/mpm”
make[3]: 离开目录“/root/httpd-2.4.37/server/mpm”
make[2]: 离开目录“/root/httpd-2.4.37/server/mpm”
make[2]: 进入目录“/root/httpd-2.4.37/server”
make[2]: 离开目录“/root/httpd-2.4.37/server”
make[1]: 离开目录“/root/httpd-2.4.37/server”
Making install in modules
make[1]: 进入目录“/root/httpd-2.4.37/modules”
Making install in aaa
make[2]: 进入目录“/root/httpd-2.4.37/modules/aaa”
make[3]: 进入目录“/root/httpd-2.4.37/modules/aaa”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_authn_file.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_authn_dbm.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_authn_anon.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_authn_dbd.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_authn_socache.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_authn_core.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_authz_host.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_authz_groupfile.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_authz_user.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_authz_dbm.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_authz_owner.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_authz_dbd.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_authz_core.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_access_compat.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_auth_basic.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_auth_form.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_auth_digest.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_allowmethods.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/aaa”
make[2]: 离开目录“/root/httpd-2.4.37/modules/aaa”
Making install in cache
make[2]: 进入目录“/root/httpd-2.4.37/modules/cache”
make[3]: 进入目录“/root/httpd-2.4.37/modules/cache”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_file_cache.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_cache.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_cache_disk.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_cache_socache.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_socache_shmcb.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_socache_dbm.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_socache_memcache.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/cache”
make[2]: 离开目录“/root/httpd-2.4.37/modules/cache”
Making install in core
make[2]: 进入目录“/root/httpd-2.4.37/modules/core”
make[3]: 进入目录“/root/httpd-2.4.37/modules/core”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_watchdog.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_macro.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/core”
make[2]: 离开目录“/root/httpd-2.4.37/modules/core”
Making install in database
make[2]: 进入目录“/root/httpd-2.4.37/modules/database”
make[3]: 进入目录“/root/httpd-2.4.37/modules/database”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_dbd.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/database”
make[2]: 离开目录“/root/httpd-2.4.37/modules/database”
Making install in debugging
make[2]: 进入目录“/root/httpd-2.4.37/modules/debugging”
make[3]: 进入目录“/root/httpd-2.4.37/modules/debugging”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_dumpio.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/debugging”
make[2]: 离开目录“/root/httpd-2.4.37/modules/debugging”
Making install in echo
make[2]: 进入目录“/root/httpd-2.4.37/modules/echo”
make[3]: 进入目录“/root/httpd-2.4.37/modules/echo”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_echo.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/echo”
make[2]: 离开目录“/root/httpd-2.4.37/modules/echo”
Making install in filters
make[2]: 进入目录“/root/httpd-2.4.37/modules/filters”
make[3]: 进入目录“/root/httpd-2.4.37/modules/filters”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_buffer.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_data.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_ratelimit.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_reqtimeout.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_ext_filter.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_request.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_include.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_filter.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_reflector.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_substitute.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_sed.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_charset_lite.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_deflate.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_xml2enc.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_proxy_html.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/filters”
make[2]: 离开目录“/root/httpd-2.4.37/modules/filters”
Making install in http
make[2]: 进入目录“/root/httpd-2.4.37/modules/http”
make[3]: 进入目录“/root/httpd-2.4.37/modules/http”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_mime.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/http”
make[2]: 离开目录“/root/httpd-2.4.37/modules/http”
Making install in loggers
make[2]: 进入目录“/root/httpd-2.4.37/modules/loggers”
make[3]: 进入目录“/root/httpd-2.4.37/modules/loggers”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_log_config.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_log_debug.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_log_forensic.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_logio.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/loggers”
make[2]: 离开目录“/root/httpd-2.4.37/modules/loggers”
Making install in metadata
make[2]: 进入目录“/root/httpd-2.4.37/modules/metadata”
make[3]: 进入目录“/root/httpd-2.4.37/modules/metadata”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_env.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_mime_magic.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_expires.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_headers.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_usertrack.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_unique_id.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_setenvif.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_version.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_remoteip.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/metadata”
make[2]: 离开目录“/root/httpd-2.4.37/modules/metadata”
Making install in proxy
make[2]: 进入目录“/root/httpd-2.4.37/modules/proxy”
make[3]: 进入目录“/root/httpd-2.4.37/modules/proxy”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_proxy.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_proxy_connect.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_proxy_ftp.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_proxy_http.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_proxy_fcgi.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_proxy_scgi.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_proxy_uwsgi.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_proxy_fdpass.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_proxy_wstunnel.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_proxy_ajp.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_proxy_balancer.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_proxy_express.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_proxy_hcheck.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/proxy”
make[2]: 离开目录“/root/httpd-2.4.37/modules/proxy”
Making install in session
make[2]: 进入目录“/root/httpd-2.4.37/modules/session”
make[3]: 进入目录“/root/httpd-2.4.37/modules/session”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_session.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_session_cookie.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_session_dbd.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/session”
make[2]: 离开目录“/root/httpd-2.4.37/modules/session”
Making install in slotmem
make[2]: 进入目录“/root/httpd-2.4.37/modules/slotmem”
make[3]: 进入目录“/root/httpd-2.4.37/modules/slotmem”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_slotmem_shm.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_slotmem_plain.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/slotmem”
make[2]: 离开目录“/root/httpd-2.4.37/modules/slotmem”
Making install in ssl
make[2]: 进入目录“/root/httpd-2.4.37/modules/ssl”
make[3]: 进入目录“/root/httpd-2.4.37/modules/ssl”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_ssl.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/ssl”
make[2]: 离开目录“/root/httpd-2.4.37/modules/ssl”
Making install in test
make[2]: 进入目录“/root/httpd-2.4.37/modules/test”
make[3]: 进入目录“/root/httpd-2.4.37/modules/test”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_dialup.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/test”
make[2]: 离开目录“/root/httpd-2.4.37/modules/test”
Making install in proxy/balancers
make[2]: 进入目录“/root/httpd-2.4.37/modules/proxy/balancers”
make[3]: 进入目录“/root/httpd-2.4.37/modules/proxy/balancers”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_lbmethod_byrequests.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_lbmethod_bytraffic.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_lbmethod_bybusyness.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_lbmethod_heartbeat.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/proxy/balancers”
make[2]: 离开目录“/root/httpd-2.4.37/modules/proxy/balancers”
Making install in arch/unix
make[2]: 进入目录“/root/httpd-2.4.37/modules/arch/unix”
make[3]: 进入目录“/root/httpd-2.4.37/modules/arch/unix”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_unixd.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/arch/unix”
make[2]: 离开目录“/root/httpd-2.4.37/modules/arch/unix”
Making install in cluster
make[2]: 进入目录“/root/httpd-2.4.37/modules/cluster”
make[3]: 进入目录“/root/httpd-2.4.37/modules/cluster”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_heartbeat.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_heartmonitor.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/cluster”
make[2]: 离开目录“/root/httpd-2.4.37/modules/cluster”
Making install in dav/main
make[2]: 进入目录“/root/httpd-2.4.37/modules/dav/main”
make[3]: 进入目录“/root/httpd-2.4.37/modules/dav/main”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_dav.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/dav/main”
make[2]: 离开目录“/root/httpd-2.4.37/modules/dav/main”
Making install in generators
make[2]: 进入目录“/root/httpd-2.4.37/modules/generators”
make[3]: 进入目录“/root/httpd-2.4.37/modules/generators”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_status.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_autoindex.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_asis.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_info.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_cgi.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/generators”
make[2]: 离开目录“/root/httpd-2.4.37/modules/generators”
Making install in dav/fs
make[2]: 进入目录“/root/httpd-2.4.37/modules/dav/fs”
make[3]: 进入目录“/root/httpd-2.4.37/modules/dav/fs”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_dav_fs.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/dav/fs”
make[2]: 离开目录“/root/httpd-2.4.37/modules/dav/fs”
Making install in dav/lock
make[2]: 进入目录“/root/httpd-2.4.37/modules/dav/lock”
make[3]: 进入目录“/root/httpd-2.4.37/modules/dav/lock”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_dav_lock.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/dav/lock”
make[2]: 离开目录“/root/httpd-2.4.37/modules/dav/lock”
Making install in mappers
make[2]: 进入目录“/root/httpd-2.4.37/modules/mappers”
make[3]: 进入目录“/root/httpd-2.4.37/modules/mappers”
/usr/local/apr/build-1/libtool --silent --mode=install install mod_vhost_alias.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_negotiation.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_dir.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_actions.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_speling.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_userdir.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_alias.la /usr/local/apache2/modules/
/usr/local/apr/build-1/libtool --silent --mode=install install mod_rewrite.la /usr/local/apache2/modules/
make[3]: 离开目录“/root/httpd-2.4.37/modules/mappers”
make[2]: 离开目录“/root/httpd-2.4.37/modules/mappers”
make[2]: 进入目录“/root/httpd-2.4.37/modules”
make[2]: 离开目录“/root/httpd-2.4.37/modules”
make[1]: 离开目录“/root/httpd-2.4.37/modules”
Making install in support
make[1]: 进入目录“/root/httpd-2.4.37/support”
make[2]: 进入目录“/root/httpd-2.4.37/support”
make[2]: 离开目录“/root/httpd-2.4.37/support”
make[1]: 离开目录“/root/httpd-2.4.37/support”
make[1]: 进入目录“/root/httpd-2.4.37”make[2]: 进入目录“/root/httpd-2.4.37/os”
make[3]: 进入目录“/root/httpd-2.4.37/os/unix”
make[3]: 离开目录“/root/httpd-2.4.37/os/unix”
make[2]: 离开目录“/root/httpd-2.4.37/os”
make[2]: 进入目录“/root/httpd-2.4.37/server”
make[3]: 进入目录“/root/httpd-2.4.37/server/mpm”
make[4]: 进入目录“/root/httpd-2.4.37/server/mpm/prefork”
make[4]: 离开目录“/root/httpd-2.4.37/server/mpm/prefork”
make[3]: 离开目录“/root/httpd-2.4.37/server/mpm”
make[2]: 离开目录“/root/httpd-2.4.37/server”
make[2]: 进入目录“/root/httpd-2.4.37/modules”
make[3]: 进入目录“/root/httpd-2.4.37/modules/aaa”
Building shared: mod_authn_file.la mod_authn_dbm.la mod_authn_anon.la mod_authn_dbd.la mod_authn_socache.la mod_authn_core.la mod_authz_host.la mod_authz_groupfile.la mod_authz_user.la mod_authz_dbm.la mod_authz_owner.la mod_authz_dbd.la mod_authz_core.la mod_access_compat.la mod_auth_basic.la mod_auth_form.la mod_auth_digest.la mod_allowmethods.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/aaa”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/aaa”
make[3]: 离开目录“/root/httpd-2.4.37/modules/aaa”
make[3]: 进入目录“/root/httpd-2.4.37/modules/cache”
Building shared: mod_file_cache.la mod_cache.la mod_cache_disk.la mod_cache_socache.la mod_socache_shmcb.la mod_socache_dbm.la mod_socache_memcache.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/cache”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/cache”
make[3]: 离开目录“/root/httpd-2.4.37/modules/cache”
make[3]: 进入目录“/root/httpd-2.4.37/modules/core”
Building shared: mod_watchdog.la mod_macro.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/core”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/core”
make[3]: 离开目录“/root/httpd-2.4.37/modules/core”
make[3]: 进入目录“/root/httpd-2.4.37/modules/database”
Building shared: mod_dbd.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/database”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/database”
make[3]: 离开目录“/root/httpd-2.4.37/modules/database”
make[3]: 进入目录“/root/httpd-2.4.37/modules/debugging”
Building shared: mod_dumpio.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/debugging”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/debugging”
make[3]: 离开目录“/root/httpd-2.4.37/modules/debugging”
make[3]: 进入目录“/root/httpd-2.4.37/modules/echo”
Building shared: mod_echo.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/echo”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/echo”
make[3]: 离开目录“/root/httpd-2.4.37/modules/echo”
make[3]: 进入目录“/root/httpd-2.4.37/modules/filters”
Building shared: mod_buffer.la mod_data.la mod_ratelimit.la mod_reqtimeout.la mod_ext_filter.la mod_request.la mod_include.la mod_filter.la mod_reflector.la mod_substitute.la mod_sed.la mod_charset_lite.la mod_deflate.la mod_xml2enc.la mod_proxy_html.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/filters”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/filters”
make[3]: 离开目录“/root/httpd-2.4.37/modules/filters”
make[3]: 进入目录“/root/httpd-2.4.37/modules/http”
Building shared: mod_mime.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/http”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/http”
make[3]: 离开目录“/root/httpd-2.4.37/modules/http”
make[3]: 进入目录“/root/httpd-2.4.37/modules/loggers”
Building shared: mod_log_config.la mod_log_debug.la mod_log_forensic.la mod_logio.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/loggers”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/loggers”
make[3]: 离开目录“/root/httpd-2.4.37/modules/loggers”
make[3]: 进入目录“/root/httpd-2.4.37/modules/metadata”
Building shared: mod_env.la mod_mime_magic.la mod_expires.la mod_headers.la mod_usertrack.la mod_unique_id.la mod_setenvif.la mod_version.la mod_remoteip.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/metadata”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/metadata”
make[3]: 离开目录“/root/httpd-2.4.37/modules/metadata”
make[3]: 进入目录“/root/httpd-2.4.37/modules/proxy”
Building shared: mod_proxy.la mod_proxy_connect.la mod_proxy_ftp.la mod_proxy_http.la mod_proxy_fcgi.la mod_proxy_scgi.la mod_proxy_uwsgi.la mod_proxy_fdpass.la mod_proxy_wstunnel.la mod_proxy_ajp.la mod_proxy_balancer.la mod_proxy_express.la mod_proxy_hcheck.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/proxy”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/proxy”
make[3]: 离开目录“/root/httpd-2.4.37/modules/proxy”
make[3]: 进入目录“/root/httpd-2.4.37/modules/session”
Building shared: mod_session.la mod_session_cookie.la mod_session_dbd.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/session”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/session”
make[3]: 离开目录“/root/httpd-2.4.37/modules/session”
make[3]: 进入目录“/root/httpd-2.4.37/modules/slotmem”
Building shared: mod_slotmem_shm.la mod_slotmem_plain.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/slotmem”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/slotmem”
make[3]: 离开目录“/root/httpd-2.4.37/modules/slotmem”
make[3]: 进入目录“/root/httpd-2.4.37/modules/ssl”
Building shared: mod_ssl.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/ssl”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/ssl”
make[3]: 离开目录“/root/httpd-2.4.37/modules/ssl”
make[3]: 进入目录“/root/httpd-2.4.37/modules/test”
Building shared: mod_dialup.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/test”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/test”
make[3]: 离开目录“/root/httpd-2.4.37/modules/test”
make[3]: 进入目录“/root/httpd-2.4.37/modules/proxy/balancers”
Building shared: mod_lbmethod_byrequests.la mod_lbmethod_bytraffic.la mod_lbmethod_bybusyness.la mod_lbmethod_heartbeat.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/proxy/balancers”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/proxy/balancers”
make[3]: 离开目录“/root/httpd-2.4.37/modules/proxy/balancers”
make[3]: 进入目录“/root/httpd-2.4.37/modules/arch/unix”
Building shared: mod_unixd.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/arch/unix”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/arch/unix”
make[3]: 离开目录“/root/httpd-2.4.37/modules/arch/unix”
make[3]: 进入目录“/root/httpd-2.4.37/modules/cluster”
Building shared: mod_heartbeat.la mod_heartmonitor.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/cluster”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/cluster”
make[3]: 离开目录“/root/httpd-2.4.37/modules/cluster”
make[3]: 进入目录“/root/httpd-2.4.37/modules/dav/main”
Building shared: mod_dav.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/dav/main”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/dav/main”
make[3]: 离开目录“/root/httpd-2.4.37/modules/dav/main”
make[3]: 进入目录“/root/httpd-2.4.37/modules/generators”
Building shared: mod_status.la mod_autoindex.la mod_asis.la mod_info.la mod_cgi.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/generators”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/generators”
make[3]: 离开目录“/root/httpd-2.4.37/modules/generators”
make[3]: 进入目录“/root/httpd-2.4.37/modules/dav/fs”
Building shared: mod_dav_fs.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/dav/fs”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/dav/fs”
make[3]: 离开目录“/root/httpd-2.4.37/modules/dav/fs”
make[3]: 进入目录“/root/httpd-2.4.37/modules/dav/lock”
Building shared: mod_dav_lock.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/dav/lock”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/dav/lock”
make[3]: 离开目录“/root/httpd-2.4.37/modules/dav/lock”
make[3]: 进入目录“/root/httpd-2.4.37/modules/mappers”
Building shared: mod_vhost_alias.la mod_negotiation.la mod_dir.la mod_actions.la mod_speling.la mod_userdir.la mod_alias.la mod_rewrite.la
make[4]: 进入目录“/root/httpd-2.4.37/modules/mappers”
make[4]: 对“local-shared-build”无需做任何事。
make[4]: 离开目录“/root/httpd-2.4.37/modules/mappers”
make[3]: 离开目录“/root/httpd-2.4.37/modules/mappers”
make[2]: 离开目录“/root/httpd-2.4.37/modules”
make[2]: 进入目录“/root/httpd-2.4.37/support”
make[2]: 离开目录“/root/httpd-2.4.37/support”Installing configuration files
[PRESERVING EXISTING HTDOCS SUBDIR: /usr/local/apache2/htdocs]
[PRESERVING EXISTING ERROR SUBDIR: /usr/local/apache2/error]
[PRESERVING EXISTING ICONS SUBDIR: /usr/local/apache2/icons]
[PRESERVING EXISTING CGI SUBDIR: /usr/local/apache2/cgi-bin]
Installing header files
Installing build system files
Installing man pages and online manual
make[1]: 离开目录“/root/httpd-2.4.37”
[root@web httpd-2.4.37]# rpm -ql httpd
未安装软件包 httpd
[root@web httpd-2.4.37]# yum install libcurl -y
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 libcurl-7.29.0-59.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@web httpd-2.4.37]# yum install libcurl-devel -y
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 libcurl-devel-7.29.0-59.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@web httpd-2.4.37]# cd /usr/local/apache2/
[root@web apache2]# ls
bin build cgi-bin conf error htdocs icons include logs man manual modules
[root@web apache2]# cd bin
[root@web bin]# ls
ab apxs dbmmanage envvars-std htcacheclean htdigest httpd logresolve
apachectl checkgid envvars fcgistarter htdbm htpasswd httxt2dbm rotatelogs
[root@web bin]# cd /usr/local/apache2
[root@web apache2]# bin/apachectl
[root@web apache2]# cd /
[root@web /]# ls
bin boot dev etc home lib lib64 media mnt opt proc root run sbin soft soft1 srv sys tmp usr var
[root@web /]# cd ~
[root@web ~]# ls
anaconda-ks.cfg apr-1.5.2.tar.bz2 apr-util-1.5.4.tar.bz2 httpd-2.4.37.tar.bz2 mysql-5.6.31 php-7.2.17
apr-1.5.2 apr-util-1.5.4 httpd-2.4.37 initial-setup-ks.cfg mysql-5.6.31.tar.gz php-7.2.17.tar.xz
[root@web ~]# cd php-7.2.17/
[root@web php-7.2.17]# ls
acinclude.m4 ext Makefile php.sh README.WIN32-BUILD-SYSTEM
aclocal.m4 EXTENSIONS Makefile.frag README.EXT_SKEL run-tests.php
appveyor footer Makefile.fragments README.GIT-RULES sapi
build generated_lists Makefile.gcov README.input_filter scripts
buildconf genfiles Makefile.global README.MAILINGLIST_RULES server-tests-config.php
buildconf.bat header Makefile.objects README.md server-tests.php
CODING_STANDARDS include missing README.NEW-OUTPUT-API snapshot
config.guess INSTALL mkinstalldirs README.PARAMETER_PARSING_API stamp-h.in
config.log install-sh modules README.REDIST.BINS tests
config.nice libphp7.la NEWS README.RELEASE_PROCESS travis
config.status libs pear README.SELF-CONTAINED-EXTENSIONS TSRM
config.sub libtool php7.spec README.STREAMS UPGRADING
configure LICENSE php7.spec.in README.SUBMITTING_PATCH UPGRADING.INTERNALS
configure.ac ltmain.sh php.gif README.TESTING vcsclean
CONTRIBUTING.md main php.ini-development README.TESTING2 win32
CREDITS makedist php.ini-production README.UNIX-BUILD-SYSTEM Zend
[root@web php-7.2.17]# cat php.sh
./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysqli \
--with-pdo-mysql \
--with-zlib \
--with-curl \
--enable-zip \
--with-gd \
--with-freetype-dir \
--with-jpeg-dir \
--with-png-dir \
--enable-sockets \
--with-xmlrpc \
--enable-soap \
--enable-opcache \
--enable-mbstring \
--enable-mbregex \
--enable-pcntl \
--enable-shmop \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-calendar \
--enable-bcmath
[root@web php-7.2.17]# ll php.sh
-rwxr-xr-x 1 root root 440 7月 4 21:56 php.sh
[root@web php-7.2.17]# yum install libxml2-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 libxml2-devel-2.9.1-6.el7.5.x86_64 已安装并且是最新版本
无须任何处理
[root@web php-7.2.17]# yum install libjpeg-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 libjpeg-turbo-devel-1.2.90-8.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@web php-7.2.17]# yum install libpng-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 2:libpng-devel-1.5.13-8.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@web php-7.2.17]# yum install freetype-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 freetype-devel-2.8-14.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@web php-7.2.17]# cd !
-bash: cd: !: 没有那个文件或目录
[root@web php-7.2.17]# cd
[root@web ~]# cd ~
[root@web ~]# ls
anaconda-ks.cfg apr-1.5.2.tar.bz2 apr-util-1.5.4.tar.bz2 httpd-2.4.37.tar.bz2 mysql-5.6.31 php-7.2.17
apr-1.5.2 apr-util-1.5.4 httpd-2.4.37 initial-setup-ks.cfg mysql-5.6.31.tar.gz php-7.2.17.tar.xz
[root@web ~]# cd /usr/local/bin
[root@web bin]# cd /usr/local
[root@web local]# cd ap
apache2/ apr/
[root@web local]# cd apache2
[root@web apache2]# ls
bin build cgi-bin conf error htdocs icons include logs man manual modules
[root@web apache2]# cd bin
[root@web bin]# ls
ab apxs dbmmanage envvars-std htcacheclean htdigest httpd logresolve
apachectl checkgid envvars fcgistarter htdbm htpasswd httxt2dbm rotatelogs
[root@web bin]# cd /usr/local/apache2/modules/
[root@web modules]# ls
httpd.exp mod_authz_owner.so mod_ext_filter.so mod_proxy_balancer.so mod_session_dbd.so
libphp7.so mod_authz_user.so mod_file_cache.so mod_proxy_connect.so mod_session.so
mod_access_compat.so mod_autoindex.so mod_filter.so mod_proxy_express.so mod_setenvif.so
mod_actions.so mod_buffer.so mod_headers.so mod_proxy_fcgi.so mod_slotmem_plain.so
mod_alias.so mod_cache_disk.so mod_heartbeat.so mod_proxy_fdpass.so mod_slotmem_shm.so
mod_allowmethods.so mod_cache.so mod_heartmonitor.so mod_proxy_ftp.so mod_socache_dbm.so
mod_asis.so mod_cache_socache.so mod_include.so mod_proxy_hcheck.so mod_socache_memcache.so
mod_auth_basic.so mod_cgi.so mod_info.so mod_proxy_html.so mod_socache_shmcb.so
mod_auth_digest.so mod_charset_lite.so mod_lbmethod_bybusyness.so mod_proxy_http.so mod_speling.so
mod_auth_form.so mod_data.so mod_lbmethod_byrequests.so mod_proxy_scgi.so mod_ssl.so
mod_authn_anon.so mod_dav_fs.so mod_lbmethod_bytraffic.so mod_proxy.so mod_status.so
mod_authn_core.so mod_dav_lock.so mod_lbmethod_heartbeat.so mod_proxy_uwsgi.so mod_substitute.so
mod_authn_dbd.so mod_dav.so mod_log_config.so mod_proxy_wstunnel.so mod_unique_id.so
mod_authn_dbm.so mod_dbd.so mod_log_debug.so mod_ratelimit.so mod_unixd.so
mod_authn_file.so mod_deflate.so mod_log_forensic.so mod_reflector.so mod_userdir.so
mod_authn_socache.so mod_dialup.so mod_logio.so mod_remoteip.so mod_usertrack.so
mod_authz_core.so mod_dir.so mod_macro.so mod_reqtimeout.so mod_version.so
mod_authz_dbd.so mod_dumpio.so mod_mime_magic.so mod_request.so mod_vhost_alias.so
mod_authz_dbm.so mod_echo.so mod_mime.so mod_rewrite.so mod_watchdog.so
mod_authz_groupfile.so mod_env.so mod_negotiation.so mod_sed.so mod_xml2enc.so
mod_authz_host.so mod_expires.so mod_proxy_ajp.so mod_session_cookie.so
[root@web modules]# cd /usr/local/apache2/
[root@web apache2]# ls
bin build cgi-bin conf error htdocs icons include logs man manual modules
[root@web apache2]# cd conf
[root@web conf]# ls
extra httpd.conf httpd.conf.bak magic mime.types original
[root@web conf]# cd /usr/local/apache2/
[root@web apache2]# ls
bin build cgi-bin conf error htdocs icons include logs man manual modules
[root@web apache2]# cd conf
[root@web conf]# ls
extra httpd.conf httpd.conf.bak magic mime.types original
[root@web conf]# cd extra
[root@web extra]# ls
httpd-autoindex.conf httpd-default.conf httpd-languages.conf httpd-mpm.conf httpd-ssl.conf httpd-vhosts.conf
httpd-dav.conf httpd-info.conf httpd-manual.conf httpd-multilang-errordoc.conf httpd-userdir.conf proxy-html.conf
[root@web extra]# cat /usr/local/apache2/conf/httpd.conf
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/access_log"
# with ServerRoot set to "/usr/local/apache2" will be interpreted by the
# server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
# will be interpreted as '/logs/access_log'.#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path. If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used. If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
ServerRoot "/usr/local/apache2"#
# Mutex: Allows you to set the mutex mechanism and mutex file directory
# for individual mutexes, or change the global defaults
#
# Uncomment and change the directory if mutexes are file-based and the default
# mutex file directory is not on a local disk or is not appropriate for some
# other reason.
#
# Mutex default:logs#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_socache_module modules/mod_authn_socache.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
#LoadModule authz_dbd_module modules/mod_authz_dbd.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_form_module modules/mod_auth_form.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule allowmethods_module modules/mod_allowmethods.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule cache_disk_module modules/mod_cache_disk.so
#LoadModule cache_socache_module modules/mod_cache_socache.so
#LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
#LoadModule socache_dbm_module modules/mod_socache_dbm.so
#LoadModule socache_memcache_module modules/mod_socache_memcache.so
#LoadModule watchdog_module modules/mod_watchdog.so
#LoadModule macro_module modules/mod_macro.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule echo_module modules/mod_echo.so
#LoadModule buffer_module modules/mod_buffer.so
#LoadModule data_module modules/mod_data.so
#LoadModule ratelimit_module modules/mod_ratelimit.so
LoadModule reqtimeout_module modules/mod_reqtimeout.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule request_module modules/mod_request.so
#LoadModule include_module modules/mod_include.so
LoadModule filter_module modules/mod_filter.so
#LoadModule reflector_module modules/mod_reflector.so
#LoadModule substitute_module modules/mod_substitute.so
#LoadModule sed_module modules/mod_sed.so
#LoadModule charset_lite_module modules/mod_charset_lite.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule mime_module modules/mod_mime.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_debug_module modules/mod_log_debug.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule version_module modules/mod_version.so
#LoadModule remoteip_module modules/mod_remoteip.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
#LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so
#LoadModule proxy_fdpass_module modules/mod_proxy_fdpass.so
#LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_express_module modules/mod_proxy_express.so
#LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so
#LoadModule session_module modules/mod_session.so
#LoadModule session_cookie_module modules/mod_session_cookie.so
#LoadModule session_dbd_module modules/mod_session_dbd.so
#LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
#LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
#LoadModule ssl_module modules/mod_ssl.so
#LoadModule dialup_module modules/mod_dialup.so
#LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
#LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
#LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
#LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
LoadModule unixd_module modules/mod_unixd.so
#LoadModule heartbeat_module modules/mod_heartbeat.so
#LoadModule heartmonitor_module modules/mod_heartmonitor.so
#LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule asis_module modules/mod_asis.so
#LoadModule info_module modules/mod_info.so
#LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule dav_lock_module modules/mod_dav_lock.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
#LoadModule actions_module modules/mod_actions.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule php7_module modules/libphp7.so
AddHandler php7-script .php
AddType text/html .php<IfModule unixd_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User daemon
Group daemon</IfModule># 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition. These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
##
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
#
ServerAdmin you@example.com#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:80#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#
<Directory />AllowOverride noneRequire all denied
</Directory>#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
##
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/usr/local/apache2/htdocs"
<Directory "/usr/local/apache2/htdocs">## Possible values for the Options directive are "None", "All",# or any combination of:# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews## Note that "MultiViews" must be named *explicitly* --- "Options All"# doesn't give it to you.## The Options directive is both complicated and important. Please see# http://httpd.apache.org/docs/2.4/mod/core.html#options# for more information.#Options Indexes FollowSymLinks## AllowOverride controls what directives may be placed in .htaccess files.# It can be "All", "None", or any combination of the keywords:# AllowOverride FileInfo AuthConfig Limit#AllowOverride None## Controls who can get stuff from this server.#Require all granted
</Directory>#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>DirectoryIndex index.php index.html
</IfModule>#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ".ht*">Require all denied
</Files>#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "logs/error_log"#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn<IfModule log_config_module>## The following directives define some format nicknames for use with# a CustomLog directive (see below).#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combinedLogFormat "%h %l %u %t \"%r\" %>s %b" common<IfModule logio_module># You need to enable mod_logio.c to use %I and %OLogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio</IfModule>## The location and format of the access logfile (Common Logfile Format).# If you do not define any access logfiles within a <VirtualHost># container, they will be logged here. Contrariwise, if you *do*# define per-<VirtualHost> access logfiles, transactions will be# logged therein and *not* in this file.#CustomLog "logs/access_log" common## If you prefer a logfile with access, agent, and referer information# (Combined Logfile Format) you can use the following directive.##CustomLog "logs/access_log" combined
</IfModule><IfModule alias_module>## Redirect: Allows you to tell clients about documents that used to# exist in your server's namespace, but do not anymore. The client# will make a new request for the document at its new location.# Example:# Redirect permanent /foo http://www.example.com/bar## Alias: Maps web paths into filesystem paths and is used to# access content that does not live under the DocumentRoot.# Example:# Alias /webpath /full/filesystem/path## If you include a trailing / on /webpath then the server will# require it to be present in the URL. You will also likely# need to provide a <Directory> section to allow access to# the filesystem path.## ScriptAlias: This controls which directories contain server scripts.# ScriptAliases are essentially the same as Aliases, except that# documents in the target directory are treated as applications and# run by the server when requested rather than as documents sent to the# client. The same rules about trailing "/" apply to ScriptAlias# directives as to Alias.#ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"</IfModule><IfModule cgid_module>## ScriptSock: On threaded servers, designate the path to the UNIX# socket used to communicate with the CGI daemon of mod_cgid.##Scriptsock cgisock
</IfModule>#
# "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/apache2/cgi-bin">AllowOverride NoneOptions NoneRequire all granted
</Directory><IfModule headers_module>## Avoid passing HTTP_PROXY environment to CGI's on this or any proxied# backend servers which have lingering "httpoxy" defects.# 'Proxy' request header is undefined by the IETF, not listed by IANA#RequestHeader unset Proxy early
</IfModule><IfModule mime_module>## TypesConfig points to the file containing the list of mappings from# filename extension to MIME-type.#TypesConfig conf/mime.types## AddType allows you to add to or override the MIME configuration# file specified in TypesConfig for specific file types.##AddType application/x-gzip .tgz## AddEncoding allows you to have certain browsers uncompress# information on the fly. Note: Not all browsers support this.##AddEncoding x-compress .Z#AddEncoding x-gzip .gz .tgz## If the AddEncoding directives above are commented-out, then you# probably should define those extensions to indicate media types:#AddType application/x-compress .ZAddType application/x-gzip .gz .tgz## AddHandler allows you to map certain file extensions to "handlers":# actions unrelated to filetype. These can be either built into the server# or added with the Action directive (see below)## To use CGI scripts outside of ScriptAliased directories:# (You will also need to add "ExecCGI" to the "Options" directive.)##AddHandler cgi-script .cgi# For type maps (negotiated resources):#AddHandler type-map var## Filters allow you to process content before it is sent to the client.## To parse .shtml files for server-side includes (SSI):# (You will also need to add "Includes" to the "Options" directive.)##AddType text/html .shtml#AddOutputFilter INCLUDES .shtml
</IfModule>#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type. The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
#MIMEMagicFile conf/magic#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
##
# MaxRanges: Maximum number of Ranges in a request before
# returning the entire resource, or one of the special
# values 'default', 'none' or 'unlimited'.
# Default setting is to accept 200 Ranges.
#MaxRanges unlimited#
# EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall may be used to deliver
# files. This usually improves server performance, but must
# be turned off when serving from networked-mounted
# filesystems or if support for these functions is otherwise
# broken on your system.
# Defaults: EnableMMAP On, EnableSendfile Off
#
#EnableMMAP off
#EnableSendfile on# Supplemental configuration
#
# The configuration files in the conf/extra/ directory can be
# included to add extra features or to modify the default configuration of
# the server, or you may simply copy their contents here and change as
# necessary.# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf# Fancy directory listings
#Include conf/extra/httpd-autoindex.conf# Language settings
Include conf/extra/httpd-languages.conf# User home directories
#Include conf/extra/httpd-userdir.conf# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf# Virtual hosts
#Include conf/extra/httpd-vhosts.conf# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf# Various default settings
#Include conf/extra/httpd-default.conf# Configure mod_proxy_html to understand HTML4/XHTML1
<IfModule proxy_html_module>
Include conf/extra/proxy-html.conf
</IfModule># Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>[root@web extra]# vim /usr/local/apache2/conf/httpd.conf
[root@web extra]# ls /usr/local/apache2/
bin build cgi-bin conf error htdocs icons include logs man manual modules
[root@web extra]# cd /usr/local/apache2/modules/
[root@web modules]# ls
httpd.exp mod_authz_owner.so mod_ext_filter.so mod_proxy_balancer.so mod_session_dbd.so
libphp7.so mod_authz_user.so mod_file_cache.so mod_proxy_connect.so mod_session.so
mod_access_compat.so mod_autoindex.so mod_filter.so mod_proxy_express.so mod_setenvif.so
mod_actions.so mod_buffer.so mod_headers.so mod_proxy_fcgi.so mod_slotmem_plain.so
mod_alias.so mod_cache_disk.so mod_heartbeat.so mod_proxy_fdpass.so mod_slotmem_shm.so
mod_allowmethods.so mod_cache.so mod_heartmonitor.so mod_proxy_ftp.so mod_socache_dbm.so
mod_asis.so mod_cache_socache.so mod_include.so mod_proxy_hcheck.so mod_socache_memcache.so
mod_auth_basic.so mod_cgi.so mod_info.so mod_proxy_html.so mod_socache_shmcb.so
mod_auth_digest.so mod_charset_lite.so mod_lbmethod_bybusyness.so mod_proxy_http.so mod_speling.so
mod_auth_form.so mod_data.so mod_lbmethod_byrequests.so mod_proxy_scgi.so mod_ssl.so
mod_authn_anon.so mod_dav_fs.so mod_lbmethod_bytraffic.so mod_proxy.so mod_status.so
mod_authn_core.so mod_dav_lock.so mod_lbmethod_heartbeat.so mod_proxy_uwsgi.so mod_substitute.so
mod_authn_dbd.so mod_dav.so mod_log_config.so mod_proxy_wstunnel.so mod_unique_id.so
mod_authn_dbm.so mod_dbd.so mod_log_debug.so mod_ratelimit.so mod_unixd.so
mod_authn_file.so mod_deflate.so mod_log_forensic.so mod_reflector.so mod_userdir.so
mod_authn_socache.so mod_dialup.so mod_logio.so mod_remoteip.so mod_usertrack.so
mod_authz_core.so mod_dir.so mod_macro.so mod_reqtimeout.so mod_version.so
mod_authz_dbd.so mod_dumpio.so mod_mime_magic.so mod_request.so mod_vhost_alias.so
mod_authz_dbm.so mod_echo.so mod_mime.so mod_rewrite.so mod_watchdog.so
mod_authz_groupfile.so mod_env.so mod_negotiation.so mod_sed.so mod_xml2enc.so
mod_authz_host.so mod_expires.so mod_proxy_ajp.so mod_session_cookie.so
[root@web modules]# vim /usr/local/apache2/conf/extra/httpd-languages.conf
[root@web modules]# cd /usr/local/apache2
[root@web apache2]# bin/apachectl -k restart
[root@web apache2]# cd /usr/local/apache2/htdocs/
[root@web htdocs]# ks
bash: ks: 未找到命令...
[root@web htdocs]# ls
index.html
[root@web htdocs]# rm -f index.html
[root@web htdocs]# vim index.php
[root@web htdocs]# cat index.php
<?phpphpinfo();
?>
[root@web htdocs]# cd ~
[root@web ~]# ls
anaconda-ks.cfg apr-util-1.5.4 httpd-2.4.37.tar.bz2 mysql-5.6.31.tar.gz wordpress-4.7.3-zh_CN.tar.gz
apr-1.5.2 apr-util-1.5.4.tar.bz2 initial-setup-ks.cfg php-7.2.17
apr-1.5.2.tar.bz2 httpd-2.4.37 mysql-5.6.31 php-7.2.17.tar.xz
[root@web ~]# tar xf wordpress-4.7.3-zh_CN.tar.gz
[root@web ~]# cd wordpress/
[root@web wordpress]# cd ~
[root@web ~]# mkdir /www/bloglog
mkdir: 无法创建目录"/www/bloglog": 没有那个文件或目录
[root@web ~]# mkdir /www/bloglog -p
[root@web ~]# ls
anaconda-ks.cfg apr-util-1.5.4 httpd-2.4.37.tar.bz2 mysql-5.6.31.tar.gz wordpress
apr-1.5.2 apr-util-1.5.4.tar.bz2 initial-setup-ks.cfg php-7.2.17 wordpress-4.7.3-zh_CN.tar.gz
apr-1.5.2.tar.bz2 httpd-2.4.37 mysql-5.6.31 php-7.2.17.tar.xz
[root@web ~]# mv wordpress /www/bloglog/
[root@web ~]# ls /usr/local/apache2/
bin build cgi-bin conf error htdocs icons include logs man manual modules
[root@web ~]# chown -R deamon.deamon /www/bloglog
chown: 无效的用户: "deamon.deamon"
[root@web ~]# cd /www/bloglog
[root@web bloglog]# ls
wordpress
[root@web bloglog]# chown -R daemon.daemon /www/bloglog
[root@web bloglog]# ll -d /www/bloglog
drwxr-xr-x 3 daemon daemon 23 7月 5 10:42 /www/bloglog
[root@web bloglog]# cd /usr/local/apache2/conf/
[root@web conf]# ls
extra httpd.conf httpd.conf.bak magic mime.types original
[root@web conf]# cd /usr/l
lib/ lib64/ libexec/ local/
[root@web conf]# cd /usr/local/apache2/conf/extra/
[root@web extra]# ls
httpd-autoindex.conf httpd-default.conf httpd-languages.conf httpd-mpm.conf httpd-ssl.conf httpd-vhosts.conf
httpd-dav.conf httpd-info.conf httpd-manual.conf httpd-multilang-errordoc.conf httpd-userdir.conf proxy-html.conf
[root@web extra]# vim /usr/local/apache2/conf/httpd.conf
[root@web extra]# vim /usr/local/ap
apache2/ apr/
[root@web extra]# vim /usr/local/apache2/conf/extra/httpd-vhosts.conf
[root@web extra]# cat /usr/local/apache2/conf/extra/httpd-vhosts.conf
# Virtual Hosts
#
# Required modules: mod_log_config# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#<VirtualHost *:80>DocumentRoot "/www/bloglog"ServerName www.bloglog.comErrorLog "logs/blog-error_log"CustomLog "logs/blog-access_log" common
</VirtualHost>[root@web extra]# cd /usr/local/apache2/
[root@web apache2]# bin/apachectl -k stop
[root@web apache2]# bin/apachectl -k start
[root@web apache2]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.6.31 Source distributionCopyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> create database blog default charset utf8;
Query OK, 1 row affected (0.00 sec)mysql> Ctrl-C -- exit!
Aborted
[root@web apache2]# vim /usr/local/ap
apache2/ apr/
[root@web apache2]# vim /usr/local/apache2/conf/httpd.conf
[root@web apache2]# ll /www/bloglog
总用量 4
drwxr-xr-x 5 daemon daemon 4096 3月 7 2017 wordpress
[root@web apache2]# cd /usr/local/apache2/
[root@web apache2]# bin/apachectl -k start
httpd (pid 119691) already running
[root@web apache2]# cat /usr/local/apache2/htdocs/
cat: /usr/local/apache2/htdocs/: 是一个目录
[root@web apache2]# cd /usr/local/apache2/
[root@web apache2]# ls
bin build cgi-bin conf error htdocs icons include logs man manual modules
[root@web apache2]# cd htdocs/
[root@web htdocs]# ls
index.php
[root@web htdocs]# cat index.php
<?phpphpinfo();
?>
[root@web htdocs]# ll /www/bloglog
总用量 4
drwxr-xr-x 5 daemon daemon 4096 3月 7 2017 wordpress
[root@web htdocs]#
[root@web htdocs]# vim /usr/local/apache2/conf/httpd.conf
[root@web htdocs]# cd /usr/local/apache2/conf
[root@web conf]# ls
extra httpd.conf httpd.conf.bak magic mime.types original
[root@web conf]# cd extra/
[root@web extra]# ls
httpd-autoindex.conf httpd-default.conf httpd-languages.conf httpd-mpm.conf httpd-ssl.conf httpd-vhosts.conf
httpd-dav.conf httpd-info.conf httpd-manual.conf httpd-multilang-errordoc.conf httpd-userdir.conf proxy-html.conf
[root@web extra]# cat httpd-vhosts.conf
# Virtual Hosts
#
# Required modules: mod_log_config# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#<VirtualHost *:80>DocumentRoot "/www/bloglog"ServerName www.bloglog.comErrorLog "logs/blog-error_log"CustomLog "logs/blog-access_log" common
</VirtualHost>[root@web extra]# vim /usr/local/apache2/c
cgi-bin/ conf/
[root@web extra]# vim /usr/local/apache2/conf/httpd.conf
[root@web extra]# cd /usr/local/apache2/
[root@web apache2]# ls
bin build cgi-bin conf error htdocs icons include logs man manual modules
[root@web apache2]# bin/apachectl -k stop
[root@web apache2]# bin/apachectl -k start
[root@web apache2]# cd /www/bloglog
[root@web bloglog]# ks
bash: ks: 未找到命令...
[root@web bloglog]# ls
wordpress
[root@web bloglog]# cd wordpress
[root@web wordpress]# ls
index.php wp-activate.php wp-comments-post.php wp-cron.php wp-load.php wp-settings.php xmlrpc.php
license.txt wp-admin wp-config-sample.php wp-includes wp-login.php wp-signup.php
readme.html wp-blog-header.php wp-content wp-links-opml.php wp-mail.php wp-trackback.php
[root@web wordpress]# cat /usr/local/apache2/conf/extra/httpd-vhosts.conf
# Virtual Hosts
#
# Required modules: mod_log_config# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#<VirtualHost *:80>DocumentRoot "/www/bloglog"ServerName www.bloglog.comErrorLog "logs/blog-error_log"CustomLog "logs/blog-access_log" common
</VirtualHost>[root@web wordpress]# vim /usr/local/apache2/conf/extra/httpd-vhosts.conf
[root@web wordpress]# cat /usr/local/apache2/conf/extra/httpd-vhosts.conf
# Virtual Hosts
#
# Required modules: mod_log_config# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#<VirtualHost *:80>DocumentRoot "/www/bloglog/wordpress"ServerName www.bloglog.comErrorLog "logs/blog-error_log"CustomLog "logs/blog-access_log" common
</VirtualHost>[root@web wordpress]# cd /usr/local/apache2/
[root@web apache2]# bin/apachectl -k stop
[root@web apache2]# bin/apachectl -k start
[root@web apache2]# cd /www/bloglog
[root@web bloglog]# ls
wordpress
[root@web bloglog]# cd wordpress/
[root@web wordpress]# ls
index.php wp-activate.php wp-comments-post.php wp-content wp-links-opml.php wp-mail.php wp-trackback.php
license.txt wp-admin wp-config.php wp-cron.php wp-load.php wp-settings.php xmlrpc.php
readme.html wp-blog-header.php wp-config-sample.php wp-includes wp-login.php wp-signup.php
[root@web wordpress]# cat wp-con
wp-config.php wp-config-sample.php wp-content/
[root@web wordpress]# cat wp-config.php
<?php
/*** WordPress基础配置文件。** 这个文件被安装程序用于自动生成wp-config.php配置文件,* 您可以不使用网站,您需要手动复制这个文件,* 并重命名为“wp-config.php”,然后填入相关信息。** 本文件包含以下配置选项:** * MySQL设置* * 密钥* * 数据库表名前缀* * ABSPATH** @link https://codex.wordpress.org/zh-cn:%E7%BC%96%E8%BE%91_wp-config.php** @package WordPress*/// ** MySQL 设置 - 具体信息来自您正在使用的主机 ** //
/** WordPress数据库的名称 */
define('DB_NAME', 'blog');/** MySQL数据库用户名 */
define('DB_USER', 'root');/** MySQL数据库密码 */
define('DB_PASSWORD', '123');/** MySQL主机 */
define('DB_HOST', 'localhost');/** 创建数据表时默认的文字编码 */
define('DB_CHARSET', 'utf8mb4');/** 数据库整理类型。如不确定请勿更改 */
define('DB_COLLATE', '');/**#@+* 身份认证密钥与盐。** 修改为任意独一无二的字串!* 或者直接访问{@link https://api.wordpress.org/secret-key/1.1/salt/* WordPress.org密钥生成服务}* 任何修改都会导致所有cookies失效,所有用户将必须重新登录。** @since 2.6.0*/
define('AUTH_KEY', ')BpFm:B]4qLk*ha#3-=Ae!k+SfMXq?h#z(_k7<OAK)Oi=`VpVvtBF&3xTu9GJ+1V');
define('SECURE_AUTH_KEY', 'uHjuWe}R4tb&,{.Bb.F0Wt+awpU^U[r1kdxfF/M$%I}M-hkZ *E:uo&`}O7H(Yg,');
define('LOGGED_IN_KEY', 'lU#5 ov7`1ol)o3A6pWh8eu!KEcDAA9-_G#NmN3bT>dhVxnFl[o?tctON:C(IG&D');
define('NONCE_KEY', 'RKx2kt)kUX{_k{%$5TAf_4^/AywzVo/i(@WG1+0OqZ:>08)5w}UuAUGM&uX nhX1');
define('AUTH_SALT', '}y7ibzVG~p8cq-<Q:*NCE4Eauze)HbWwB2MLii8mmF~DxH)yx|%P>J?+1=#=Y.B=');
define('SECURE_AUTH_SALT', 'v$gxOmh_G.+?mzzHbWo)_{od 5|5]e7Njd c1_pl?|2:n$E3n1qM1v.>Y=z;YH90');
define('LOGGED_IN_SALT', 'lBqEJdVj4^vy].!{@[faxGp[tyY9~3A7hFY#dHA6YZlyWnLF 1-{I]}?2a#pt6l9');
define('NONCE_SALT', 'DYQD*^*jYM_c44W49HL`(N1[4xW66Z<,x1eT?g*0gS<V5EU+7X3Trj*Cx5Ik/fyo');/**#@-*//*** WordPress数据表前缀。** 如果您有在同一数据库内安装多个WordPress的需求,请为每个WordPress设置* 不同的数据表前缀。前缀名只能为数字、字母加下划线。*/
$table_prefix = 'wp_';/*** 开发者专用:WordPress调试模式。** 将这个值改为true,WordPress将显示所有用于开发的提示。* 强烈建议插件开发者在开发环境中启用WP_DEBUG。** 要获取其他能用于调试的信息,请访问Codex。** @link https://codex.wordpress.org/Debugging_in_WordPress*/
define('WP_DEBUG', false);/*** zh_CN本地化设置:启用ICP备案号显示** 可在设置→常规中修改。* 如需禁用,请移除或注释掉本行。*/
define('WP_ZH_CN_ICP_NUM', true);/* 好了!请不要再继续编辑。请保存本文件。使用愉快! *//** WordPress目录的绝对路径。 */
if ( !defined('ABSPATH') )define('ABSPATH', dirname(__FILE__) . '/');/** 设置WordPress变量和包含文件。 */
require_once(ABSPATH . 'wp-settings.php');
[root@web wordpress]#
openssh
码
root@192.168.235.9's password:
▒▒▒ʱ▒▒ܾ▒
root@192.168.235.9's password:┌────────────────────────────────────────────────────────────────────┐│ • MobaXterm 20.0 • ││ (SSH client, X-server and networking tools) ││ ││ ➤ SSH session to root@192.168.235.9 ││ • SSH compression : ✘ ││ • SSH-browser : ✔ ││ • X11-forwarding : ✔ (remote display is forwarded through SSH) ││ • DISPLAY : ✔ (automatically set on remote server) ││ ││ ➤ For more info, ctrl+click on help or visit our website │└────────────────────────────────────────────────────────────────────┘Last failed login: Sat Jul 5 17:30:50 CST 2025 from 192.168.235.1 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Wed Jul 2 19:12:12 2025 from 192.168.235.1
[root@slave ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:firewalld(1)
[root@slave ~]# setenforce 0
setenforce: SELinux is disabled
[root@slave ~]# yum repolist
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
源标识 源名称 状态
local local yum 4,070
repolist: 4,070
[root@slave ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00inet 127.0.0.1/8 scope host lovalid_lft forever preferred_lft foreverinet6 ::1/128 scope hostvalid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000link/ether 00:0c:29:57:94:60 brd ff:ff:ff:ff:ff:ffinet 192.168.235.9/24 brd 192.168.235.255 scope global ens33valid_lft forever preferred_lft foreverinet6 fe80::20c:29ff:fe57:9460/64 scope linkvalid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000link/ether 52:54:00:3d:30:2a brd ff:ff:ff:ff:ff:ffinet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000link/ether 52:54:00:3d:30:2a brd ff:ff:ff:ff:ff:ff
[root@slave ~]# systemctl status NetworkManager
● NetworkManager.service - Network ManagerLoaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:NetworkManager(8)
[root@slave ~]# yum install open-ssh
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
没有可用软件包 open-ssh。
错误:无须任何处理
[root@slave ~]# rpm -ql openssh
/etc/ssh
/etc/ssh/moduli
/usr/bin/ssh-keygen
/usr/libexec/openssh
/usr/libexec/openssh/ctr-cavstest
/usr/libexec/openssh/ssh-keysign
/usr/share/doc/openssh-7.4p1
/usr/share/doc/openssh-7.4p1/CREDITS
/usr/share/doc/openssh-7.4p1/ChangeLog
/usr/share/doc/openssh-7.4p1/INSTALL
/usr/share/doc/openssh-7.4p1/OVERVIEW
/usr/share/doc/openssh-7.4p1/PROTOCOL
/usr/share/doc/openssh-7.4p1/PROTOCOL.agent
/usr/share/doc/openssh-7.4p1/PROTOCOL.certkeys
/usr/share/doc/openssh-7.4p1/PROTOCOL.chacha20poly1305
/usr/share/doc/openssh-7.4p1/PROTOCOL.key
/usr/share/doc/openssh-7.4p1/PROTOCOL.krl
/usr/share/doc/openssh-7.4p1/PROTOCOL.mux
/usr/share/doc/openssh-7.4p1/README
/usr/share/doc/openssh-7.4p1/README.dns
/usr/share/doc/openssh-7.4p1/README.platform
/usr/share/doc/openssh-7.4p1/README.privsep
/usr/share/doc/openssh-7.4p1/README.tun
/usr/share/doc/openssh-7.4p1/TODO
/usr/share/licenses/openssh-7.4p1
/usr/share/licenses/openssh-7.4p1/LICENCE
/usr/share/man/man1/ssh-keygen.1.gz
/usr/share/man/man8/ssh-keysign.8.gz
[root@slave ~]# rpm -ql openssh-server
/etc/pam.d/sshd
/etc/ssh/sshd_config
/etc/sysconfig/sshd
/usr/lib/systemd/system/sshd-keygen.service
/usr/lib/systemd/system/sshd.service
/usr/lib/systemd/system/sshd.socket
/usr/lib/systemd/system/sshd@.service
/usr/lib64/fipscheck/sshd.hmac
/usr/libexec/openssh/sftp-server
/usr/sbin/sshd
/usr/sbin/sshd-keygen
/usr/share/man/man5/moduli.5.gz
/usr/share/man/man5/sshd_config.5.gz
/usr/share/man/man8/sftp-server.8.gz
/usr/share/man/man8/sshd.8.gz
/var/empty/sshd
[root@slave ~]# ssh html@192.168.235.200
The authenticity of host '192.168.235.200 (192.168.235.200)' can't be established.
ECDSA key fingerprint is SHA256:khlI72dk6xtaBObBlZbZT4+Z+s+1c1tjmHg3nZVV8G4.
ECDSA key fingerprint is MD5:59:e9:91:40:a4:ca:21:a9:c2:92:39:b8:d4:7f:5f:2f.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': y
Please type 'yes' or 'no': yes
Warning: Permanently added '192.168.235.200' (ECDSA) to the list of known hosts.
html@192.168.235.200's password:
Permission denied, please try again.
html@192.168.235.200's password:[root@slave ~]# ssh xiaocao@192.168.235.200
xiaocao@192.168.235.200's password:
Last login: Sat Jul 5 18:22:41 2025
[xiaocao@client ~]$ ls
[xiaocao@client ~]$ ls
[xiaocao@client ~]$ cd ~
[xiaocao@client ~]$ ls
[xiaocao@client ~]$ cd /
[xiaocao@client /]$ ls
backup bin boot code dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
[xiaocao@client /]$ cd backup
[xiaocao@client backup]$ ls
123.jpg 1.txt 2.txt share.mp4
[xiaocao@client backup]$ cd code
-bash: cd: code: 没有那个文件或目录
[xiaocao@client backup]$ cd /code
[xiaocao@client code]$ ls
html
[xiaocao@client code]$ cd html
[xiaocao@client html]$ ls
[xiaocao@client html]$
JumpServer
caozx26@192.168.235.200's password:┌────────────────────────────────────────────────────────────────────┐│ • MobaXterm 20.0 • ││ (SSH client, X-server and networking tools) ││ ││ ➤ SSH session to caozx26@192.168.235.200 ││ • SSH compression : ✘ ││ • SSH-browser : ✔ ││ • X11-forwarding : ✔ (remote display is forwarded through SSH) ││ • DISPLAY : ✔ (automatically set on remote server) ││ ││ ➤ For more info, ctrl+click on help or visit our website │└────────────────────────────────────────────────────────────────────┘Last login: Wed Jul 2 05:27:23 2025
[caozx26@client ~]$ yum repolist
已加载插件:fastestmirror, langpacks
Determining fastest mirrors
源标识 源名称 状态
local local yum 4,070
repolist: 4,070
[caozx26@client ~]$ systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:firewalld(1)
[caozx26@client ~]$ setenforce 0
setenforce: SELinux is disabled
[caozx26@client ~]$ yum install open-ssh
已加载插件:fastestmirror, langpacks
您需要 root 权限执行此命令。
[caozx26@client ~]$ sudo su
[sudo] caozx26 的密码:
[root@client caozx26]# yum install open-ssh
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
没有可用软件包 open-ssh。
错误:无须任何处理
[root@client caozx26]# yum install openssh
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
软件包 openssh-7.4p1-21.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@client caozx26]# rpm -sl openssh-server
RPM 版本 4.11.3
版权所有 (C) 1998-2002 - 红帽公司。
该程序可以在 GNU GPL 条款下自由分发用法: rpm [-aKfgpqVcdLilsiv?] [-a|--all] [-f|--file] [-g|--group] [-p|--package] [--pkgid] [--hdrid] [--triggeredby] [--whatrequires][--whatprovides] [--nomanifest] [-c|--configfiles] [-d|--docfiles] [-L|--licensefiles] [--dump] [-l|--list][--queryformat=QUERYFORMAT] [-s|--state] [--nofiledigest] [--nofiles] [--nodeps] [--noscript] [--allfiles] [--allmatches][--badreloc] [-e|--erase <package>+] [--excludedocs] [--excludepath=<path>] [--force] [-F|--freshen <packagefile>+][-h|--hash] [--ignorearch] [--ignoreos] [--ignoresize] [-i|--install] [--justdb] [--nodeps] [--nofiledigest] [--nocontexts][--noorder] [--noscripts] [--notriggers] [--nocollections] [--oldpackage] [--percent] [--prefix=<dir>][--relocate=<old>=<new>] [--replacefiles] [--replacepkgs] [--test] [-U|--upgrade <packagefile>+] [--reinstall=<packagefile>+][-D|--define “MACRO EXPR”] [--undefine=MACRO] [-E|--eval “EXPR”] [--macros=<FILE:…>] [--noplugins] [--nodigest][--nosignature] [--rcfile=<FILE:…>] [-r|--root ROOT] [--dbpath=DIRECTORY] [--querytags] [--showrc] [--quiet] [-v|--verbose][--version] [-?|--help] [--usage] [--scripts] [--setperms] [--setugids] [--setcaps] [--restore] [--conflicts][--obsoletes] [--provides] [--requires] [--info] [--changelog] [--xml] [--triggers] [--last] [--dupes] [--filesbypkg][--fileclass] [--filecolor] [--fscontext] [--fileprovide] [--filerequire] [--filecaps]
[root@client caozx26]# rpm -ql openssh-server
/etc/pam.d/sshd
/etc/ssh/sshd_config
/etc/sysconfig/sshd
/usr/lib/systemd/system/sshd-keygen.service
/usr/lib/systemd/system/sshd.service
/usr/lib/systemd/system/sshd.socket
/usr/lib/systemd/system/sshd@.service
/usr/lib64/fipscheck/sshd.hmac
/usr/libexec/openssh/sftp-server
/usr/sbin/sshd
/usr/sbin/sshd-keygen
/usr/share/man/man5/moduli.5.gz
/usr/share/man/man5/sshd_config.5.gz
/usr/share/man/man8/sftp-server.8.gz
/usr/share/man/man8/sshd.8.gz
/var/empty/sshd
[root@client caozx26]# tail -5 /etc/group
postdrop:x:90:
postfix:x:89:
tcpdump:x:72:
caozx26:x:1000:caozx26
apache:x:48:
[root@client caozx26]# groupadd html
[root@client caozx26]# useradd -g html xiaocao
[root@client caozx26]# echo '123'|passwd --stdin xiaocao
更改用户 xiaocao 的密码 。
passwd:所有的身份验证令牌已经成功更新。
[root@client caozx26]# su - xiaocao
[xiaocao@client ~]$ echo 123|passwd --stdin xiaocoa
只有根用户才能进行此操作。
[xiaocao@client ~]$ sudo su我们信任您已经从系统管理员那里了解了日常注意事项。
总结起来无外乎这三点:#1) 尊重别人的隐私。#2) 输入前要先考虑(后果和风险)。#3) 权力越大,责任越大。[sudo] xiaocao 的密码:
xiaocao 不在 sudoers 文件中。此事将被报告。
[xiaocao@client ~]$ su - caozx26
密码:
上一次登录:六 7月 5 18:00:12 CST 2025从 192.168.235.1pts/1 上
[caozx26@client ~]$ sudo su
[sudo] caozx26 的密码:
[root@client caozx26]# echo 123|passwd --stdin xiaocao
更改用户 xiaocao 的密码 。
passwd:所有的身份验证令牌已经成功更新。
[root@client caozx26]# su - xiaocao
上一次登录:六 7月 5 18:20:03 CST 2025pts/1 上
[xiaocao@client ~]$ ^C
[xiaocao@client ~]$ exit
登出
[root@client caozx26]# su - caozx26
上一次登录:六 7月 5 18:20:40 CST 2025pts/1 上
[caozx26@client ~]$ su - xiaocao
密码:
上一次登录:六 7月 5 18:21:10 CST 2025pts/1 上
[xiaocao@client ~]$ su - caozx26
密码:
上一次登录:六 7月 5 18:21:22 CST 2025pts/1 上
[caozx26@client ~]$ sudo su
[root@client caozx26]# echo '123'|passwd --stain xiaocao
passwd:错误的参数 --stain:未知的选项
[root@client caozx26]# echo '123'|passwd --stdin xiaocao
更改用户 xiaocao 的密码 。
passwd:所有的身份验证令牌已经成功更新。
[root@client caozx26]# su - caozx26
上一次登录:六 7月 5 18:21:45 CST 2025pts/1 上
[caozx26@client ~]$ su - xiaocao
密码:
上一次登录:六 7月 5 18:21:28 CST 2025pts/1 上
[xiaocao@client ~]$ mkdir /code/html -p
mkdir: 无法创建目录"/code": 权限不够
[xiaocao@client ~]$ su - caozx26
密码:
上一次登录:六 7月 5 18:22:36 CST 2025pts/1 上
[caozx26@client ~]$ sudo su
[sudo] caozx26 的密码:
[root@client caozx26]# mkdir /code/html -p
[root@client caozx26]# chgrp -R html /code/html
[root@client caozx26]# ll -d /code/html
drwxr-xr-x 2 root html 6 7月 5 18:34 /code/html
[root@client caozx26]# chmod g+x /code/html
[root@client caozx26]# ll -d /code/html
drwxr-xr-x 2 root html 6 7月 5 18:34 /code/html
[root@client caozx26]# chmod g+w /code/html
[root@client caozx26]# ll -d /code/html
drwxrwxr-x 2 root html 6 7月 5 18:34 /code/html
[root@client caozx26]# chmod 1770 /code/html
[root@client caozx26]# ll -d /code/html
drwxrwx--T 2 root html 6 7月 5 18:34 /code/html
[root@client caozx26]# cat /etc/ssh/sshd_config
# $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.# This sshd was compiled with PATH=/usr/local/bin:/usr/bin# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.# If you want to change the port on a SELinux system, you have to tell
# SELinux about this change.
# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER
#
#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key# Ciphers and keying
#RekeyLimit default none# Logging
#SyslogFacility AUTH
SyslogFacility AUTHPRIV
#LogLevel INFO# Authentication:#LoginGraceTime 2m
#PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10#PubkeyAuthentication yes# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile .ssh/authorized_keys#AuthorizedPrincipalsFile none#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
PasswordAuthentication yes# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
ChallengeResponseAuthentication no# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
#KerberosUseKuserok yes# GSSAPI options
GSSAPIAuthentication yes
GSSAPICleanupCredentials no
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no
#GSSAPIEnablek5users no# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
# WARNING: 'UsePAM no' is not supported in Red Hat Enterprise Linux and may cause several
# problems.
UsePAM yes#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation sandbox
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#ShowPatchLevel no
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none# no default banner path
#Banner none# Accept locale-related environment variables
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
AcceptEnv XMODIFIERS# override default of no subsystems
Subsystem sftp /usr/libexec/openssh/sftp-server# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
[root@client caozx26]# ssh -p 3312 code@192.168.2355.15
ssh: connect to host 192.168.2355.15 port 3312: Connection refused
[root@client caozx26]# ssh -p 3312 code@192.168.235.15
The authenticity of host '[192.168.235.15]:3312 ([192.168.235.15]:3312)' can't be established.
ECDSA key fingerprint is SHA256:khlI72dk6xtaBObBlZbZT4+Z+s+1c1tjmHg3nZVV8G4.
ECDSA key fingerprint is MD5:59:e9:91:40:a4:ca:21:a9:c2:92:39:b8:d4:7f:5f:2f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[192.168.235.15]:3312' (ECDSA) to the list of known hosts.
code@192.168.235.15's password:
[code@web ~]$ ssh -keygen
Bad escape character 'ygen'.
[code@web ~]$ ssh - keygen
ssh: Could not resolve hostname -: Name or service not known
[code@web ~]$ ssh -keygen
Bad escape character 'ygen'.
[code@web ~]$ sudo su我们信任您已经从系统管理员那里了解了日常注意事项。
总结起来无外乎这三点:#1) 尊重别人的隐私。#2) 输入前要先考虑(后果和风险)。#3) 权力越大,责任越大。[sudo] code 的密码:
[code@web ~]$ su - caozx26
密码:
上一次登录:六 7月 5 18:58:36 CST 2025:0 上
[caozx26@web ~]$ sudo su
[sudo] caozx26 的密码:
[root@web caozx26]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): ^C
[root@web caozx26]# su - code
上一次登录:六 7月 5 19:12:58 CST 2025从 192.168.235.200pts/2 上
[code@web ~]$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/code/.ssh/id_rsa):
Created directory '/home/code/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/code/.ssh/id_rsa.
Your public key has been saved in /home/code/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:T6lyR8OEM2f3GpCU1xEDL8Xr89E283F994018TMXKCg code@web
The key's randomart image is:
+---[RSA 2048]----+
| ...+=o |
| o...oo. |
| + B.o o. |
| E O = +.o |
| S * o.. *|
| = . ooO@|
| . o o . *^|
| o . . =|
| |
+----[SHA256]-----+
[code@web ~]$ ssh-copy-id -p 3312 code@192.168.235.15
/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/code/.ssh/id_rsa.pub"
The authenticity of host '[192.168.235.15]:3312 ([192.168.235.15]:3312)' can't be established.
ECDSA key fingerprint is SHA256:khlI72dk6xtaBObBlZbZT4+Z+s+1c1tjmHg3nZVV8G4.
ECDSA key fingerprint is MD5:59:e9:91:40:a4:ca:21:a9:c2:92:39:b8:d4:7f:5f:2f.
Are you sure you want to continue connecting (yes/no)? yes
/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
code@192.168.235.15's password:Number of key(s) added: 1Now try logging into the machine, with: "ssh -p '3312' 'code@192.168.235.15'"
and check to make sure that only the key(s) you wanted were added.[code@web ~]$ ssh -p 3312 code@192.168.235.15
Last login: Sat Jul 5 20:10:40 2025
[code@web ~]$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/code/.ssh/id_rsa):
/home/code/.ssh/id_rsa already exists.
Overwrite (y/n)?
[code@web ~]$ scp -p 3312 ~/.ssh/id_rsa.pub code@192.168.235.15:/home/code
ssh: connect to host 192.168.235.15 port 22: Connection refused
lost connection
[code@web ~]$ scp -P 3312 ~/.ssh/id_rsa.pub code@192.168.235.15:/home/code
id_rsa.pub 100% 390 409.8KB/s 00:00
[code@web ~]$ ssh -p 3312 code@192.168.235.16
ssh: connect to host 192.168.235.16 port 3312: No route to host
[code@web ~]$ exit
登出
Connection to 192.168.235.15 closed.
[code@web ~]$ key-gen
bash: key-gen: 未找到命令...
[code@web ~]$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/code/.ssh/id_rsa):
/home/code/.ssh/id_rsa already exists.
Overwrite (y/n)?
[code@web ~]$ scp -P 3312 ~/.ssh/id_rsa.pub code@192.168.235.15:/home/code
id_rsa.pub 100% 390 518.2KB/s 00:00
[code@web ~]$ ssh -p 3312 code@192.168.235.15
Last login: Sat Jul 5 20:42:55 2025
[code@web ~]$
RealServer
root@192.168.235.15's password:┌────────────────────────────────────────────────────────────────────┐│ • MobaXterm 20.0 • ││ (SSH client, X-server and networking tools) ││ ││ ➤ SSH session to root@192.168.235.15 ││ • SSH compression : ✘ ││ • SSH-browser : ✔ ││ • X11-forwarding : ✔ (remote display is forwarded through SSH) ││ • DISPLAY : ✔ (automatically set on remote server) ││ ││ ➤ For more info, ctrl+click on help or visit our website │└────────────────────────────────────────────────────────────────────┘Last login: Sat Jul 5 06:50:33 2025 from 192.168.235.1
[root@web ~]# vim /etc/ssh/ssh_config
[root@web ~]# cd /etc/ssh
[root@web ssh]# ls
moduli sshd_config ssh_host_ecdsa_key.pub ssh_host_ed25519_key.pub ssh_host_rsa_key.pub
ssh_config ssh_host_ecdsa_key ssh_host_ed25519_key ssh_host_rsa_key
[root@web ssh]# cat sshd_config
# $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.# This sshd was compiled with PATH=/usr/local/bin:/usr/bin# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.# If you want to change the port on a SELinux system, you have to tell
# SELinux about this change.
# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER
#
#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key# Ciphers and keying
#RekeyLimit default none# Logging
#SyslogFacility AUTH
SyslogFacility AUTHPRIV
#LogLevel INFO# Authentication:#LoginGraceTime 2m
#PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10#PubkeyAuthentication yes# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile .ssh/authorized_keys#AuthorizedPrincipalsFile none#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
PasswordAuthentication yes# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
ChallengeResponseAuthentication no# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
#KerberosUseKuserok yes# GSSAPI options
GSSAPIAuthentication yes
GSSAPICleanupCredentials no
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no
#GSSAPIEnablek5users no# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
# WARNING: 'UsePAM no' is not supported in Red Hat Enterprise Linux and may cause several
# problems.
UsePAM yes#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation sandbox
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#ShowPatchLevel no
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none# no default banner path
#Banner none# Accept locale-related environment variables
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
AcceptEnv XMODIFIERS# override default of no subsystems
Subsystem sftp /usr/libexec/openssh/sftp-server# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
[root@web ssh]# vim sshd_config
[root@web ssh]# useradd code
[root@web ssh]# rpm -ql openssh
/etc/ssh
/etc/ssh/moduli
/usr/bin/ssh-keygen
/usr/libexec/openssh
/usr/libexec/openssh/ctr-cavstest
/usr/libexec/openssh/ssh-keysign
/usr/share/doc/openssh-7.4p1
/usr/share/doc/openssh-7.4p1/CREDITS
/usr/share/doc/openssh-7.4p1/ChangeLog
/usr/share/doc/openssh-7.4p1/INSTALL
/usr/share/doc/openssh-7.4p1/OVERVIEW
/usr/share/doc/openssh-7.4p1/PROTOCOL
/usr/share/doc/openssh-7.4p1/PROTOCOL.agent
/usr/share/doc/openssh-7.4p1/PROTOCOL.certkeys
/usr/share/doc/openssh-7.4p1/PROTOCOL.chacha20poly1305
/usr/share/doc/openssh-7.4p1/PROTOCOL.key
/usr/share/doc/openssh-7.4p1/PROTOCOL.krl
/usr/share/doc/openssh-7.4p1/PROTOCOL.mux
/usr/share/doc/openssh-7.4p1/README
/usr/share/doc/openssh-7.4p1/README.dns
/usr/share/doc/openssh-7.4p1/README.platform
/usr/share/doc/openssh-7.4p1/README.privsep
/usr/share/doc/openssh-7.4p1/README.tun
/usr/share/doc/openssh-7.4p1/TODO
/usr/share/licenses/openssh-7.4p1
/usr/share/licenses/openssh-7.4p1/LICENCE
/usr/share/man/man1/ssh-keygen.1.gz
/usr/share/man/man8/ssh-keysign.8.gz
[root@web ssh]# rpm -ql openssh_server
未安装软件包 openssh_server
[root@web ssh]# rpm -ql openssh-server
/etc/pam.d/sshd
/etc/ssh/sshd_config
/etc/sysconfig/sshd
/usr/lib/systemd/system/sshd-keygen.service
/usr/lib/systemd/system/sshd.service
/usr/lib/systemd/system/sshd.socket
/usr/lib/systemd/system/sshd@.service
/usr/lib64/fipscheck/sshd.hmac
/usr/libexec/openssh/sftp-server
/usr/sbin/sshd
/usr/sbin/sshd-keygen
/usr/share/man/man5/moduli.5.gz
/usr/share/man/man5/sshd_config.5.gz
/usr/share/man/man8/sftp-server.8.gz
/usr/share/man/man8/sshd.8.gz
/var/empty/sshd
[root@web ssh]# systemctl restart sshd
[root@web ssh]# echo 123|passwd --stdin code
更改用户 code 的密码 。
passwd:所有的身份验证令牌已经成功更新。
[root@web ssh]# cat /etc/ssh/sshd_config
# $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.# This sshd was compiled with PATH=/usr/local/bin:/usr/bin# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.# If you want to change the port on a SELinux system, you have to tell
# SELinux about this change.
# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER
#
Port 3312
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key# Ciphers and keying
#RekeyLimit default none# Logging
#SyslogFacility AUTH
SyslogFacility AUTHPRIV
#LogLevel INFO# Authentication:#LoginGraceTime 2m
PermitRootLogin NO
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10#PubkeyAuthentication yes# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile .ssh/authorized_keys#AuthorizedPrincipalsFile none#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
PasswordAuthentication yes# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
ChallengeResponseAuthentication no# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
#KerberosUseKuserok yes# GSSAPI options
GSSAPIAuthentication yes
GSSAPICleanupCredentials no
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no
#GSSAPIEnablek5users no# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
# WARNING: 'UsePAM no' is not supported in Red Hat Enterprise Linux and may cause several
# problems.
UsePAM yes#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation sandbox
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#ShowPatchLevel no
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none# no default banner path
#Banner none# Accept locale-related environment variables
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
AcceptEnv XMODIFIERS# override default of no subsystems
Subsystem sftp /usr/libexec/openssh/sftp-server# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
[root@web ssh]# yum install pwgen -y
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
local | 3.6 kB 00:00:00
soft | 2.9 kB 00:00:00
没有可用软件包 pwgen。
错误:无须任何处理
[root@web ssh]# yum install pwgen
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
没有可用软件包 pwgen。
错误:无须任何处理
[root@web ssh]# cd /etc/yum.repos.d
[root@web yum.repos.d]# ls
local.repo repo.tar.gz soft.repo
[root@web yum.repos.d]# wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-archive-6.repo
--2025-07-05 19:30:11-- https://mirrors.aliyun.com/repo/epel-archive-6.repo
正在解析主机 mirrors.aliyun.com (mirrors.aliyun.com)... 36.249.17.111, 36.249.17.107, 36.249.17.108, ...
正在连接 mirrors.aliyun.com (mirrors.aliyun.com)|36.249.17.111|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:712 [application/octet-stream]
正在保存至: “/etc/yum.repos.d/epel.repo”100%[================================================================================================>] 712 --.-K/s 用时 0s2025-07-05 19:30:11 (54.8 MB/s) - 已保存 “/etc/yum.repos.d/epel.repo” [712/712])[root@web yum.repos.d]# yum clean all
已加载插件:fastestmirror, langpacks
正在清理软件源: epel-archive local soft
Cleaning up list of fastest mirrors
[root@web yum.repos.d]# yum makecache
已加载插件:fastestmirror, langpacks
Determining fastest mirrors
epel-archive | 4.7 kB 00:00:00
local | 3.6 kB 00:00:00
soft | 2.9 kB 00:00:00
(1/13): epel-archive/x86_64/group_gz | 74 kB 00:00:00
(2/13): epel-archive/x86_64/updateinfo | 788 kB 00:00:00
(3/13): epel-archive/x86_64/prestodelta | 574 B 00:00:00
(4/13): epel-archive/x86_64/filelists_db | 7.9 MB 00:00:00
(5/13): local/group_gz | 153 kB 00:00:00
(6/13): local/filelists_db | 3.3 MB 00:00:00
(7/13): local/primary_db | 3.3 MB 00:00:00
(8/13): soft/primary_db | 2.4 kB 00:00:00
(9/13): soft/other_db | 1.2 kB 00:00:00
(10/13): local/other_db | 1.3 MB 00:00:00
(11/13): epel-archive/x86_64/other_db | 3.0 MB 00:00:00
(12/13): soft/filelists_db | 1.1 kB 00:00:00
(13/13): epel-archive/x86_64/primary_db | 6.1 MB 00:00:00
元数据缓存已建立
[root@web yum.repos.d]# yum install pwgen -y
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
正在解决依赖关系
--> 正在检查事务
---> 软件包 pwgen.x86_64.0.2.08-1.el6 将被 安装
--> 解决依赖关系完成依赖关系解决==========================================================================================================================================Package 架构 版本 源 大小
==========================================================================================================================================
正在安装:pwgen x86_64 2.08-1.el6 epel-archive 25 k事务概要
==========================================================================================================================================
安装 1 软件包总下载量:25 k
安装大小:38 k
Downloading packages:
pwgen-2.08-1.el6.x86_64.rpm | 25 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction正在安装 : pwgen-2.08-1.el6.x86_64 1/1验证中 : pwgen-2.08-1.el6.x86_64 1/1已安装:pwgen.x86_64 0:2.08-1.el6完毕!
[root@web yum.repos.d]# pwgen -help
Usage: pwgen [ OPTIONS ] [ pw_length ] [ num_pw ]Options supported by pwgen:-c or --capitalizeInclude at least one capital letter in the password-A or --no-capitalizeDon't include capital letters in the password-n or --numeralsInclude at least one number in the password-0 or --no-numeralsDon't include numbers in the password-y or --symbolsInclude at least one special symbol in the password-r <chars> or --remove-chars=<chars>Remove characters from the set of characters to generate passwords-s or --secureGenerate completely random passwords-B or --ambiguousDon't include ambiguous characters in the password-h or --helpPrint a help message-H or --sha1=path/to/file[#seed]Use sha1 hash of given file as a (not so) random generator-CPrint the generated passwords in columns-1Don't print the generated passwords in columns-v or --no-vowelsDo not use any vowels so as to avoid accidental nasty words
[root@web yum.repos.d]# pwgen -cnBs1 -10 1
F
[root@web yum.repos.d]# pwgen -cnB
Yeew7eef Te3ahPho muNgah4a Meiho4ah eigh7ooz reehei7c NeLeo4ai jaiyeoM4
ma4ahz3c Co9je4Le iof7Egee Ui9neeco Peihie7i Joo3oPhi ohTheo9R dotaeF7a
cie7Chei ot3Choh9 gauP3yie aiC4gez9 nu9Eejie Keic4ahh theij9bo Aif9gahn
Xa9Eizuz eechoh9X heshohy9 aech3bie Ahj3ronu uz3ooFei eequ3mai oiquaey3
maiKoo7e Am9iephi aeW4view UiyeiV9e oikah4Ch eegh7iex Voocoo7E Yo7vaeve
aahoing4 Pa4Ahj7h quach3Ru cug3aiVi oefaen7j AiNgah4e rie4ohTo aedah7ie
Aiph9Cho aiNge7uo Tiedeus3 ue9Aange ea3Leang Eraovee9 iu7oe7Xo icieWei4
eesaa9mu so9waCh3 Xi9Eeyae ya7fuun7 zeegh7Ai Eo7ieTho uuhai3Ke FicaeNg3
fie7ahvu phoow4ch iochieb3 Roo7chah of9iezae ooNae9oo eiquiPh9 Uoxoh3im
aez3Laed Taef4yah ohr9aech iP9ooFii aid3eH4h ek9ahnge Uu4soo4A Thephe7e
ohb7kahN kohL9ti3 ohp3AeJ4 iech7The uing7ohc Vi7quuCh fa7mee4p ethahM3e
cuWei3Ah Aexuvai4 ahh4eeNa uuphoa9o gaiw9UH9 aichohK3 eek3Abig PhahL4Ya
ohView7i ni3Moiye Thiech4n Aetuph4m Leiy9aer ohW9fez7 nae4Xeto aiThoh7e
pei3PoK7 pooXo4pi Niepu7fu eenae4Ne phi9Noi9 ohk7Kae3 Eek7da9a hooPo4di
oofah9ee eew3Rieh Fie9ohgu eitasu3P Phoovis3 azaegut7 oash9Vuu ohH7phah
ohy9Phuj rah9Raec eJahc9ae eeC3iere johXoh4c eiL9ohjo rephiey4 Heewoo7a
Ahph7ree su9ier4o aequo7Ei ua7AidoY ahK4ohhu Eiv7Chez dahhuph7 EiLoh3ai
tieneib9 Vohc4kae esah7ohv mu4cheiF equoar4e shoo7eif Waex4quu Xoove7Ta
fooc3eek seiviPo9 aehahz7K eiCe4joh aphuud9b eegunuC9 Ahni4ua7 ozashai7
aeweibu4 eg4Eingo feP9piw4 agh9aed9 phe7oth4 ich9Phah te7xiege Aabi7Air
[root@web yum.repos.d]# cd ~
您在 /var/spool/mail/root 中有邮件
[root@web ~]# cd /home/code
[root@web code]# ls
id_rsa.pub
[root@web code]# cat id_rsa.pub>>~/.ssh/authorized_keys
-bash: /root/.ssh/authorized_keys: 没有那个文件或目录
[root@web code]# ls
id_rsa.pub
[root@web code]# cat id_rsa.pub>>~/.ssh/authorized_keys
-bash: /root/.ssh/authorized_keys: 没有那个文件或目录
[root@web code]# cat is_rsa.pub>>~/.ssh/authorized_keys
-bash: /root/.ssh/authorized_keys: 没有那个文件或目录
[root@web code]# su - code
上一次登录:六 7月 5 20:21:19 CST 2025从 webpts/3 上
[code@web ~]$ cat id_rsa.pub>>~/.ssh/authorized_keys
[code@web ~]$