EExcel 丞燕快速查詢2

EExcel 丞燕快速查詢2
EExcel 丞燕快速查詢2 https://sandk.ffbizs.com/
顯示具有 ubuntu 標籤的文章。 顯示所有文章
顯示具有 ubuntu 標籤的文章。 顯示所有文章

ubuntu 18 sudo 卡頓

https://ywnz.com/linuxjc/2024.html


在Ubuntu Server 18.04 LTS下遇到了sudo速度非常慢的问题,具体表现是在提交命令之后大概需要10秒左右才有输入sudo密码或者开始运行,su命令同样也非常慢。这在升级前使用Ubuntu Server 16.04 LTS并没有,显然可能是Ubuntu Server 18.04 LTS版本的问题。



问题的原因

Ubuntu Server被设计成一种类似于分布式的操作系统网结构,允许/etc/sudoers中的成员不在本机上。从而sudo时会先从网络上寻找可能的sudoer然后才是本地,而这10s左右的时间就是整个DNS流程的最长时间。



解决办法

首先输入hostname,得到本机当前的互联网名称(大概跟windows下的计算机名称差不多)。然后使用su或sudo打开/etc/hosts,添加一行:

127.0.0.1计算机名计算机名.localdomain

关闭并保存。这样处理后sudo速度恢复正常。

bbr Kernel 4.9.51

aws linux 官方

https://aws.amazon.com/tw/amazon-linux-ami/2017.09-release-notes/



ubuntu

https://segmentfault.com/a/1190000008395823
https://farer.org/2017/05/18/build-kernel-with-bbr-on-ec2-amazon-linux/

修改/etc/sysctl.conf文件,加入如下两行:

net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr





檢查

cat /proc/sys/net/ipv4/tcp_congestion_control

elk Elasticsearch Logstash and Kibana fortigate ubuntu

https://www.rosehosting.com/blog/install-and-configure-the-elk-stack-on-ubuntu-16-04/

https://www.elastic.co/guide/en/logstash/current/configuration.html

https://dotblogs.com.tw/supershowwei/2016/05/25/185741


install finish

1、/etc/logstash/conf.d/    put some logstash conf

2、ubuntu have logstash listen error, so nano /etc/logstash/startup.options
LS_USER = root

3、/usr/share/logstash/bin# ./system-install        reuse LS_USER for config


注意:

 mutate {
        add_field => {
            "logTime" => "%{+YYYY-MM-dd} %{time}"
        }


magento install on xampp ubuntu

1、crate virtualbox vm, install ubuntu 16
This step have many tech, just find on google

ps:  start Virtual Box in background
make link, link content is

vboxheadless -startvm  "your vm's name"
check internet is ok~~

2、Use account that when you install ubuntu, create user account. Now example username is "Ubuntu".

Login Ubuntu use "Ubuntu" account.

see   https://www.apachefriends.org/download.html

choese 7.0.13 / PHP 7.0.13

wget https://www.apachefriends.org/xampp-files/7.0.13/xampp-linux-x64-7.0.13-1-installer.run

chmod +x xampp-linux-x64-7.0.13-1-installer.run
install
sudo ./xampp-linux-x64-7.0.13-1-installer.run
then Yes Yes Yes Yes

PS:so now have permit have three :  root 、 daemon、 ubuntu

/opt/lampp and /opt/lampp/*  some directory is root, some is ubuntu or daemon.


2-1、need phpmyadmin, so see this
http://sueboy.blogspot.tw/2016/01/xampp-phpmyadmin-httpd-xamppconf.html

put

<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
#Require local
Require all granted
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 192.168.0.0/8 xxx.ooo.xxx.ooo/24
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
xxx.ooo.xxx.ooo/24  can remove, by yourself use.

then check  http://192.168.xxx.xxx/phpmyadmin is ok

PS:Usually I move /opt/lampp/htdocs  all files to allbackup directory that be create by myself.


3、install magento

download Magento-CE-2_1_3_tar_gz , just download from magento website, then upload ubuntu, copy file to /opt/lampp/htdocs

tar zxvf Magento-CE-2_1_3_tar_gz
PS: IF you upload use root, maybe use "sudo tar"

3-1、 check /opt/lampp/etc/httpd.conf

http://www.computernetworkingnotes.com/ubuntu-12-04-tips-and-tricks/how-to-fix-permission-of-htdocs-in-ubuntu.html

User
Group

usually  is "daemon"


3-2、Set ownership and permissions for the shared group

http://devdocs.magento.com/guides/v2.1/install-gde/prereq/file-system-perms.html

cd /opt/lampp/htdocs

find var vendor pub/static pub/media app/etc -type f -exec chmod g+w {} \;
find var vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} \;
chown -R :daemon . 
chmod u+x bin/magento
PS: when you "sudo tar", maybe now this step need use "sudo"

4、now see http://192.168.xxx.xxx  , start install magento......