configure nginx提示PCRE和SSL错误
Linux configure nginx提示如下错误
./configure: error: the HTTP rewrite module requires the PCRE library.
无
yum -y install pcre-devel openssl openssl-devel
./configure --prefix=/data/nginx
make
make install
无
Linux configure nginx提示如下错误
./configure: error: the HTTP rewrite module requires the PCRE library.
无
yum -y install pcre-devel openssl openssl-devel
./configure --prefix=/data/nginx
make
make install
无
无
无
1、进入“安装/移除软件”,并输入root密码
2、搜索virtualbox。
3、选中virtualbox(基础)和virtualbox-qt(界面)
4、点接入安装。
5、进入Yast/安全和用户/用户和组管理。
6、选中你要使用virtualbox的用户>编辑>细节>附加的组先中vboxusers>确定。
7、重启opensuse登陆即可使用virtualBox
无
客户安装Centos后默认安装有图形界面,客户删除图形界面后启动不提示登录。但可以用ssh或telnet登录。
无
1、ssh登陆服务器
2、修改/etc/inittab 文件,将id:5:initdefault:(默认的 run level 等级为 5,即图形界面改为3即纯文本环境)
3.保存文件后重启系统你就可以看见是启动的文本界面了。
无
Linux国外源速度较慢。如何使用国内源。
无
无
Centos7.0使用service iptables restart提示错误
[root@FileServer etc]# service iptables restart
Redirecting to /bin/systemctl restart iptables.service
Failed to issue method call: Unit iptables.service failed to load: No such file or directory.
无
Iptables默认没有安装服务。
yum -y install iptables-services
[root@FileServer etc]# service iptables start
Redirecting to /bin/systemctl start iptables.service
无
Centos 7.0最小安装成功后。没有ifconfig
无
mini安装后默认没有ifconfig。请执行yum -y install net-tools 安装网络工具!
同时建议安装
yum -y install zip unzip wget make
安装zip,unzip,wget,make
无
[root@Radius ftp]# useradd -d /home/huawei -g ftp -s /bin/false huawei
[root@Radius ftp]#passwd huawei
[root@Radius ftp]# passwd huawei
更改用户 huawei 的密码 。
新的 密码:
重新输入新的 密码:
passwd: 所有的身份验证令牌已经成功更新。
[root@Radius ftp]# ftp 127.0.0.1
Connected to 127.0.0.1 (127.0.0.1).
220 (vsFTPd 2.2.2)
Name (127.0.0.1:root): huawei
331 Please specify the password.
Password:
530 Login incorrect.
ftp>
[root@Radius ftp]# tail /var/log/secure
Sep 11 10:16:39 radius proftpd[11888]: localhost (192.168.1.199[192.168.1.199]) - USER huawei (Login failed): Invalid shell: '/bin/false'
Sep 11 10:16:56 radius proftpd[11889]: localhost (192.168.1.199[192.168.1.199]) - USER huawei (Login failed): Invalid shell: '/bin/false'
Sep 11 10:23:53 radius proftpd[12044]: localhost (192.168.1.199[192.168.1.199]) - USER huawei (Login failed): Invalid shell: '/bin/false'
上述错误日志确定为用户shell为/bin/false后,用户无法登陆FTP,vsftpd默认会检查用户的shell,如果用户的shell在/etc/shells没有记录,则无法登陆ftp
1.在/etc/shells中添加一行"/bin/false";
2.重启vsftpd服务。
[root@Radius opt]# vi /etc/shells /bin/sh |
无
Ruby用安装提示无法加载Openssl
gem install rails -v 3.2.17
ERROR: Loading command: install (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
无
进入到ruby源码包的所在路径,然后进入ext/openssl,执行:
sudo ruby extconf.rb,
make
make install
无
无
无
自动备份文件,同时按日期重命名
创建backup.sh文件。内容如下:
#!/bin/sh
datenow=`date +%Y%m%d`
cp /data/db/backup/DataBase/data/db/backup/DataBase-$datenow
然后将Backup.sh加入Cron计划即可
无
Yum安装Enablerepo时提示epel不可用。
yum --enablerepo=epel
Error getting repository data for epel, repository not found
无
RHEL/CentOS 6 32-64 Bit
## RHEL/CentOS 6 32-Bit ## #
#wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
## RHEL/CentOS 6 64-Bit ##
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
RHEL/CentOS 5 32-64 Bit
## RHEL/CentOS 5 32-Bit ##
# wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm
## RHEL/CentOS 5 64-Bit ##
# wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm
RHEL/CentOS 4 32-64 Bit
## RHEL/CentOS 4 32-Bit ##
# wget http://download.fedoraproject.org/pub/epel/4/i386/epel-release-4-10.noarch.rpm
# rpm -ivh epel-release-4-10.noarch.rpm
## RHEL/CentOS 4 64-Bit ##
# wget http://download.fedoraproject.org/pub/epel/4/x86_64/epel-release-4-10.noarch.rpm
# rpm -ivh epel-release-4-10.noarch.rpm
无