opensuse 13.2/13.1 搭建编译环境遇到的问题及解决办法

1xshell连接不了opensuse linux解决办法

开启sshd服务:service sshd start 

查看sshd进程:ps -e | grep ssh

2、搭建xftp 步骤:

安装 vsftpd

作为root用户登录然后输入以下命令。

# zypper in vsftpd

启动 vsftpd 服务然后通过设置使它在每次系统重启时自动启动。

# systemctl enable vsftpd.service

# systemctl start vsftpd.service

配置 vsftpd

ftp用户新建一个文件夹。

# mkdir /srv/ftp

创建一个名为 ftp-users 的组。

# groupadd ftp-users

让我们来创建一个叫unixmen的示例用户 并设置其主目录为 /srv/ftp 组为 ftp-users 

# useradd -g ftp-users -d /srv/ftp/ unixmen

为新用户设置密码。

# passwd unixmen

使ftp主目录 /srv/ftp/ 可以被ftp用户所访问。

# chmod 750 /srv/ftp/

# chown unixmen:ftp-users /srv/ftp/

编辑 vsftpd.conf 文件

# nano /etc/vsftpd.conf

设置如下的更改。

[...]

#Uncomment and  Set YES to enable write.

write_enable=YES

[...]

# Uncomment and Set banner name for your website

ftpd_banner=Welcome to Unixmen FTP service.

[...]

# Uncomment

ls_recurse_enable=YES

[...]

# Uncomment and set YES to allow local users to log in.

local_enable=YES

[...]

# To disable anonymous access, set NO.

anonymous_enable=NO

[...]

# Uncomment to enable ascii download and upload.

ascii_upload_enable=YES

ascii_download_enable=YES

[...]

## Add at the end of this  file ##

use_localtime=YES

保存并退出文件。

测试本地FTP服务器

首先 让我们按如下步骤尝试登录FTP服务器

# ftp localhost

Trying ::1:21 ...

Connected to localhost.

220 (vsFTPd 3.0.2)

Name (localhost:root): unixmen

331 Please specify the password.

Password:

230 Login successful.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp>

退出ftp>quit

3、虚拟机 ftp 上传文件出错,出现传入传出错误解决办法;

loot权限下,chmod 777 (dir 文件或目录,目录为绝对路径)

4、连接不上xshell,解决办法

step1: SU 切换到ROOT用户

step2: SuSEfirewall2 stop (这只是一次性简单的关闭)

step3: 如果想永远关闭则

# chkconfig SuSEfirewall2 off

安装sshd:

# zypper in sshd

# service sshd start

# ps -e | grep ssh

5、虚拟机Linux/etc/profile 文件作用

6suse linux 常用命令

cp file1 file2

7Linux用户账号的管理

# useradd -d /usr/sam -m sam

此命令创建了一个用户sam,其中-d-m选项用来为登录名sam产生一个主目录/usr/sam/usr/ sam)

如果是终极用户,能用下列形式指定任意用户的口令:
# passwd sam
New password:*******
Re-enter new password:*******

猜你喜欢

转载自blog.csdn.net/cindywry/article/details/80136896