Linux网络服务命令总结_linux常用命令总结

其他工作总结 时间:2020-02-27 18:11:18 收藏本文下载本文
【www.daodoc.com - 其他工作总结】

Linux网络服务命令总结由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“linux常用命令总结”。

第4章构建LAMP网站服务平台

1:安装HTTPD软件包

root@s1 ~]# ls /media/cdrom/Server/*httpd* /media/cdrom/Server/httpd-2.2.3-6.el5.i386.rpm /media/cdrom/Server/httpd-devel-2.2.3-6.el5.i386.rpm /media/cdrom/Server/httpd-manual-2.2.3-6.el5.i386.rpm /media/cdrom/Server/system-config-httpd-1.3.3.1-1.el5.noarch.rpm [root@s1 ~]# rpm-ivh /media/cdrom/Server/httpd-2.2.3-6.el5.i386.rpm 2:[root@s1 mnt]# tar-zxvf httpd-2.2.9.tar.gz-C /usr/src/ 3:配置编译选项

[root@s1 mnt]# cd /usr/src/httpd-2.2.9/ [root@s1 httpd-2.2.9]#./configure--prefix=/usr/local/apache2--enable-so--enable-rewrite--enable-cgi--enable-suexec--with-suexec-caller=daemon--with-suexec-docroot=/usr/local/apache2/htdocs 4:编译服务程序和安装

[root@s1 httpd-2.2.9]# make && make install 5:在HTTPD.CONF文件中添加:SERVERNAME“配置行,设置WEB服务的域名 [root@s1 ~]# vi /usr/local/apache2/conf/httpd.conf ServerName SYS_MAILDIR_BASE = /mailbox

SYS_MYSQL_USER = extmail SYS_MYSQL_PASS = extmail SYS_MYSQL_DB = extmail SYS_MYSQL_HOST = localhost SYS_MYSQL_SOCKET = /tmp/mysql.sock

3.调整httpd.conf文件中的配置,并重启httpd服务

[root@s2 ~]# vi /usr/local/apache2/conf/httpd.conf

ServerName mail.benet.com NameVirtualHost 172.16.16.154

ServerName mail.benet.com

DocumentRoot /usr/local/apache2/htdocs/extmail/html/

ScriptAlias /extmail/cgi/ /usr/local/apache2/htdocs/extmail/cgi/

Alias /extmail /usr/local/apache2/htdocs/extmail/html

SuexecUserGroup postfix postfix

[root@s2 extmail]# /usr/local/apache2/bin/apachectl restart

部署Extman Web管理界面----1.安装perl支持软件包GD、File-Tail及rrdtoll绘图引擎工具 [root@s2 ~]# tar zxvf GD-2.41.tar.gz [root@s2 ~]# tar zxvf File-Tail-0.99.3.tar.gz [root@s2 ~]# cd GD-2.41 [root@s2 GD-2.41]# perl Makefile.PL [root@s2 GD-2.41]# make && make install [root@s2 GD-2.41]# cd../File-Tail-0.99.3 [root@s2 File-Tail-0.99.3]# perl Makefile.PL [root@s2 File-Tail-0.99.3]# make && make install [root@s2 File-Tail-0.99.3]# cd

[root@s2 ~]# rpm-ivh rrdtool-1.2.23-3.el5.i386.rpm [root@s2 ~]# rpm-ivh rrdtool-perl-1.2.23-3.el5.i386.rpm 2.安装并配置Extman套件

[root@s2 ~]# tar zxvf extman-0.2.5.tar.gz-C /usr/local/apache2/htdocs/ [root@s2 ~]# cd /usr/local/apache2/htdocs/ [root@s2 htdocs]# mv extman-0.2.5 extman [root@s2 htdocs]# chown-R postfix:postfix /usr/local/apache2/htdocs/extman/cgi [root@s2 htdocs]# mkdir /tmp/extman [root@s2 htdocs]# chown-R postfix:postfix /tmp/extman [root@s2 htdocs]# vi /usr/local/apache2/htdocs/extman/webman.cf SYS_CONFIG = /usr/local/apache2/htdocs/extmail/ SYS_LANGDIR = /usr/local/apache2/htdocs/extmail/lang SYS_TEMPLDIR = /usr/local/apache2/htdocs/extmail/html SYS_MAILDIR_BASE = /mailbox

SYS_MYSQL_USER = webman SYS_MYSQL_PASS = webman SYS_MYSQL_DB = extmail SYS_MYSQL_HOST = localhost SYS_MYSQL_SOCKET = /tmp/mysql.sock

3.调整httpd.conf文件中的配置,并重启httpd服务 [root@s2 htdocs]# vi /usr/local/apache2/conf/httpd.conf

ServerName mail.benet.com NameVirtualHost 172.16.16.154

ServerName mail.benet.com

DocumentRoot /usr/local/apache2/htdocs/extmail/html/

ScriptAlias /extmail/cgi/ /usr/local/apache2/htdocs/extmail/cgi/

Alias /extmail /usr/local/apache2/htdocs/extmail/html/

ScriptAlias /extman/cgi/ /usr/local/apache2/htdocs/extman/cgi/

Alias /extman /usr/local/apache2/htdocs/extman/html/

SuexecUserGroup postfix postfix [root@s2 htdocs]# /usr/local/apache2/bin/apachectl restart 显示图形日志时需要作如下配置

[root@s2 apache2]# mkdir /usr/local/mailgraph_ext [root@s2 apache2]# find /-name mailgrap_ext.pl

[root@s2 apache2]# find /-name mailgraph_ext.pl /usr/local/apache2/htdocs/extman/addon/mailgraph_ext/mailgraph_ext.pl /usr/src/extman-0.2.5/addon/mailgraph_ext/mailgraph_ext.pl [root@s2 apache2]# cp /usr/src/extman-0.2.5/addon/mailgraph_ext/mailgraph_ext.pl /usr/local/mailgraph_ext/ [root@s2 apache2]# mailgraph-init start [root@s2 apache2]# find /-name qmonitor.pl /usr/local/apache2/htdocs/extman/addon/mailgraph_ext/qmonitor.pl /usr/src/extman-0.2.5/addon/mailgraph_ext/qmonitor.pl [root@s2 apache2]# cp [root@s2 apache2]# cp /usr/src/extman-0.2.5/addon/mailgraph_ext/qmonitor.pl /usr/local/mailgraph_ext/qmonitor.pl [root@s2 apache2]# qmonitor-init start Starting queue statistics grapher: qmonitor [root@s2 apache2]# echo “/usr/sbin/mailgraph-init start” >> /etc/rc.d/rc.local [root@s2 apache2]# echo “/usr/sbin/qmonitor-init start” >> /etc/rc.d/rc.local 注意:用wendows验证时Linux系统时间需和wendows一致,否则提示验证码不正确

显示图形日志时需要作如下配置-----------------------------[root@s2 htdocs]# cd /usr/local/apache2/htdocs/extman/addon/mailgraph_ext/ [root@s2 mailgraph_ext]# mkdir /usr/local/mailgraph_ext/ [root@s2 mailgraph_ext]# cp mailgraph_ext.pl qmonitor.pl /usr/local/mailgraph_ext/ [root@s2 mailgraph_ext]#./mailgraph-init start [root@s2 mailgraph_ext]#./qmonitor-init start

下载Linux网络服务命令总结word格式文档
下载Linux网络服务命令总结.doc
将本文档下载到自己电脑,方便修改和收藏。
点此处下载文档

文档为doc格式

    热门文章
      整站推荐
        点击下载本文