全球主机交流论坛

标题: 新买的VPS权限怎么设置 [打印本页]

作者: gouwaming    时间: 2009-9-7 13:01
标题: 新买的VPS权限怎么设置
进入程序安装界面出现不可写现象,如图
(, 下载次数: 14)
作者: cpuer    时间: 2009-9-7 13:02
标题: 回复 1# 的帖子
ftp登陆上去,对要求写入权限的文件或者文件夹右键属性,设置777权限。
作者: gouwaming    时间: 2009-9-7 13:06
FTP我试过了,子目录还是没权限
怎么直接让它全部开放权限
作者: cpuer    时间: 2009-9-7 13:08
标题: 回复 3# 的帖子
那就再对子目录设置权限。

PS:
怎么直接让它全部开放权限
那你得SSH里面使用chmod命令了!
作者: cpuer    时间: 2009-9-7 13:10
关于chmod命令

指令名称 : chmod
使用权限 : 所有使用者
使用方式 : chmod [-cfvR] [--help] [--version] mode file...
说明 : Linux/Unix 的档案调用权限分为三级 : 档案拥有者、群组、其他。利用 chmod 可以藉以控制档案如何被他人所调用。
参数 :
mode : 权限设定字串,格式如下 : [ugoa...][[+-=][rwxX]...][,...],其中
u 表示该档案的拥有者,g 表示与该档案的拥有者属于同一个群体(group)者,o 表示其他以外的人,a 表示这三者皆是。
+ 表示增加权限、- 表示取消权限、= 表示唯一设定权限。
r 表示可读取,w 表示可写入,x 表示可执行,X 表示只有当该档案是个子目录或者该档案已经被设定过为可执行。
-c : 若该档案权限确实已经更改,才显示其更改动作
-f : 若该档案权限无法被更改也不要显示错误讯息
-v : 显示权限变更的详细资料
-R : 对目前目录下的所有档案与子目录进行相同的权限变更(即以递回的方式逐个变更)
--help : 显示辅助说明
--version : 显示版本
范例 :将档案 file1.txt 设为所有人皆可读取 :
chmod ugo+r file1.txt  
将档案 file1.txt 设为所有人皆可读取 :
chmod a+r file1.txt  
将档案 file1.txt 与 file2.txt 设为该档案拥有者,与其所属同一个群体者可写入,但其他以外的人则不可写入 :
chmod ug+w,o-w file1.txt file2.txt  
将 ex1.py 设定为只有该档案拥有者可以执行 :
chmod u+x ex1.py  
将目前目录下的所有档案与子目录皆设为任何人可读取 :
chmod -R a+r *  
此外chmod也可以用数字来表示权限如 chmod 777 file
语法为:chmod abc file
其中a,b,c各为一个数字,分别表示User、Group、及Other的权限。
r=4,w=2,x=1
若要rwx属性则4+2+1=7;
若要rw-属性则4+2=6;
若要r-x属性则4+1=7。
范例:
chmod a=rwx file  

chmod 777 file  
效果相同
chmod ug=rwx,o=x file  

chmod 771 file  
效果相同
若用chmod 4755 filename可使此程序具有root的权限
作者: gouwaming    时间: 2009-9-7 13:11
这些指令在哪里使用?  不明白
作者: cpuer    时间: 2009-9-7 13:12
标题: 回复 6# 的帖子
不懂SSH的话,就在ftp里面慢慢设置吧。

如果要进SSH里面的话,用putty软件登陆。
作者: gouwaming    时间: 2009-9-7 13:12
是SSH吗?  我没安装呀 怎么安装
作者: cpuer    时间: 2009-9-7 13:13
标题: 回复 8# 的帖子
SSH的话VPS默认开着的,你用putty软件就可以登陆上去了
作者: gouwaming    时间: 2009-9-7 13:28
账号和密码正确登陆了
接下去要输入什么,上面的看起来很乱、、
作者: cpuer    时间: 2009-9-7 13:33
标题: 回复 10# 的帖子
到你网站的目录上一级。

PS: 像你安装的dedecms,还是ftp里面一个一个的设置权限吧。

你用命令的话全部设置成了777权限的话也不大安全。
作者: gouwaming    时间: 2009-9-7 13:50
这个网站的根目录权限怎么弄
只有这个符号  /
作者: cpuer    时间: 2009-9-7 13:54
标题: 回复 12# 的帖子
cd命令到你的网站目录,至于你的网站在哪里目录,你要自己查查了。
作者: gouwaming    时间: 2009-9-7 14:00
比如我绑定域名设置网站文件夹为 rt100
是不是写
cd ..

cd rt100
但cd rt100写了找不到文件?
作者: cpuer    时间: 2009-9-7 14:01
标题: 回复 14# 的帖子
rt100不在/目录下自然找不到。

你用的是什么控制面板?

还是不要用SSH改777了,一是怕你搞乱了,二是怕属主有变动,那就坏了。
作者: gouwaming    时间: 2009-9-7 14:01
(, 下载次数: 9)
明明有,是不是命令错了

