通常我们的网站拥有多个域名,我们需要配置二级域名时该如何设置呢
我这里介绍使用apache的http.conf配置,配置如下两步:
1、配置http.conf;
vim /etc/httpd/conf/httpd.conf
在文件的最后追加一下代码:
123456789101112131415161718
. . .
分类目录归档:
Linux
最近遇到域名重定向问题:
为了将www.test.com重定向为http://www.new.com/hehe.php
这是我的重定向代码:
1234567
<VirtualHost *:80> ServerNa . . .
安装好git之后,怎么使用呢,这里说说主要的操作,够用了~
1、配置下git的信息;
配置 姓名和邮箱
1234
git config --global user.name yournamegit config --global user.email youremail . . .
挂载U盘或者磁盘:
1、查看挂载点
123
df -h
这样可以看到所有存在的U盘或磁盘;
2、挂载你需要的盘: mount [option] [type] u_dir local_dir
fat格式的U盘 . . .
关于多域名指向同一服务器,apache怎么做域名解析,并跳转到对应的目录下:
1.找到httpd.conf;
如果是linux一般默认在/etc/httpd/conf/httpd.conf
2.修改文件;
在文件的末尾加上下面的解析语句,指定路径和域名:
1234567891011
. . .
YUM代理设置
编辑/etc/yum.conf,在最后加入
1234
# Proxyproxy=http://username:password@proxy_ip:port/
也可以使用proxy_use . . .
when i use sudo to install,terminal diplay this
123
/etc/sudoers is mode 0640,should be 0440
you can . . .
Error: You must be root to run this script, please use root to install lnmp
1.chmod u+w /etc/sudoers
2.find
123
root ALL=ALL(ALL) ALL&n . . .
开关centos图形界面:
一.关闭图形界面:
1.编辑/etc/inittab文件;
123
#vim /etc/inittab
shift+G跳到文件最后:
. . .
为linux添加用户,并设定密码:
1234
adduser clinpasswd clin
. . .