wget http://nginx.org/download/nginx-1.5.9.tar.gz
./configure: error: the HTTP rewrite module requires the PCRE library.
安装pcre-devel解决问题
yum -y install pcre-devel
./configure: error: the HTTP cache module requires md5 functions
from OpenSSL library. You can either disable the module by using
--without-http-cache option, or install the OpenSSL library into the system,
or build the OpenSSL library statically from the source with nginx by using
--with-http_ssl_module --with-openssl= options.
解决:
yum -y install openssl openssl-devel
Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid
解决方法:
[root@localhost nginx]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
使用nginx -c的参数指定nginx.conf文件的位置
[root@localhost nginx]# cd logs/
[root@localhost logs]# ll
Linux的复制移动删除操作
参考链接
use mysql;
update user set authentication_string=password(“newpassword“) where user=”root”;
flush privileges;
SET PASSWORD = PASSWORD('123456'); //密码要有足够的复杂度
tar -zxvf *.tar.gz
vim /etc/profile
MAVEN_HOME=/usr/local/maven3
export MAVEN_HOME
export PATH=${PATH}:${MAVEN_HOME}/bin
mvn -v
<mirror>
<id>nexus-aliyunid>
<mirrorOf>*mirrorOf>
<name>Nexus aliyunname>
<url>http://maven.aliyun.com/nexus/content/groups/publicurl>
mirror>
yum install git
卸载:yum remove git
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
解压 tar zxvf git-2.11.0.tar.gz
cd git-2.11.0
make prefix=/usr/local/git all
make prefix=/usr/local/git install
whereis git
git --version
vim /etc/profile
加入export PATH=$PATH:/usr/local/git/bin
生效配置文件 source /etc/profile
[root@zhuzhonghua2-fqawb util]# git config –global user.name “hiddenzzh”
[root@zhuzhonghua2-fqawb util]# git config –global user.email “youremail@domain.com”
此时$HOME目录下会新建一个.gitconfig文件
ssh-keygen -t ras -C “youremail@domain.com”
系统会提示key的保存位置(一般是~/.ssh目录)和指定口令,保持默认,连续三次即可
vim ~/.ssh/id_rsa.pub
然后将id_rsa.pub文件中的内容粘贴到gitub的“SSH and GPG keys”中。
下载方式
- wget http://download.redis.io/releases/redis-4.0.6.tar.gz
解压
tar -zxvf redis-4.0.6.tar.gz
在解压文件夹内编译
cd redis-4.0.6
make
编译后启动
src/redis-server
src/redis-cli
测试
127.0.0.1:8888> set key hello
OK
127.0.0.1:8888> get key
"hello"
Could not connect to Redis at 127.0.0.1:6379: Connection refused
- 解决方案
- 设置redis.conf中的daemonize 为yes
- 指定配置文件启动
redis-server /etc/redis.conf
redis-cli
创建数据库
sqlServer数据库开放权限
[mysqld]
basedir=C:\Program Files\MySQL\MySQL Server 5.7(mysql所在目录)
datadir=C:\Program Files\MySQL\MySQL Server 5.7\data (mysql所在目录\data)
mysqld --initialize
mysql install