1. Install Nginx
sudo yum install epel-release
sudo yum install nginx
sudo systemctl start nginx
sudo systemctl enable nginx
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload
Note: maybe user nginx repo
Create file repo: /etc/yum.repo.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/
gpgcheck=0
enabled=1
2.Create...
Chủ Nhật, 20 tháng 8, 2017
Thứ Bảy, 19 tháng 8, 2017
How to Install PHP 5.6 or PHP 7.1 on Ubuntu 16.04, 14.04 using PPA
Install PHP 5.6 on Ubuntu
Use the following set of command to add PPA for PHP 5.6 in your Ubuntu system and install PHP 5.6.
$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt-get install -y php5.6
apt-get install libapache2-mod-php5.6 php5.6-cli php5.6-common php5.6-curl php5.6-gd php5.6-mysql php5.6-mysqli php5.6-json php5.6-mcrypt php5.6-odbc php5.6-xmlrpc...
Set static IP Ubuntu
sudo nano /etc/network/interfaces
and paste this under # The primary network interface:
auto enp0s25
iface enp0s25 inet static
address 192.168.0.16
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 8.8.4.4 8.8.8.8
sudo ip addr flush enp0s25
sudo systemctl restart networking.service
Then verify it is correct:
ip a...
How to reset lost user password ubuntu on VMWare server
How to reset lost user password ubuntu on VMWare server
edit the virtual machine's configuration (.vmx) and add or edit this option:
bios.bootDelay = "15000"
Reset Your Ubuntu Password
Reboot your computer, and then as soon as you see the GRUB Loading screen, make sure to hit the ESC key so that you can get to the menu.
If you have the option, you can choose the “recovery mode” item on the menu, usually found right below...
Thứ Năm, 17 tháng 8, 2017
How to Fix _default_ VirtualHost overlap on port 80, the first has precedence
Question :I running wordpress blog on apache web server on Virtual private server (VPS). I had the problem when i restarted the httpd service on my VPS. This error came after i setup multiple domain on my httpd config file, meaning i used more than one VirtualHost on httpd.conf :
[root@vps ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Thu May 01 00:01:03 2014]...
Thứ Tư, 16 tháng 8, 2017
Các lệnh cơ bản mongodb
Sử dụng mongodb cũng chỉ cần thông qua một số câu lệnh đơn giản, chủ yếu là insert, update, find và remove.
1. Kết nối đến mongodb.
Tương tự khi sử dụng sql thì phải kết nối đến database, mongodb cũng vậy:
$m = new Mongo(“mongodb://${username}:${password}@localhost”);
Lệnh này khởi tạo kết nối đến server cài đặt mongodb, mặc định nếu không có tham số sẽ là localhost với cổng port = 27017.
Tiếp theo là lệnh chọn database
$db...
Thứ Ba, 15 tháng 8, 2017
Kiến trúc Oracle Database 11g
Kiến trúc Oracle Database 11gXét 1 server Oracle cơ bản, chúng ta có 3 kiến trúc:Kiến trúc bộ nhớ (Memory Structure)+ Kiến trúc process (Process Structure) ==> InstanceKiến trúc lưu trữ (Storage Structure) ==> DatabaseVới nonclustered database system, mỗi database sẽ chạy trên 1 instance. Trên 1 server, bạn tạo ra 3 database, thì sẽ có 3 instance, mỗi instance chạy cho 1 database.Với clustered database...
Thứ Hai, 14 tháng 8, 2017
Oracle 11g Enterprise Manager DB Control Changing Accessibility Mode Disabled to Enabled
I was using the OEM11G, when after the logon with my credential users, I saw the follow message “Accessibility Mode Disabled” as the image below:
To solve it, you need to change the status of the accessibility-mode in the file “uix-config.xml”. This file can be found on directory: $ORACLE_HOME/j2ee/OC4J_EM/applications/em/em/WEB-INF/....
Đăng ký:
Bài đăng (Atom)