CentOS-min 操作记录(4)

来源:互联网 发布:java方法的重载 编辑:程序博客网 时间:2024/05/16 14:33


1.配置一个邮箱服务

rpm -qa|grep mailx //检查一下有没有,有的话卸载了

貌似版本要12.4

安装mailx

yum -y install mailx

vi /etc/mail.rc

set from=demo@sina.com smtp=smtp.sina.com

set smtp-auth-user=demo smtp-auth-password=demopass smtp-auth=login

echo Test | mail -s "demo test" demo@sina.com

成功


修改/etc/rc.d/rc.local 设置开机启动脚本

修改/etc/profile 设置登录脚本

2.nginx-root和apache-root配置在同一目录

vim /etc/nginx/conf.d/default.conf

修改 root


我改为了apache的解析目录

并且在index加入了index.php放在最高优先级

3.配置可以查看文件目录

(当前目录无index.php index.html index.htm)

为了可以看到文件目录


vim /etc/nginx/nginx.conf

加入autoindex


0 0
原创粉丝点击