升级备忘

 
sudo apt-get update;
 
sudo apt-get  install  build-essential libncurses5-dev php5-mysql php5-fpm p7zip-full;
sudo /etc/init.d/php5-fpm restart;
 
./configure \
--prefix=/data/mysql2/server \
--sysconfdir=/data/mysql2/server \
--localstatedir=/data/mysql2/data \
--with-tcp-port=3307 \
--without-debug \
--without-ndb-debug \
--enable-thread-safe-client \
--enable-assembler \
--enable-profiling \
--with-big-tables \
--with-mysqld-ldflags=-all-static \
--with-client-ldflags='-all-static -ltinfo' \
--with-charset=utf8 \
--with-collation=utf8_general_ci \
--with-extra-charsets=all \
--with-plugins=all \
--with-mysqld-user=mysql \
--without-embedded-server \
--with-unix-socket-path=/tmp/mysqld2.sock  
 
make
make install
 
groupadd mysql
useradd -r -g mysql mysql
sudo chown -R mysql:mysql /data/mysql/
cp my-medium.cnf /data/mysql/server/my.cnf
cp mysql.server /etc/init.d/
 
sudo -u mysql ./mysql_install_db \
--basedir=/data/mysql/server \
--datadir=/data/mysql/data;
 
sudo /etc/inid.d/mysql.serser start
 
nginx version: nginx/1.1.19
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module --add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-auth-pam --add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-echo --add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-upstream-fair --add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-dav-ext-module
 
 
 
sudo apt-get install libxslt-dev libxml2-dev  libgd2-xpm-dev libpam0g-dev
 
./configure \
--prefix=/etc/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-log-path=/var/log/nginx/access.log \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-scgi-temp-path=/var/lib/nginx/scgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
--lock-path=/var/lock/nginx.lock \
--pid-path=/var/run/nginx.pid \
--with-debug \
--with-http_addition_module \
--with-http_dav_module \
--with-http_gzip_static_module \
--with-http_image_filter_module \
--with-http_realip_module \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-http_sub_module \
--with-http_xslt_module \
--with-ipv6 \
--with-sha1=/usr/include/openssl \
--with-md5=/usr/include/openssl \
--with-mail \
--with-mail_ssl_module \
--add-module=/data/install/build/ngx_http_auth_pam_module-1.3 \
--add-module=/data/install/build/echo-nginx-module-0.52 \
--add-module=/data/install/build/nginx-upstream-fair-master \
--add-module=/data/install/build/nginx-dav-ext-module-master
 
 
 
ssh-keygen -t rsa
touch ~/.ssh/authorized_keys
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
 
下载 id_rsa到本机
chmod 0400 id_rsa
ssh user@ip -p22 -iid_rsa

原创文章,转载请注明: 转载自海波无痕

本文链接地址: 升级备忘

文章的脚注信息由WordPress的wp-posturl插件自动生成

此条目发表在server分类目录,贴了标签。将固定链接加入收藏夹。

发表评论

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

评论链接可以 移除 nofollow.