Menu
Woocommerce Menu

ssh使用密钥,uniq文本排序

0 Comment

 

 

 

将安装文件上传到linux的/OPT目录中。

今日运转部给了虚机做测验情况,都以选用公钥登入,使用密钥在windows下比较便利,可是虚机和虚机之间传输比较麻烦,笔者还得用小编本机做转账。

待完善…

环境:REDHAT5.5

  开掘scp有八个参数-i能够加载公钥,这一个比较便利

sort: 达成公文排序 算法成效极高, 很强悍.

工具:httpd-2.2.17.tar.gz

可是进行时出现错误

不会修改原来的小说件的内容,仅仅修改荧屏输出的内容.

      mysql-5.0.22.tar.gz

 

例:sort /etc/fstab

      php-5.2.17.tar.gz

[email protected]:~#
scp -i shopex_bakserver.bakserver otp_src_R14B03.tar.gz
1.1.1.1:/root/

#-u 去除重复的行.

      phpMyAdmin-3.3.4-all-languages.tar.bz2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

#-n 按数值大小排序

      gd-2.0.32.tar.gz

@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @

#-r 降序排序

      freetype-2.1.10.tar.gz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

 例: head -n 6 /etc/passwd | sort -r

      libpng-1.2.14.tar.gz.TAR.GZ

Permissions 0644 for ‘shopex_bakserver.bakserver’ are too open.

段分隔符

      libxml2-2.6.19.tar.gz.GZ

It is recommended that your private key files are NOT accessible by
others.

#-t 钦命段分隔符

      zlib-1.2.3.tar.gz

This private key will be ignored.

#-k 内定段排序

 

bad permissions: ignore key: shopex_bakserver.bakserver

 例:head -n 6 /etc/passwd | sort -t : -k 3

下载地址:

Permission denied (publickey).

uniq , sort -u

 

lost connection

uniq 只辨认重复的行,何况必得挨着

一.安装apache

并发那么些错误主若是公钥的权力太大,把权限降为600就能够

sort | uniq

tar zxvf httpd-2.2.17.tar.gz 解压

chmod 600 shopex_bakserver.bakserver

uniq -u 只体现未有再度的行

cd httpd-2.2.17 进入

 

     -d 只呈现重复的行

编译并安装:

 

     -c 行出现过四遍

./configure –prefix=/usr/local/apache2 –enable-so –enable-rewrite
–enable-cgi –enable-suexec –with-suexec-caller=daemon
–with-suexec-docroot=/usr/local/apache2/htdocs

本文出自 “一方有” 博客

本文出自 “魏巍的Linux酒吧” 博客

Make

… sort: 完毕文件排序 算法作用异常高,
很强悍. 不会修改原版的书文件的故事情节,仅仅修改荧屏输出的内容. 例:sort /etc/fstab
#-u 去除重复的行. #…

Make install

编写翻译安装达成后修改配置文件

vi /usr/local/apache2/conf/httpd.conf

ServerName www.example.com:80 修改为:自个儿IP:80
作者修改为:www.xiaodu.com

此地小编以域名访谈供给修改本人的hosts文件!

丰硕192.168.1.2   www.xiaodu.com  (笔者要好的尝试机器IP为192.168.1.2)

开启服务:/usr/local/apache2/bin/apachectl start

翻看服务:netstat -antpl | grep 80

做客网页,查看是不是寻常

OK,网页日常访谈。

二.安装mysql

解压:tar zxvf mysql-5.0.22.tar.gz

1.       编写翻译并安装:./configure –prefix=/usr/local/mysql

                 Make && make install

2.       加多客商:useradd -M -s /sbin/nologin mysql

    3. 
[[email protected]
mysql-5.0.22]# /usr/local/mysql/bin/mysql_install_db –user=mysql

Installing all prepared tables

Fill help tables

 

To start mysqld at boot time you have to copy support-files/mysql.server

to the right place for your system

 

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

To do so, start the server, then issue the following commands:

/usr/local/mysql/bin/mysqladmin -u root password ‘new-password’

/usr/local/mysql/bin/mysqladmin -u root -h RHCE password ‘new-password’

See the manual for more instructions.

 

You can start the MySQL daemon with:

cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe &

 

You can test the MySQL daemon with the benchmarks in the ‘sql-bench’
directory:

cd sql-bench ; perl run-all-tests

 

Please report any problems with the /usr/local/mysql/bin/mysqlbug
script!

 

The latest information about MySQL is available on the web at

Support MySQL by buying support/licenses at

[[email protected]
mysql-5.0.22]# cp support-files/my-medium.cnf /etc/my.cnf

cp: overwrite `/etc/my.cnf’? y

[[email protected]
mysql-5.0.22]# chown -R root:mysql /usr/local/mysql/

[[email protected]
mysql-5.0.22]# chown -R mysql /usr/local/mysql/var/

[[email protected]
mysql-5.0.22]# echo “/usr/local/mysql/lib/mysql/” >>
/etc/ld.so.conf

[[email protected]
mysql-5.0.22]# ldconfig

[[email protected]
mysql-5.0.22]# /usr/local/mysql/bin/mysqld_safe –user=mysql &

[[email protected]
mysql-5.0.22]# cp support-files/mysql.server /etc/init.d/mysqld

cp: overwrite `/etc/init.d/mysqld’? y

标签:

发表评论

电子邮件地址不会被公开。 必填项已用*标注

相关文章

网站地图xml地图