[root@vps ~]# cd ..
[root@vps /]# cd rt100
-bash: cd: rt100: No such file or directory
作者: gouwaming    时间: 2009-9-7 14:01
KLOXO
作者: gouwaming    时间: 2009-9-7 14:02
File Manager 文件时这样的
(, 下载次数: 9)
作者: cpuer    时间: 2009-9-7 14:03
标题: 回复 16# 的帖子
rt100 不是在/ 下,

应该是在 /home/admin/网站目录名/
作者: gouwaming    时间: 2009-9-7 14:05
-bash: /home/admin/rt100/: is a directory
作者: gouwaming    时间: 2009-9-7 14:06
然后怎么设置  /  的权限?
作者: cpuer    时间: 2009-9-7 14:06
标题: 回复 20# 的帖子
/home/admin/rt100/: is a directory

/home/admin/rt100/ 是一个目录,没错啊。
作者: cpuer    时间: 2009-9-7 14:07
标题: 回复 21# 的帖子
dedecms不是要整个程序设置为777权限,只是部分文件和文件夹而已,你还是在ftp里面设置吧。


PS: Kloxo里面的文件管理器里面也有设置权限的,permission.
作者: gouwaming    时间: 2009-9-7 14:08
但这个不可写是什么意思?
作者: gouwaming    时间: 2009-9-7 14:10
OK了 控制面板里面设置了
作者: cpuer    时间: 2009-9-7 14:10
标题: 回复 24# 的帖子
是网站的根目录没有写入权限。

如果要设置的话,

cd /home/admin/
然后
chmod 777 rt100
试下。
作者: gouwaming    时间: 2009-9-7 14:45
后台控制面板里面就可以了  你刚才说了 现在一切搞定
对了  老大
我GD为什么不管绑定几个域名
文件路径正确的情况下不管链接什么都出现
(, 下载次数: 8)


我检查了好几遍,域名重新绑定几个都一样,为什么
作者: cpuer    时间: 2009-9-7 14:46
标题: 回复 27# 的帖子



godaddy空间上绑定的目录下没有文件吧。
作者: gouwaming    时间: 2009-9-7 14:50
有啊 以前用了很久GD,这些操作都行,以前有把主域名指向别的地方,前天就绑定回来了,也解析好了
还是不行。。
(, 下载次数: 9)
作者: cpuer    时间: 2009-9-7 14:54
标题: 回复 29# 的帖子
主域名也访问不了么?

用的共享IP还是独立IP?
作者: gouwaming    时间: 2009-9-7 15:03
独立的也有SSL
GD给我回信说
Dear lin yuanzi,

Thank you for contacting Online Support.

It appears that your domain name is not pointing to the correct IP address and there is no index page in your hosting account.

To locate the IP address for your hosting account:

• Select 'Hosting' under the 'My Products' section.
• Click the hosting account that you would like to look up the information for.
• Notice the 'Hosting Account Details' listing on the right side of the page.
• Here you'll be able to see the IP address for your server.

To modify the A-Record for your domain:

1. Select Domain Manager from the My Products menu.
2. Click on the domain which you wish to change the A-Record for.
3. Click Total DNS Control and MX Records.
4. Under the A (Host) section, click the pencil icon to the right of the @ record.
5. Enter the new IP address.
6. Click OK


NOTE: Changes to the settings of a domain can take up to 48 hours to become effective because of the number of networks involved, and because these networks are controlled by several different agencies. This delay applies to all domains with any Registrar. Please allow for this delay when planning web sites or configuring a domain to work with your services.


When I visit your site I can see that it is pointing to your hosting account correctly but you don't have a valid file in the main directory that the server can use as the main page. This file is referred to as an "index page." You will need to create an index page, using one of the following filenames (or rename your main HTML page to one of these names):

The order of precedence for our Windows shared hosting accounts is as follows (top is the highest priority):

default.asp
default.html
default.htm
default.aspx
default.php
default.shtml
default.shtm
index.html
index.htm
index.asp
index.php
index.shtml
index.shtm
home.html
home.htm
home.shtml
home.shtm
welcome.html
welcome.asp

If this information does not provide an answer to your request please clarify exactly what you are trying to do so we may provide the correct information.

Please let us know if we can help in any other way.

Sincerely,
Alycia P.
Online Support Team
作者: cpuer    时间: 2009-9-7 15:05
标题: 回复 31# 的帖子
信里面是告诉你怎么查看自己的空间IP地址,还有默认首页地址。
作者: gouwaming    时间: 2009-9-7 15:12
这个IP应该是72.167.232.153吧
作者: gouwaming    时间: 2009-9-7 15:12
Server IP Address : 72.167.232.153  
Dedicated Hosting IP : 97.74.173.197  
Billing Date : 02/15/2010  
Status : Setup  
Disk Space : 925.78 MB of 150000.00
作者: cpuer    时间: 2009-9-7 15:39
标题: 回复 34# 的帖子
Dedicated Hosting IP : 97.74.173.197

这个才是独立IP地址。




欢迎光临 全球主机交流论坛 (https://52.ht/) Powered by Discuz! X3.4