下载源码包,MySQL(root用户)密码忘记重置

101道EnclaveHCE考题和详细答案(七卡塔 尔(阿拉伯语:قطر‎,101道rhce考题答案

ftp服务、Nfs服务和Nis服务

环境:rhel6.4 iptables and selinux disables

1)

**

为了让有安插考红帽证实和绸缪张开运维专门的学问的人更系统的上学,小编从网络筛选了101道TucsonHCE真题和答案,考虑到每日学习量相当的大,所以每一天采摘10道题进行推送,直至推送完毕,希望对大家有用,多谢。

61、1、创建三个分区,大小为300M,挂在到/common,并使之永世生效
#fdisk /dev/sda
p→n→+300M→w
#partprobe
#mkfs.ext3 /dev/sda5
#mkdir /common
#mount /dev/sda5 /common
#df -TH
#vim /etc/fstab
/dev/sda5 /common ext3 defaults 0 0

假令你的分区是/dev/sda5
方法2:

  1. e2label /dev/sda5 common
  2. echo -e "LABEL=common t /common t ext3 t defaults t 1 1" >>/etc/fstab
    方法3:
    echo "mount /dev/sda5 /common" >>/etc/rc.local

62、配置 NTP顾客端使其能够与 server1.example.com服务器进行互连网时间协同

开机自运行
                            RHCT
您必要在3.5时内做到有着试题,3.5钟头后,系统将自动关机!
您会小心到有个别条件钦赐某一个劳务对my133t.org 域无效,那个域中的全数的种类在172.25.0.0/255.255.0.0网段中,同不时候这一个网段中的全数主机也在my133t.org域内;example.com域中主机在172.24.0.0/255.255.0.0网段内!
假若急需设置软件,您能够通过YUM完毕,YUM源路线为:
http://server1.example.com/pub/server
在您进行考察以前,您首先要拿到权限,并设置您系统的密码为:rW9ySX
布置静态地址音信:
IP地址为:172.24.0.X(在那之中X为本机编号卡塔尔
子网掩码:255.255.0.0
网关;172.24.254.254
DNS:172.24.254.254
加入
vim /etc/hosts
172.24.X.X  stationX.example.com  stationX

64、配置 apache设想主机,满足以下供给
a.DocumentRoot路径为/var/www/virt
b.从服务器
cd /var/www/virt/
wget
vim /etc/httpd/conf/httpd.conf
改过985行虚目录
ServerAdmin [email protected]
    DocumentRoot /var/www/virt
    ServerName www13.example.com
DirectoryIndex virt.html

/etc/init.d/httpd restart

c.网址域名叫 station编号)
d.允许客户 usr-2能够在/var/www/virt文件夹中成立文件
cd /var/www/
setfacl -m u:usr-2:rwx virt/
检查实验su到usr-2 在virt下开创文件

65、配置 Squid代理服务器,满足以下供给
yum install squid -y
a.改善 Squid监听端口为 8080
vim /etc/squid/squid.conf
921行改为 8080
b.只同意本机甚至 example.com域内的所有主机访谈本机 Squid服务
在574行下加风姿浪漫行acl example src 172.24.0.0/255.255.255.0
在637行下加豆蔻梢头行http_access allow example(注意不要加到DENY下面卡塔 尔(阿拉伯语:قطر‎
/etc/init.d/squid restart
chkconfig squid on
检验在浏览器里安装代理检查评定

66、配置 apache服务,满意以下必要
yum install httpd-* -y
a.通过 stationx.example.com能够访问本机 apache服务(x为当前 station编号)
cd /var/www/html/
wget
b.主页路线为
vim /etc/httpd/conf/httpd.conf
修改985行虚目录
ServerAdmin [email protected]
    DocumentRoot /var/www/html
    ServerName station13.example.com
DirectoryIndex test.html
/etc/init.d/httpd restart

67、推却 hack.org域内的保有主机访谈本机的 ftp服务
vim /etc/hosts.deny
vsftpd:172.25.0.0/255.255.0.0

68、配置 ftp服务
yum install vsftpd –y
/etc/init.d/vsftpd restart
chkconfig vsftpd on

59、配置 IMAPS邮件加密服务,满意以下必要
vim /etc/dovecot.conf
91  92 行去掉注释
a.IMAPS只为 example.com域内的装有主机提供服务 ,IMAPS所选取的电子证书消息如下 :
cd /etc/pki/tls/certs
make dovecot.pem
按上面需求做dovecot.pem
b.使用暗中认可的 country.state.locality.organization
c.Organizational unit设置为 rhce
c.Common Name为 stationx.example.com(x为当前 station编号)
才.邮件地址为 [email protected](x为当前 station编号)
谈到底复制dovecot.pem 到/etc/dovecot 91 92行的目录里面
cp dovecot.pem /etc/pki/dovecot/private/
cp dovecot.pem /etc/pki/dovecot/certs/
/etc/init.d/dovecot restart
检测mutt -f imaps://[email protected]

69、推却 hack.org域内的兼具主机访问本机的 pop3服务
iptables -A INPUT -p tcp -s 172.25.0.0/16 --dport 110 -j REJECT
iptables -A INPUT -p udp-s 172.25.0.0/16 --dport 110 -j REJECT
iptables -A INPUT -p tcp -s 172.25.0.0/16 --dport 993 -j REJECT
/etc/init.d/iptables save

70、配置本机 SMTP服务,使其能够接纳本机以致外部的邮件
yum install sendmail-* -y
yum install m4 –y(大概默许安装好的卡塔尔国
cd /etc/mail
vim sendmail.mc
116 行 127.0.0.1 改成0.0.0.0
m4 sendmail.mc>sendmail.cf
vim local-host-names
添加 stationX.example.com
/etc/init.d/sendmail restart
测试
mutt -f imap://[email protected] 收发邮件测验

Linux云计算无需付费课程火热开启,5天免费**运营干货内容无需付费听,点击文末“阅读原版的书文”**就可以无偿听运营课**速速来抢~~~~

**PS:记得查收作者送你的无偿厚礼包呦~**

福利 | 风流倜傥万多套PPT模板等你无偿来拿!无条件领取!


**免费送 | 1000多套简历模板无偿拿,附赠简历制作教程!**

无需付费领 | 《Shell脚本 100例》E-BOOK无偿拿,运转必备干货~

▼▼点击【开卷原著】,无偿听5天Linux运营干货分享课,抢手开讲中,速来抢!

        

一.升级postfix,包含mysql,sasl,tls
1,安装相应软件:
yum install -y db*devel make gcc mysql-devel mysql-sever cyrus*
下载源码包;
postfix-2.10.2.tar.gz
tar zxf postfix-2.10.2.tar.gz
cd postfix-2.10.2
2,查占卜应软件路线:
rpm -ql mysql-devel
rpm -ql cyrus-sasl-devel-2.1.23-13.el6_3.1.x8_64
less MYSQL_README
less TLS_README
less SASL_README
3.编译makefile
make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS' 'AUXLIBS=-L/usr/lib64/mysql -lmysqlclient -lz -lm -L/usr/lib64 -lsasl2 -lssl -lcrypto'
4.升级:
make update
5,检测:
postconf -m
postconf -a
postconf -A
6.翻看版本:
postconf mail_version

yum -y install httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-mcrypt php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc mysql-connector-odbc mysql-devel libdbi-dbd-mysql

ftp服务

二. 安装MUA,包括dovecot,
yum install -y dovecot dovecot-mysql

yum install vsftpd

安装vsftpd服务 :#yum  install vsftpd* -y

三. 安装webmail, 包含extmail,extman
下载源码包:
extman-1.1.tar.gz
extmail-1.2.tar.gz

 

查看vsftdd安装 :#getsebool –tl |grep ftp

mkdir /var/www/extsuite
tar zxf extman-1.1.tar.gz -C /var/www/extsuite/
tar zxf extmail-1.2.tar.gz -C /var/www/extsuite/
cd /var/www/extsuite/
mv extmail-1.2/ extmail
mv extman-1.1/ extman

2)

       佚名顾客

四.安装mysql图形化学工业具
yum install -y http php php-mysql
下载phpMyAdmin-3.4.0-all-languages.tar.bz2
tar jxf phpMyAdmin-3.4.0-all-languages.tar.bz2
cp -r phpMyAdmin-3.4.0-all-languages /var/www/html/phpadmin
cd /var/www/html/phpadmin/
cp config.sample.inc.php config.inc.php
vim config.inc.php
{
$cfg['blowfish_secret'] = 'westos';
}
/etc/init.d/httpd start

MYSQL 端口3306

#vi /etc/vsftpd/vsftpd.conf

五.配置:
1.postfix
vim main.cf
{
inet_protocols = ipv4
inet_interfaces = all
}
2.mysql
/etc/init.d/mysqld start
chkconfig mysqld on
mysql_secure_installation --> westos
将extmail 的extmail.sql和init.sql导入数据库
vim init.sql{修改postmaster的密码:postmaster;root的密码:westos}
mysql -uroot -pwestos < extmail.sql
mysql -uroot -pwestos < init.sql
与postfix链接
postconf -e virtual_uid_maps=static:800
postconf -e virtual_gid_maps=static:800
postconf -e virtual_mailbox_base=/home/email/

MySQL(root客户)密码忘记重新载入参数
mysql YUM 安装路线rpm -ql mysql (usr/bin)

  去#号anon_mkdir_write_enable=YES

3.postfix,dovecot.extmail与mysql关联

cd /etc/dovecot/
vim conf.d/10-auth.conf
{
!include auth-sql.conf.ext
}
在/usr/share/doc/dovecot-2.0.9/example-config

cp dovecot-sql.conf.ext /etc/dovecot/
cd /etc/dovecot
vim dovecot-sql.conf.ext
{
driver = mysql
connect = host=localhost dbname=extmail user=extmail password=extmail
default_pass_scheme = plain
password_query =
SELECT username, domain, password
FROM mailbox WHERE username = '%u'
user_query = SELECT maildir, 800 AS uid, 800 AS gid FROM mailbox WHERE username = '%u'
}
vim /etc/dovecot/dovecot.conf
{ listen = * }

添加email用户,id=800
useradd -u 800 email
vim conf.d/10-mail.conf
{
mail_location = maildir:/home/email/%d/%n/Maildir
first_valid_uid = 800

方法:

  其后增加anon_other_write_enable=YES

}

extmail
cp webmail.cf.default webmail.cf

webmail主配文件
vim /var/www/extmail/webmail.cf
{
SYS_AUTH_TYPE = mysql
SYS_MAILDIR_BASE = /home/email
SYS_CRYPT_TYPE = plain
SYS_MYSQL_USER = extmail
SYS_MYSQL_PASS = extmail
SYS_MYSQL_DB = extmail
SYS_MYSQL_HOST = localhost
SYS_MYSQL_SOCKET = /var/lib/mysql/mysql.sock

# /etc/init.d/mysqld stop

  去#号anon_upload_enable=YES

}

cd /var/www/extman/docs
cp mysql_virtual_alias_maps.cf /etc/postfix/mysql-alias.cf
cp mysql_virtual_domains_maps.cf /etc/postfix/mysql-domains.cf
cp mysql_virtual_mailbox_maps.cf /etc/postfix/mysql-mailboxs.cf

cd /var/www/extsuite/extmail/
http的设想主机

less INSTALL
vim /etc/httpd/conf/httpd.conf
{
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /var/www/html
ServerName server88.example.com
</VirtualHost>

<VirtualHost *:80>
ServerName mail.extmail.org
DocumentRoot /var/www/extsuite/extmail/html/
ScriptAlias /extmail/cgi /var/www/extsuite/extmail/cgi
Alias /extmail /var/www/extsuite/extmail/html
SuexecUserGroup email email
</VirtualHost>
}
chown -R email.email cgi/
/etc/init.d/httpd restart

在真机上:vim /etc/hosts
{
192.168.0.12 mail.extmail.org

# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &

重启服务:/etc/init.d/vsftpdrestart

}

/etc/init.d/httpd restart
签到mail.extmail.org会冒出有的主题素材:撤除:
yum install perl-CGI -y
下载:Unix-Syslog-1.1.tar.gz
tar zxf Unix-Syslog-1.1.tar.gz
cd Unix-Syslog-1.1
yum install perl-ExtUtils-MakeMaker -y
perl Makefile.PL

# mysql -u root mysql

                或Service vsftpd restart

make install

extman
cd ../extman/
webman的主配文件
vim webman.cf
{
SYS_MAILDIR_BASE = /home/email
SYS_SESS_DIR = /tmp
SYS_CRYPT_TYPE = plain
}
http的设想主机
vim /etc/httpd/conf/httpd.conf
{
<VirtualHost *:80>
DocumentRoot /var/www/html
ServerName server88.example.com
</VirtualHost>

<VirtualHost *:80>
ServerName mail.extmail.org
DocumentRoot /var/www/extsuite/extmail/html/
ScriptAlias /extmail/cgi /var/www/extsuite/extmail/cgi
Alias /extmail /var/www/extsuite/extmail/html
*******************
ScriptAlias /extman/cgi /var/www/extsuite/extman/cgi
Alias /extman /var/www/extsuite/extman/html
*******************
SuexecUserGroup email email
</VirtualHost>
}

mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';

开创目录 :mkdir /pub

chown -R email.email cgi/

增添验证码:
下载perl-GD-2.45-1.el6.rfx.x86_64.rpm
yum localinstall perl-GD-2.45-1.el6.rfx.x86_64.rpm
在webman.cf中装置验证码的尺寸:

mysql> FLUSH PRIVILEGES;

改其属主/组为ftp :chmod ftp:ftp /pub

{SYS_CAPTCHA_LEN = 4}

由此/var/www/extsuite/extman/daemon下的cmdserver脚本,可是webman的首页得到系统音信
加盟开机运行:
vim /etc/rc.local

mysql> quit

改bool值:setsebool –P allow_ftpd_ano+n_writeon

{/var/www/extsuite/extman/daemon/cmdserver & }

给webman网页加多Graph Log
yum install rrdtool
下载rrdtool-perl-1.3.8-6.el6.x86_64.rpm
yum localinstall rrdtool-perl-1.3.8-6.el6.x86_64.rpm
cd /var/www/extsuite/extman/addon/
cp -r mailgraph_ext/ /usr/local/
cd /usr/local/mailgraph_ext/
less README
./mailgraph-init start
下载File-Tail-0.99.3.tar.gz
tar zxf File-Tail-0.99.3.tar.gz
cd File-Tail-0.99.3
perl Makefile.PL
yum list perl-Time-HiRes
yum install perl-Time-HiRes.x86_64 -y
perl Makefile.PL
make install
cd /usr/local/mailgraph_ext/
./mailgraph-init restart
投入开机运维
vim /etc/rc.local

# /etc/init.d/mysqld restart

查看bool值:getsebool –a |grep ftp

{usr/local/mailgraph_ext/mailgraph-init restart}

自然有意思味的话你换能够加上mailscanner和spamassassin达成行反革命垃圾和反病毒邮件

正文出自 “linux” 博客,请必需保留此出处

iptables and selinux disables 风流罗曼蒂克.进级postfix,蕴含mysql,sasl,tls 1,安装相应软件: yum install -y db*devel make gcc mysql-devel mysql-sever cyrus* 下载...

# mysql -uroot -p

改善上下文:chcon –宝马X3–t public_content_rw_t  /var/ftp/pub

Enter password: <输入新设的密码newpassword>

重启服务:/etc/init.d/vsftpdrestart

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'rootpasswd' WITH GRANT OPTION; ///输入这段指令并回车的前面同意持有用root客商相同的时间输入rootpasswd密码的主机登陆该mysql Server 纵然将'%'换到'10.1.1.1'那么唯有10.1.1.1的主机能够登录.

                或Service vsftpd restart

 

查看:ll –Z

chkconfig mysqld on

   本地客户限定上传下载速度

 

创造用户:useraddaaa


                Passwd aaa

乱码难题

                     123

vi /etc/sysconfig/i18n
将内容改为

修改bool值:setsebool –P allow_home_dir on

LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="lat0-sun16"

#vi /etc/vsftpd/vsftpd.conf


       在local_umask=22后添加user_config_dir=/etc/vsftpd

设置防火墙 (略)

界定顾客aaa的快慢:echo “local_max_rate=1024”>> /etc/vsftpd/aaa   

 

重启服务:/etc/init.d/vsftpdrestart


                或Service vsftpd restart

设置Apache 端口80

              设想客户

service httpd start

#vi /etc/vsftpd/vsftpd.conf

chkconfig httpd on

       Anonymous_wnable=NO关闭无名客户

 

       添加:guest_enable=YES


                Guest_username=vtest

 

在cd/etc/vstpd下创建

关闭SELinux

       #Vivuser

setenforce 0

              User1用户名

 

              123密码

永世防止:

              User2

更正/etc/selinux/config文件中的SELINUX="" 为 disabled ,然后重启。

              123


db_load –T –t hash –f vuser /etc/vsftpd/vuser.db

配置VSFTPD 端口21 20 50000-60000

修正权限:chmod 600/etc/vsftpd/vuser.db

service vsftpd start

#vi /etc/pam.d/vsftpd

chkconfig vsftpd on

       内容全方位用#注释

vi /etc/vsftpd/vsftpd.conf

加 auth        required      pam_userdb.so db=/etc/vsftpd/vuser

 

  account     required      pam_userdb.so db=/etc/vsftpd/vuser

留意复制文件时 末尾的空格是不必要的!

支持进度:useradd –s/sbin/nologin vtest

 

大范围文件:touch/home/vtest/vtest

anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
#chown_uploads=YES
#chown_username=whoever
#xferlog_file=/var/log/xferlog
#xferlog_std_format=YES
#idle_session_timeout=600
#data_connection_timeout=120
#nopriv_user=ftpsecure
#async_abor_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
#ftpd_banner=Welcome to blah FTP service.
#deny_email_enable=YES
#banned_email_file=/etc/vsftpd/banned_emails

改良权限:chmod 704/home/vtest

chroot_local_user=YES
#chroot_list_enable=YES

重启服务:/etc/init.d/vsftpdrestart

#chroot_list_file=/etc/vsftpd/chroot_list
#ls_recurse_enable=YES
listen=YES
#listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
# anon_root=/var/ftp
# local_root=/var/ftp_private
pasv_max_port=60000
pasv_min_port=50000
anon_umask=000
anon_world_readable_only=NO
anon_other_write_enable=YES

                或Service vsftpd restart

 

                                          Nfs服务

chmod 755 /var/ftp/

服务器上:

chmod 777 /var/ftp/pub

       创造目录:mkdir /filepub

 

#vi /etc/exports

万黄金时代要运用linux本人的客户登陆

   /filepub      192.168.1.0/24(rw,no_root_squash)服务器ip

能够增添客户 如 useradd ftpuser -M -d /var/ftp/pub

重启服务:/etc/init.d/nfs restart

界定客商目录的话设置

再也输入配置文件:exportfs -rv

chroot_local_user=YES

 

 

顾客端访问nfs


showmount –e 192.168.1.111(服务器ip)

SENDMAIL 端口25

mount.nfs 192.168.1.111:/filepub /mnt

yum -y install sendmail-cf.i* sendmail-doc.i*

df –h /mnt 查询

 

在/mnt下的文本正是服务器上的文本

首先编辑/etc/mail/sendmail.mc文件,去掉前边的讲明

翻看时服务器上在/filepub中,顾客端在/mnt中

TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

                                 Nis服务

 

Nis服务器上:

将DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl 的127.0.0.1 改为0.0.0.0

#vi /etc/hosts

执行

192.168.0.100(服务器ip)          abc.com               abc

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

查看ping abc.com

最终在/etc/mail/local-host-names文件中增添上本机的域名

Domainname abc,com

chkconfig sendmail on

eho “domainname abc.com” >> /etc/rc.local

 

#vi /etc/sysconfig/network

打开saslauthd服务

       NIS_DOMAIN=abc.com

service saslauthd start

安装nis

chkconfig saslauthd on

yum install yp* -y

 

#vi /etc/ypserv.conf

vi /etc/mail/access ; 参与本机域名 的 RELAY

       最后加192.168.0.0/24     : *         :*     : none


增进客户useradd aaa

Dovecot常规配置   端口110

               Passwd 123

yum -y install dovecot.i*

提拔为域户:/usr/lib/yp/ypinit –m

vi /etc/dovecot.conf,只需裁撤改行注释 protocols=imap imaps pop3 pop3s

启航服务

service dovecot restart

       /etc/init.d/ypserv start

chkconfig dovecot on

       /etc/init.d/yppasswddrestart


将host 文件发给

squirrelmail

#vi /etc/exports

yum install squirrelmail

  /home192.168.1.0/24(rw,no_root_squash)服务器ip

再一次啟動 Apache:
# /etc/init.d/httpd restart

重启服务:/etc/init.d/nfs restart

 

双重输入配置文件:exportfs -rv

/usr/share/squirrelmail/config/conf.pl

 

 

客户端

Main Menu –
1.  Organization Preferences
2.  Server Settings
3.  Folder Defaults
4.  General Options
5.  Themes
6.  Address Books
7.  Message of the Day (MOTD)
8.  Plugins
9.  Database

vi /etc/hosts

  1. Languages

       192.168.0.100         abc.com           abc

D.  Set pre-defined settings for specific IMAP servers

vi /etc/yp.conf

C   Turn color off
S   Save data
Q   Quit

       domain    abc.com     server      abc.com

Command >>  D

nisdomainname abc.com

D->courier->S->Q

echo “nisdomainname abc.com” >> /etc/rc.local

 

echo  “NIS_DOMAIN=abc.com”>> /etc/sysconfig/network

语言:10->zh_CN

改善顾客端认证格局nis

Poppassd 安裝程序

先是安装gcc

yum install gcc

  

cd /usr/share/squirrelmail/plugins

wget http://www.squirrelmail.org/plugins/change_pass-2.7a-1.4.x.tar.gz

tar -zxvf change_pass-2.7a-1.4.x.tar.gz

/usr/share/squirrelmail/config/conf.pl

選 8.  Plugins -> 將 Available Plugins: 內的 change_pass 加入模組 -> 選 S 儲存設定 -> 選 Q 後離開

service httpd restart

 

cd /usr/share/squirrelmail/plugins/change_pass
mkdir poppassd
cd poppassd
wget ftp://netwinsite.com/pub/poppassd/poppassd.c

gcc poppassd.c -o poppassd –lcrypt

 

vi /etc/services

:
# (due to a bug in inetd the 3com-tsmux line is disabled)
3com-tsmux      106/tcp         poppassd   去掉此行注释
#3com-tsmux     106/udp         poppassd
:

 

cd /etc/xinetd.d/
vi poppassd 

 

加入:

service poppassd
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/share/squirrelmail/plugins/change_pass/poppassd/poppassd
        server_args     =
        log_on_failure  += USERID
        disable         = no
}

 

service xinetd restart  

如未安装的话需要安装xinetd 

yum install xinetd

service xinetd restart

chkconfig xinetd on

 

测试:

telnet localhost 106

[root@localhost xinetd.d]# telnet localhost 106
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
200 localhost.localdomain poppassd v1.6a hello, who are you?

#vi /etc/nsswitch.conf

改 passwd  file nis

  chadow  file nis

   group   file nis

 

开发银行服务:/etc.init.d/ypbind start

echo “/etc.init.d/ypbind start” >> /etc/rc.local

echo “nisdomainname abc.com ” >> /etc/rc.local

chkconfig ypbind on

调用host文件

showmount –e 192.168.0.100(服务器ip)

mount.nfs 192.168.0.100:/home /home

df –h /mnt 查询

echo “mount.nfs 192.168.0.100:/home /home ”>> /etc/rc.local

                            samba服务

windows上分享文件abc,linux访谈

window共享后查询分享:net share

linux上

查看:smbclient –L //192.168.1.111(     windows ip) –U administrator

展开文件:mount.cifs //192.168.1.111/abc /mnt –ousername=administrator

本文由必威发布于必威-运维,转载请注明出处:下载源码包,MySQL(root用户)密码忘记重置

TAG标签:
Ctrl+D 将本页面保存为书签,全面了解最新资讯,方便快捷。