当编译完成,启动完成Apache后发现,Apache进程立马僵尸了,状态如下: localhost:/data/app/httpd-2.4.26/bin # ps aux |grep http root.../httpd: symbol lookup error: ./httpd: undefined symbol: apr_skiplist_init 一直在报如上错误。....1 (0x00007f05eed40000) libaprutil-1.so.0 => /data/app/apr-util-1.5.4/lib/libaprutil-1.so.0 (0x00007f05eeb1d000...) libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007f05ee8fa000) libapr-1.so.0 => /usr/lib64/libapr.../usr/lib64/libapr-1.so.0.3.0 file /usr/lib64/libapr-1.so.0.3.0 is not owned by any package 如上可知是个软链接
/usr/sbin/httpd.event /usr/sbin/httpd.worker 使用rpm方式查看包的帮助文件 # rpm -qd httpd 启动脚本:.../etc/rc.d/init.d/httpd 日志文件目录: /var/log/httpd access_log:访问日志 error_log: 错误日志 站点文档目录...00:00:00 /usr/sbin/httpd apache 6416 6413 0 09:40 ?...00:00:00 /usr/sbin/httpd apache 6417 6413 0 09:40 ?...Object 模块目录: /etc/httpd/modules: 符号链接文件 /usr/lib64/httpd/modules 模块的查看
复制初始化文件并将Apache设置为启动 cp build/rpm/httpd.init /etc/init.d/httpd chmod 755 /etc/init.d/httpd chkconfig...–add httpd chkconfig –level 35 httpd on 创建一个符号链接 ln -s /usr/local/apache/ httpd cd /usr/sbin/ ln -fs.../usr/local/apache/bin/httpd ln -fs /usr/local/apache/bin/apachectl cd /var/log rm -rf httpd/ /etc/init.d.../httpd start 启动/停止httpd服务 service httpd restart service httpd start /usr/local/apache/bin/apachectl start.../etc/init.d/httpd stop /etc/init.d/httpd restart 使用pgrep查找启动的进程 pgrep httpd Apache配置文件 vi /usr/local
-module -avoid-version mod_pony.lo /usr/lib64/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib64/apr-1.../build/libtool' mod_pony.la /usr/lib64/httpd/modules /usr/lib64/apr-1/build/libtool --mode=install cp...mod_pony.la /usr/lib64/httpd/modules/ libtool: install: cp .libs/mod_pony.so /usr/lib64/httpd/modules...: cp .libs/mod_pony.a /usr/lib64/httpd/modules/mod_pony.a libtool: install: chmod 644 /usr/lib64/httpd...="/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/sbin" ldconfig -n /usr/lib64/httpd/modules ---------
-rpath / usr / lib64 / httpd / modules -module -avoid-version mod_pony.lo /usr/lib64/httpd/build/instdso.sh...SH_LIBTOOL ='/ usr / lib64 / apr-1 / build / libtool'mod_pony.la / usr / lib64 / httpd / modules / usr.../ mod_pony.lai /usr/lib64/httpd/modules/mod_pony.la libtool:install:cp .libs / mod_pony.a /usr/lib64/...:ranlib /usr/lib64/httpd/modules/mod_pony.a libtool:finish:PATH =“/ usr / local / sbin:/ bin:/ sbin:/...usr / bin:/ usr / sbin:/ sbin”ldconfig -n / usr / lib64 / httpd / modules --------------------------
/httpd.conf 编辑内容,先根据终端提示的信息来更改(brew info php),再根据网上帖子更改: 6.1、开启php,找到并取掉注释符号#号: LoadModule...,可命令,启动,查看错误,并解决 sudo /usr/sbin/httpd -k start 10、重启Apache sudo apachectl restart 11、终端查看php版本: mac系统自带的...php /usr/bin/php -v 自己安装的php php-fpm -v ,php -v 自带的php-fpm在/usr/sbin目录下, 通过brew安装的php把php-fpm放到了/usr.../local/sbin目录, 默认启动PHP-fpm时系统会找到/usr/sbin目录的文件,他的默认php-fpm.conf为/private/etc目录,默认上不存在的 which php-fpm.../usr/local/sbin/php-fpm 解决php-fpm -v 版本不一致:export PATH=/usr/local/sbin:/usr/local/bin:$PATH Apache
/httpd /etc/sysconfig/httpd /etc/httpd /var/log/httpd /var/cache/httpd /usr/sbin/httpd /usr/lib64/httpd...2. apache服务的启动与关闭 # 启动服务 $ sudo systemctl start httpd.service # 查看服务 $ ps aux | grep httpd root...Ss 15:46 0:00 /usr/sbin/httpd -DFOREGROUND apache * 0.0 0.0 220444 2492 ?...S 15:46 0:00 /usr/sbin/httpd -DFOREGROUND apache * 0.0 0.0 220444 2488 ?...S 15:46 0:00 /usr/sbin/httpd -DFOREGROUND # 停止服务 $ sudo systemctl stop httpd.service # 重启服务 $
@HTTPD=/usr/sbin/httpd.worker@g" /etc/sysconfig/httpd # grep -vE "^#|^$" /etc/sysconfig/httpd...HTTPD=/usr/sbin/httpd.worker ###从下面的提示中,我们需要使用php5zts模块 # /etc/init.d/httpd restart Stopping...00:00:00 /usr/sbin/httpd.worker apache 10341 10339 0 04:35 ?...00:00:00 /usr/sbin/httpd.worker apache 10342 10339 0 04:35 ?.../lib64/php/modules/mysql.so /usr/lib64/php/modules/mysqli.so /usr/lib64/php/modules/pdo_mysql.so
/home 普通用户的宿主目录 /root 管理员的宿主目录 /boot linux启动所需的文件...缺省值是跟随符号链接,将文件复制到符号链接指向处。 -i 交互式模式。.../bin ├── boot ├── data ├── dev ├── etc ├── home ├── lib -> usr/lib ├── lib64 -> usr/lib64 ├── media ├...── mnt ├── opt ├── proc ├── root ├── run ├── sbin -> usr/sbin ├── srv ├── sys ├── tmp ├── usr └── var.../etc/httpd.conf lrwxrwxrwx. 1 root root 26 May 2 02:47 /etc/httpd.conf -> /etc/httpd/conf/httpd.conf
三、whereis命令的基本使用3.1 查找命令的位置查找 httpd的位置,包括其二进制文件、源码文件和手册页。...[root@openEuler ~]# whereis httpdhttpd: /usr/sbin/httpd /usr/lib64/httpd /etc/httpd /usr/share/httpd.../usr/share/man/man8/httpd.8.gz3.2 仅查找二进制文件可以使用 -b 选项,仅查找二进制文件。...[root@openEuler ~]# whereis -b httpdhttpd: /usr/sbin/httpd /usr/lib64/httpd /etc/httpd /usr/share/httpd3.3...仅查找手册页可以使用 -m 选项,查看httpd的手册页。
基本格式:find path expression 1.按照文件名查找 *(1)find / -name httpd.conf #在根目录下查找文件httpd.conf,表示在整个硬盘查找 ...-s:不显示不存在或无匹配文本的错误信息。 -v:显示不包含匹配文本的所有行。 pattern正则表达式主要参数: \: 忽略正则表达式中特殊字符的原有含义。 .../src #显示/usr/src目录下的文件(不含子目录)包含magic的行 *(5)grep -r magic /usr/src #显示/usr/src目录下的文件(包含子目录)包含magic...符号链接(软链接):是另外一个文件,相当于windows下的快捷方式. 产出源文件之后,创建的符号链接就没法用了....:/bin/sync 7 shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown .....
$ sudo systemctl enable httpd 上面的命令相当于在/etc/systemd/system目录添加一个符号链接,指向/usr/lib/systemd/system里面的httpd.service...B/sec" CGroup: /system.slice/httpd.service ├─4349 /usr/sbin/httpd -DFOREGROUND...├─4350 /usr/sbin/httpd -DFOREGROUND ├─4351 /usr/sbin/httpd -DFOREGROUND ├─4352.../usr/sbin/httpd -DFOREGROUND ├─4353 /usr/sbin/httpd -DFOREGROUND └─4354 /usr/sbin...execstart2 post1 post2 所有的启动设置之前,都可以加上一个连词号(-),表示"抑制错误",即发生错误的时候,不影响其他命令的执行。
/local/httpd/bin/apachectl 执行程序:/usr/local/httpd/bin/httpd 访问日志: /usr/local/httpd/log/access_log 错误日志...: /usr/local/httpd/log/error_log 四、优化执行路径 通过源码安装的httpd服务,程序路径并不在默认的搜索路径中,为了使该服务在使用时更加方便,可以为相关程序添加符号链接...Executing /sbin/chkconfig httpd --level=5 enabled //查看httpd服务是否为开机自启动,enabled为开机自启动 2)建立[service].service...客户端就已经可以访问了,但是我们来认识一些基本的配置: 一、配置并启动服务 1.配置httpd服务 编辑httpd服务的主配置文件httpd.conf,查找到配置项“ServerName”去除前面“#”...错误日志文件中每行对应一条错误记录,记录了发生错误的日期和时间、错误事件类型、错误时间的内容描述等。
/configure加一个参数: --with-apxs2=/usr/sbin/apxs 这是什么?...Q4: 启动apachce出现错误:libphp5.so: cannot restore segment prot after relock: Permission Denied A: 临时禁用SELinux...Q5: 启动apache出现错误: Starting httpd: httpd: Syntax error on line 206 of /etc/httpd/conf/httpd.conf: Cannot...=/usr/lib64 ....=/usr/lib64 执行.
/local/php/lib/php.ini 配置apache cd /usr/local/apache2/conf vim httpd.conf 查找字符串AddType,并增加 AddType...application/x-httpd-php .php .php3 .htm .phtml .php4 查找字符串DirectoryIndex,并修改为 DirectoryIndex index.html.../local/apache2/conf/httpd.conf 启动httpd服务 ?...vim /etc/init.d/gmetad 修改:GMETAD=/usr/sbin/gmetad-->GMETAD=/usr/local/ganglia/sbin/gmetad vim.../sbin/gmond-->GMOND=/usr/local/ganglia/sbin/gmond .
into server: /application/apache2.4.6/modules/mod_deflate.so: undefined symbol: inflateEnd 未定义的符号:inflateEnd...问题处理办法: 1、首先检查了httpd.conf和httpd-vhosts.conf里面的配置,均无错误;然后又查看了编译mod_deflate时的输出信息,也没有提示错误。...如果是64操作系统就在LoadModule deflate_module modules/mod_deflate.so这行的上一行添加LoadFile /usr/lib64/libz.so即可。...CFLAGS: 指定头文件(.h文件)的路径,如:CFLAGS=-I/usr/include -I/path/include。...用法:LDFLAGS=-L/usr/lib -L/path/to/your/lib。每安装一个包都几乎一定的会在安装目录里建立一个lib目录。
:/etc/rc.d/init.d/httpd 错误目录:/var/www/error ,服务器设定错误,请求的资源错误或浏览器访问出现错误等错误文件的存储目录 CGI目录: /var/www/cgi-bin...Listen端口:80/tcp ,443/tcp 命令执行文件:/usr/sbin/apachectl ,/usr/sbin/httpd,/usr/bin/htpasswd PID文件:/var/run.../httpd.conf /etc/httpd/run /etc/rc.d/init.d/httpd /etc/sysconfig/httpd /usr/sbin/apachectl /usr/sbin/...htcacheclean /usr/sbin/httpd /usr/sbin/httpd.event /usr/sbin/httpd.worker /var/run/httpd /var/www/cgi-bin.../local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin [root@VM apache]# ln -sv /usr/local/apache/include
: httpd-2.4.6-99.el7.centos.1.x86_64 --> Processing Dependency: libaprutil-1.so.0()(64bit) for package...4.2 启动httpd服务 启动httpd服务并使开机自启 systemctl enable --now httpd 检查httpd服务状态 [root@jeven yum.repos.d]# systemctl...├─45406 /usr/sbin/httpd -DFOREGROUND ├─45407 /usr/sbin/httpd -DFOREGROUND...├─45408 /usr/sbin/httpd -DFOREGROUND ├─45409 /usr/sbin/httpd -DFOREGROUND ├─45410.../usr/sbin/httpd -DFOREGROUND └─45411 /usr/sbin/httpd -DFOREGROUND Jun 22 16:39:51 jeven