2018年7月

sed -i 's/#Port 22/Port 15389/g' /etc/ssh/sshd_config
#允许证书登
sed -i 's/#RSAAuthentication/RSAAuthentication/g' /etc/ssh/sshd_config
sed -i 's/#PubkeyAuthentication/PubkeyAuthentication/g' /etc/ssh/sshd_config
#禁止密码登录
sed -i 's/PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config
#禁用root账户密码登录 但允许证书和su
sed -i 's/PermitRootLogin yes/PermitRootLogin without-password/g'  /etc/ssh/sshd_config

service sshd restart

- 阅读剩余部分 -

#进源码安装包
[root@caijiqi php-7.0.12]# cd ext
[root@caijiqi ext]# ls
bcmath    com_dotnet  date  enchant   ext_skel_win32.php  ftp      gmp    imap       json    mbstring  mysqlnd  opcache  pcre       pdo_firebird  pdo_odbc    pgsql  pspell    reflection  simplexml  soap     sqlite3   sysvsem  tokenizer  xmlreader  xsl
bz2       ctype       dba   exif      fileinfo            gd       hash   interbase  ldap    mcrypt    oci8     openssl  pdo        pdo_mysql     pdo_pgsql   phar   readline  session     skeleton   sockets  standard  sysvshm  wddx       xmlrpc     zip
calendar  curl        dom   ext_skel  filter              gettext  iconv  intl       libxml  mysqli    odbc     pcntl    pdo_dblib  pdo_oci       pdo_sqlite  posix  recode    shmop       snmp       spl      sysvmsg   tidy     xml        xmlwriter  zlib
[root@caijiqi ext]# cd tidy
[root@caijiqi tidy]# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012
[root@caijiqi tidy]# ./configure --with-php-config=/usr/local/php/bin/php-config

#configure: error: Cannot find libtidy

yum -y  install libtidy*
./configure --with-php-config=/usr/local/php/bin/php-config
make
[root@caijiqi tidy]# make install
Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-zts-20151012/
ll /usr/local/php/lib/php/extensions/no-debug-zts-20151012/
#看到了 tidy.so

extension=tidy.so

#保持
tidy.clean_output = Off 
#如果打开了
tidy.clean_output = On 则可能会出现全页面乱码