centos7安装jdk

centos7安装jdk

下载jdk jdk-8u151-linux-x64.tar.gz
放到 /usr/local 目录里面

解压缩 tar -zxvf jdk-8u151-linux-x64.tar.gz

修改 /etc/profile 在文件末尾添加

JAVA_HOME=/usr/local/jdk1.8.0_151/
CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
PATH=$PATH:$JAVA_HOME/bin

 

让上面的修改生效,命令行执行 source /etc/profile

 

 

[root@TS-DEV ~]# yum install screen
[root@TS-DEV ~]# rpm -qa|grep screen
screen-4.0.3-4.el5
[root@TS-DEV ~]#


新建窗口 screen -S 窗口名称
screen -ls 查看所有screen会话
screen -r xxxx 进入会话

按键盘上面的Ctrl+a,然后再按d #保存当前的screen会话

exit #退出screen

screen -wipe mysql5.5 #删除会话

 

 

查看端口占用
netstat -anp|grep 80
 
 
lsblk 查看分区和磁盘
 
df -h 查看空间使用情况
 
fdisk -l 分区工具查看分区信息
 
cfdisk /dev/sda 查看分区
 
blkid 查看硬盘label(别名)
 
 
 
 
 
tar -xzvf nginx-1.10.1.tar.gz
 
tar -xzvf pcre-8.41.tar.gz
 
./configure --prefix=/usr/local/pcre-8.41 --libdir=/usr/local/lib/pcre --includedir=/usr/local/include/pcre
 
 
 
 
nginx 放在/usr/local/nginx
 
转到sbin目录
启动 ./nginx
停止 ./nginx -s stop
./nginx
./nginx -s stop
./nginx -s quit
./nginx -s reload
 
查询nginx进程:
 
ps aux|grep nginx
 
https://www.cnblogs.com/riverdubu/p/6426852.html
 
 
 
新建窗口 screen -S 窗口名称
screen -ls #查看所有screen会话
 
按键盘上面的Ctrl+a,然后再按d #保存当前的screen会话
 
exit #退出screen
 
screen -wipe mysql5.5 #删除会话
 
root lulian2014_
 
 
rz sz filename
lulian lulian
 
数据库地址47.100.125.33
用户名 md
密码 md_100
 
 
Starting, Stopping, and Reloading Configuration
To start nginx, run the executable file. Once nginx is started, it can be controlled by invoking the executable with the -s parameter. Use the following syntax:
 
nginx -s signal
Where signal may be one of the following:
 
stop — fast shutdown
quit — graceful shutdown
reload — reloading the configuration file
reopen — reopening the log files
For example, to stop nginx processes with waiting for the worker processes to finish serving current requests, the following command can be executed:
 
nginx -s quit
This command should be executed under the same user that started nginx.
Changes made in the configuration file will not be applied until the command to reload configuration is sent to nginx or it is restarted. To reload configuration, execute:
 
nginx -s reload
 
A signal may also be sent to nginx processes with the help of Unix tools such as the kill utility. In this case a signal is sent directly to a process with a given process ID. The process ID of the nginx master process is written, by default, to the nginx.pid in the directory /usr/local/nginx/logs or /var/run. For example, if the master process ID is 1628, to send the QUIT signal resulting in nginx’s graceful shutdown, execute:
 
kill -s QUIT 1628
For getting the list of all running nginx processes, the ps utility may be used, for example, in the following way:
 
ps -ax | grep nginx
For more information on sending signals to nginx, see Controlling nginx.
 
nginx的一些模块依赖一些lib库,在安装nginx之前,须先安装这些lib库,
依赖库主要有g++、gcc、openssl-devel、pcre-devel和zlib-devel 所以执行如下命令安装
1. yum install gcc-c++
2.yum install pcre pcre-devel
3.yum install zlib zlib-devel
4.yum install openssl openssl--devel
5. wget http://nginx.org/download/nginx-1.9.14.tar.gz
6. tar xvzf nginx-1.9.14.tar.gz
7. ./configure
8.make && make install
9. cd /usr/local/nginx/sbin
10. ./nginx
 
 
 
 
 
 
 
获取订单接口有问题,正在修复中
 
 
 
 
 
http://apps.hi.baidu.com/share/detail/37384818
 
download ADT link
 
http://dl.google.com/android/ADT-0.9.6.zip
 
download SDK link
 
http://dl.google.com/android/android-sdk_r11-linux_x86.tgz(可以通过FQ得到具体的文件名,再通过链接下载即可)
 
tar
-c: 建立压缩档案
-x:解压
-t:查看内容
-r:向压缩归档文件末尾追加文件
-u:更新原压缩包中的文件
 
这五个是独立的命令,压缩解压都要用到其中一个,可以和别的命令连用但只能用其中一个。下面的参数是根据需要在压缩或解压档案时可选的。
 
-z:有gzip属性的
-j:有bz2属性的
-Z:有compress属性的
-v:显示所有过程
-O:将文件解开到标准输出
 
下面的参数-f是必须的
 
-f: 使用档案名字,切记,这个参数是最后一个参数,后面只能接档案名。
 
# tar -cf all.tar *.jpg
这条命令是将所有.jpg的文件打成一个名为all.tar的包。-c是表示产生新的包,-f指定包的文件名。
 
# tar -rf all.tar *.gif
这条命令是将所有.gif的文件增加到all.tar的包里面去。-r是表示增加文件的意思。
 
# tar -uf all.tar logo.gif
这条命令是更新原来tar包all.tar中logo.gif文件,-u是表示更新文件的意思。
 
# tar -tf all.tar
这条命令是列出all.tar包中所有文件,-t是列出文件的意思
 
# tar -xf all.tar
这条命令是解出all.tar包中所有文件,-x是解开的意思
 
压缩
tar –cvf jpg.tar *.jpg //将目录里所有jpg文件打包成tar.jpg
tar –czf jpg.tar.gz *.jpg //将目录里所有jpg文件打包成jpg.tar后,并且将其用gzip压缩,生成一个gzip压缩过的包,命名为jpg.tar.gz
tar –cjf jpg.tar.bz2 *.jpg //将目录里所有jpg文件打包成jpg.tar后,并且将其用bzip2压缩,生成一个bzip2压缩过的包,命名为jpg.tar.bz2
tar –cZf jpg.tar.Z *.jpg //将目录里所有jpg文件打包成jpg.tar后,并且将其用compress压缩,生成一个umcompress压缩过的包,命名为jpg.tar.Z
rar a jpg.rar *.jpg //rar格式的压缩,需要先下载rar for linux
zip jpg.zip *.jpg //zip格式的压缩,需要先下载zip for linux
 
解压
tar –xvf file.tar //解压 tar包
tar -xzvf file.tar.gz //解压tar.gz
tar -xjvf file.tar.bz2 //解压 tar.bz2
tar –xZvf file.tar.Z //解压tar.Z
unrar e file.rar //解压rar
unzip file.zip //解压zip
 
总结
1、*.tar 用 tar –xvf 解压
2、*.gz 用 gzip -d或者gunzip 解压
3、*.tar.gz和*.tgz 用 tar –xzf 解压
4、*.bz2 用 bzip2 -d或者用bunzip2 解压
5、*.tar.bz2用tar –xjf 解压
6、*.Z 用 uncompress 解压
7、*.tar.Z 用tar –xZf 解压
8、*.rar 用 unrar e解压
9、*.zip 用 unzip 解压
posted @ 2018-04-28 15:52  次序  阅读(251)  评论(0编辑  收藏  举报